Skip to content

Instantly share code, notes, and snippets.

View mohitesachin217's full-sized avatar
🏠
Working from home

mohitesachin217 mohitesachin217

🏠
Working from home
View GitHub Profile
#clearfix{
content: ".";
visibility: hidden;
display: block;
height: 23px;
clear:both;
}
@mohitesachin217
mohitesachin217 / 0_reuse_code.js
Created June 13, 2016 11:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
.main-wrapper { width:100%; background:#d9f0ff; left:0; right:0; top:0; bottom:0; height:auto; box-shadow: 0 0 15px 2px #406680; }
@mohitesachin217
mohitesachin217 / chrome.txt
Created June 15, 2016 05:30
google chrome search engine forced by administrator remove commands
RD /S /Q "%windir%\System32\GroupPolicyUsers"
RD /S /Q "%windir%\System32\GroupPolicy"
gpupdate /force
@mohitesachin217
mohitesachin217 / php email template with headers
Created June 18, 2016 13:24
php email template with headers
<?php
/* echo "<pre>";
print_r($_POST);
echo "</pre>";*/
//ini_set('display_errors', 'On');
//set_error_handler("var_dump");
/**
* function to filter sql injections and illegal characters inside the input
Lilo -- linux loader
grub -- grand unified boot loader
backup MBR --
@mohitesachin217
mohitesachin217 / debian-package-management
Last active June 19, 2016 08:32
debian package management system
dpkg
dpkg-reconfigure
APT
--apt-get , apt-cache
--configuration
aptitute
dpkg is the program is used to installing debian pacakages
dpkg -l firefox to see if firefox installed and the information about the firefox
@mohitesachin217
mohitesachin217 / commanline
Last active June 19, 2016 09:14
working with commandline
--- bash
enter the command
cat /etc/passwd
and you will see the list of all the user names and bash assigned to the user
Ex.kia:x:2000:2000:kia,,,:/home/kia:/bin/bash
each bash has it's configuration as well as global configuration
global configuration file is stored in
@mohitesachin217
mohitesachin217 / wildcards
Created June 19, 2016 11:23
wildcards in linux
wildcards or globbing
x -- anything
? -- any single character
! -- not(stuff)
[ac] -- a,c
[a-c] -- a,b,c
find
@mohitesachin217
mohitesachin217 / regular express
Created June 19, 2016 13:27
search textfiles with regular expressions
--grep,
--fgrep,
--egrep
--regex
grep search through stream
syntax
grep [string to find] [file name]