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
{ | |
"aa": "Afar", | |
"ab": "Abkhazian", | |
"ae": "Avestan", | |
"af": "Afrikaans", | |
"ak": "Akan", | |
"am": "Amharic", | |
"an": "Aragonese", | |
"ar": "Arabic", | |
"as": "Assamese", |
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
[user] | |
name = Kasper Hartwich | |
email = [email protected] | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow |
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
{ | |
"bundleId" : "com.knollsoft.Rectangle", | |
"defaults" : { | |
"allowAnyShortcut" : { | |
"bool" : false | |
}, | |
"almostMaximizeHeight" : { | |
"float" : 0 | |
}, | |
"almostMaximizeWidth" : { |
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 | |
class TorProxy | |
{ | |
/** | |
* Is IP address a Tor proxy ip address. | |
* See https://lists.torproject.org/pipermail/tor-project/2020-March/002759.html | |
* | |
* @param $ip | |
* @return bool | |
*/ |
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
# OSX | |
find . -name '*.php' -print0 | xargs -0 sed -i "" "s/TextToReplace/NewText/g" |
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
#!/usr/bin/expect -f | |
# This installs MSSQL server and drivers on a vagrant ubuntu machine | |
# | |
# To use you need to install expect: `sudo apt-get install -y expect` | |
# and then run the script with the password you want: install-mssql.sh myPass123 | |
# Then log in to the sql server with username `sa`and the password `myPass123` | |
set password [lindex $argv 0] | |
#Add MSSQL to package manger |
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 | |
use Carbon\Carbon; | |
/** | |
* This fixes the bug in DateTime with diffInMonths! | |
* See this bugreport: https://github.com/briannesbitt/Carbon/issues/344 | |
*/ | |
class AppDate extends Carbon | |
{ | |
/** |
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 'alias artisan="php artisan"' >>~/.bash_profile |
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
/** | |
* Simple doorbell to IFTTT program for Particle.io Photon | |
* - Connect the button to GND and D0. | |
* - Connect your particle.io account to IFTTT and setup a trigger for 'ring' | |
*/ | |
int button = D0; | |
void setup() { | |
pinMode(button, INPUT_PULLUP); |
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
#!/usr/bin/env php | |
<?php | |
date_default_timezone_set('GMT'); | |
if (count($argv)<2) { | |
echo $argv[0] . ' <token> <until>' . PHP_EOL; | |
echo 'Example: ' . $argv[0] . ' abcd-12345678-123456789-12345 \'-3 months\'' . PHP_EOL; | |
exit; | |
} |
NewerOlder