This file contains 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
export PS1="$PS1\$(\ | |
export GIT_BRANCH=\"\$(git branch --no-color 2>/dev/null | grep '*' | cut -d\" \" -f2-)\"; \ | |
if [ -n \"\$GIT_BRANCH\" ] ; then \ | |
echo -en \"\[\033[01;33m\]\"\$GIT_BRANCH \"> \[\033[00m\]\"; \ | |
fi \ | |
)" |
This file contains 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
Host milde | |
HostName milde.cz | |
User dundee | |
Port 1080 | |
Host nagios | |
HostName nagios.milde.cz | |
User dundee | |
Port 1080 | |
IdentityFile ~/.ssh/alternative |
This file contains 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 | |
$arr = array( | |
array('a', '1'), | |
array('b', '2'), | |
); | |
// klasicky | |
$out = array(); |
This file contains 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 | |
$x = 3; | |
$max = 1000000; | |
$arr = array( | |
1, | |
2, | |
3, | |
); |
This file contains 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
/** | |
* X-Mas Arduino sketch | |
* Uses 11 LEDs (digital pin 3 to pin 13) and one switch (digital pin 0) | |
*/ | |
int switchPin = 0; // Switch connected to digital pin 0 | |
int ledPins[] = {13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3}; | |
int ledCount = 11; |
This file contains 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
// Output | |
int redPin = 9; // Red LED, connected to digital pin 9 | |
int greenPin = 10; // Green LED, connected to digital pin 10 | |
int bluePin = 11; // Blue LED, connected to digital pin 11 | |
int r, g, b; | |
int rd, gd, bd; | |
int wait = 20; //20ms |
This file contains 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 AuthenticatorFactory | |
{ | |
public function __construct(PdoFactory $pdoFactory) | |
{ | |
// bla | |
} |
This file contains 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 PdoFactory | |
{ | |
public function __construct($pdoOptions) { | |
// ... | |
} | |
public function create() |
This file contains 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
# Varnish config | |
backend default { | |
.host = "127.0.0.1"; | |
.port = "80"; | |
} | |
# Nginx config | |
http { |
This file contains 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
acl local { | |
"localhost"; | |
} | |
backend default { | |
.host = "127.0.0.1"; | |
.port = "80"; | |
.first_byte_timeout = 3s; | |
} |
OlderNewer