AirWatch troubleshooting

Increase Remote query timeout on sql server SQL Server > Properties > Connections > Remote server connections Revert back to default 600 seconds after AirWatch installation Allow AirWatch to send email via smtp.office365 Change EULA Groups & Settings > All Settings > Devices & Users > General > Enrollment > Terms of Use >...

GitHub commands

Initialize as a Git repository git init Config Setup. User namd and email git config --global user.name "xyz"git config --global user.email "xyz@example.com"git config --list Connect local repository to GitHub repository git remote add origin http://github.com/username/test.gitgit remote -v Push and Pull git push origin mastergit pull origin master Ignore vim .gitignore   Clone Creates a...

How to use vim editor

Info CTRL + g display file name and location info     Undo u undo U undo all changes on a line CTRL + r redo   Delete dw delete a word dd delete a whole line d$ delete a whole line after cursor p paste (deleted text) cw delete a word and insert c$ change...

Understanding bootstrap

Head For mobile friendly with zoom <head>..<meta name="viewport" content="width=device-width, initial-scale=1">..</head> Disable zoom. Looks more like native app <head>..<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"></head>     Container Responsive fixed width container <div class="container"> ... </div> Full width container, spanning the entire width of your viewport <div class="container-fluid"> ... </div>   Scroll spy <body data-spy="scroll" data-target="#my-navbar">...

My first project on Laravel with Cards and Notes

Setup MySQL connection in Laravel env nano .env DB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306DB_DATABASE=DBNAMEDB_USERNAME=DBUSERDB_PASSWORD=DBPASSWORD   Setup authentication php artisan make:authphp artisan migrate This overwrites HomeController.php if already exist so execute at beginning stage of development   Create your database tables, Controller & Model #Create database table example: cards & notesphp artisan make:migration create_cards_table --create=cardsphp artisan make:migration create_notes_table --create=notes#Refer to below...

Laravel multiple submit button with different actions

On the form or view <button type="submit" class="btn btn-primary" name="submit" value="submit">Save & Go BACK</button><button type="submit" class="btn btn-primary" name="save" value ="save">Save Note</button> On the controller namespace App\Http\Controllers;use Illuminate\Http\Request;use App\Note;use App\Card;use Illuminate\Support\Facades\Validator;use Illuminate\Support\Facades\Input;use App\Http\Requests;class NotesController extends Controller{ public function store(Request $request, Card $card){ $card->addNote(new Note($request->all())); return back(); } public function edit(Note $note){ return view('note.edit', ['note' =>...

css tips and tricks

Centering div (Flex method) (center both vertical and horizontal) <html> <header> <style type="text/css"> body{ height: 100%; } div{ display: flex; align-items: center; justify-content: center; border: 1px silver solid; height: 100%; } </style> </header> <body> <div>Flex content</div> </body></html>   Remove <form> space <form method="POST" style="display: inline;"> <button href="/note/" class="btn btn-danger">Delete<span class="glyphicon glyphicon-trash"></span></button> </form>   Make...

Common port number by service

TCP 20 FTP (data port) 21 FTP (control port) 22 SSH 23 Telnet 25 SMTP 53 DNS (both TCP & UDP) 58 DHCP 80 Apache 110 POP3 111 NFS (Both TCP & UDP) 137, 138, 139 NetBIOS (Both TCP & UDP) 143 IMAP4 161, 162 SNMP (Both TCP & UDP) 179 BGP (Border Gateway Protocol) 389 LDAP (Both TCP...

Check your HDD for bad sectors with badblocks

Install smartmontools to check the physical condition of a disk sudo apt-get install smartmontools sudo smartctl --all /dev/sdx Check for the following. #5 Reallocated_Sector_Ct =Bad sectors exchanged for working spare ones #197Current_Pending_Sector = Getting reallocated in case the next write fails ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE  ...

Removing PDF restrictions using qPDF

To remove PDF restrictions: qpdf --decrypt input.pdf output.pdf   To remove PDF restrictions locked with password: qpdf --password=PASSWORD --decrypt input.pdf output.pdf...

Scroll to top