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
| SSH_ENV="$HOME/.ssh/environment" | |
| # start the ssh-agent | |
| function start_agent { | |
| echo "Initializing new SSH agent..." | |
| # spawn ssh-agent | |
| ssh-agent | sed 's/^echo/#echo/' > "$SSH_ENV" | |
| echo succeeded | |
| chmod 600 "$SSH_ENV" | |
| . "$SSH_ENV" > /dev/null |
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 | |
| $in = file_get_contents('input.sql'); | |
| // change domain(s) | |
| $in = preg_replace('/old.example.com/', 'new.example.com', $in); | |
| $in = preg_replace('/older.example.com/', 'newer.example.com', $in); | |
| // recalculate string lengths in serialized arrays | |
| $out = preg_replace('/s:(\d+):\\\"(.*?)\\\";/e', "'s:'.strlen('$2').':\"$2\";'", $in); |
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
| window.ie = (function() { | |
| var undef, | |
| v = 3, | |
| htmlClass = document.documentElement.className, | |
| div = document.createElement('div'), | |
| all = div.getElementsByTagName('span'); | |
| do { | |
| div.innerHTML = '<!--[if gt IE ' + (++v) + ']><span></span><!endif]-->'; | |
| } while (all[0]); |
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
| en: | |
| hello: "Hello world" | |
| time: | |
| formats: | |
| date_only1: "%a, %m/%d/%Y" | |
| date: | |
| formats: | |
| date_only1: "%a, %m/%d/%Y" |
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
| <VirtualHost *:80> | |
| ServerAdmin webmaster@localhost | |
| ServerName site.lvh.me | |
| ServerAlias www.site.lvh.me | |
| DocumentRoot /var/www/site | |
| <Directory /var/www/site> | |
| Options Indexes FollowSymLinks MultiViews | |
| AllowOverride All | |
| Order allow,deny | |
| allow from all |
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
| Section "InputClass" | |
| Identifier "Touchpad" | |
| Driver "synaptics" | |
| MatchIsTouchpad "on" | |
| Option "PalmDetect" "1" | |
| Option "PalmMinWidth" "1" | |
| Option "PalmMinZ" "1" | |
| Option "VertScrollDelta" "40" | |
| Option "HorizScrollDelta" "40" | |
| Option "CoastingSpeed" "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
| synclient PalmDetect=1 PalmMinWidth=1 PalmMinZ=1 VertScrollDelta=40 HorizScrollDelta=40 CoastingSpeed=1 CoastingFriction=60 TapButton1=1 TapButton2=3 TapButton3=2 VertTwoFingerScroll=1 HorizTwoFingerScroll=1 FingerHigh=45 FingerLow=40 EmulateMidButtonTime=180 |
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
| /* ghosttest.c: GHOST vulnerability tester */ | |
| /* Credit: http://www.openwall.com/lists/oss-security/2015/01/27/9 */ | |
| #include <netdb.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| #define CANARY "in_the_coal_mine" | |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <Client name="Chromecast"> | |
| <!-- Author: Plex Inc. --> | |
| <TranscodeTargets> | |
| <VideoProfile protocol="http" container="matroska" codec="h264" audioCodec="aac" subtitleCodec="ass" context="streaming"> | |
| <Setting name="VideoEncodeFlags" value="-x264opts bframes=3:cabac=1" /> | |
| </VideoProfile> | |
| <MusicProfile container="matroska" codec="mp3" /> | |
| <PhotoProfile container="jpeg" /> | |
| </TranscodeTargets> |
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
| Style/Documentation: | |
| Enabled: false | |
| Style/WordArray: | |
| MinSize: 4 | |
| Metrics/LineLength: | |
| Max: 120 | |
| Metrics/AbcSize: |