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
| echo $(( $RANDOM % $1 )) |
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
| /* | |
| * Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
| */ | |
| /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* Styles */ | |
| } |
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
| function getHeaderList() { | |
| $headerList = []; | |
| foreach ($_SERVER as $name => $value) { | |
| if (preg_match('/^HTTP_/',$name)) { | |
| // convert HTTP_HEADER_NAME to Header-Name | |
| $name = strtr(substr($name,5),'_',' '); | |
| $name = ucwords(strtolower($name)); | |
| $name = strtr($name,' ','-'); |
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
| reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%WINDIR%\notepad2.exe\" -notepadStyleCmdline -z" /f |
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
| CULTURE SPEC.CULTURE ENGLISH NAME | |
| -------------------------------------------------------------- | |
| Invariant Language (Invariant Country) | |
| af af-ZA Afrikaans | |
| af-ZA af-ZA Afrikaans (South Africa) | |
| ar ar-SA Arabic | |
| ar-AE ar-AE Arabic (U.A.E.) | |
| ar-BH ar-BH Arabic (Bahrain) | |
| ar-DZ ar-DZ Arabic (Algeria) | |
| ar-EG ar-EG Arabic (Egypt) |
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 check-ignore -v --no-index file.name |
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
| if (isset($_GET['debug']) && $_GET['debug'] == 'ghost') define('WP_DEBUG', true); | |
| define( 'WP_DEBUG_LOG', true ); |
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
| chrome://flags/#enable-history-entry-requires-user-gesture | |
| chrome://flags/#smooth-scrolling | |
| chrome://flags/#sound-content-setting | |
| chrome://flags/#show-saved-copy | |
| chrome://flags/#enable-scroll-anchor-serialization | |
| chrome://flags/#enable-offline-auto-reload | |
| chrome://flags/#enable-offline-auto-reload-visible-only |
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
| groupadd webadmins | |
| chown root:webadmins /var/www/* -R | |
| chmod -R g+rwX /var/www | |
| chmod 771 /var/www | |
| chmod g+s /var/www | |
| usermod -aG webadmins ftpusername | |
| usermod -aG webadmins www-data | |
| #If we wanted to restrict delete and rename from all but the user who created the file: |
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
| adb tcpip 5555 | |
| adb connect 192.168.x.x:5555 | |
| adb pull /sdcard/inet.sh d:\adb | |
| adb push boot55.img /sdcard |