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/bash | |
sys="sudo /usr/bin/systemctl" | |
case "$1" in | |
s) shift 1 | |
$sys status $@ | |
;; | |
o) shift 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
>>> def test_loop(previous_quarter, quarter_index, max_quarter): | |
... while previous_quarter % max_quarter != quarter_index: | |
... print(previous_quarter % max_quarter) | |
... previous_quarter+=1 | |
... | |
>>> | |
>>> test_loop(10,10,20) | |
>>> test_loop(10,11,20) | |
10 | |
>>> test_loop(10,12,20) |
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
def test_loop(previous_quarter, quarter_index, max_quarter) do | |
while(previous_quarter % max_quarter != quarter_index) do | |
puts(quarter_index) | |
quarter_index += 1 | |
end | |
end |
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
>>> current = 89 | |
>>> new = 5 | |
>>> while current % 96 != new: | |
... print("Sending: " + str(current % 96)) | |
... current += 1 | |
... | |
Sending: 89 | |
Sending: 90 | |
Sending: 91 | |
Sending: 92 |
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
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} |
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 | |
├── HEAD | |
├── index | |
├── objects | |
│ ├── 4d | |
│ │ └── 5fcadc293a348e88f777dc0920f11e7d71441c | |
│ ├── da | |
│ │ └── 121d9970671b2628e3b813d3ab27ef1e5f4a49 | |
│ └── e6 | |
│ └── 9de29bb2d1d6434b8b29ae775ad8c2e48c5391 |
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
munin-node: | |
pkg: | |
- installed: | |
- names: | |
- munin-node | |
- munin-plugins-extra | |
- liblwp-useragent-determined-perl | |
- libcache-cache-per | |
service: | |
- running |
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
base: | |
'*': | |
- user |
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 Transaction | |
{ | |
protected $db; | |
public function __construct($db) | |
{ | |
$this->db = $db | |
} |
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
diff --git a/git-am.sh b/git-am.sh | |
index c092855..875d42a 100755 | |
--- a/git-am.sh | |
+++ b/git-am.sh | |
@@ -126,7 +126,7 @@ fall_back_3way () { | |
O_OBJECT=`cd "$GIT_OBJECT_DIRECTORY" && pwd` | |
rm -fr "$dotest"/patch-merge-* | |
- mkdir "$dotest/patch-merge-tmp-dir" | |
+ mkdir -p "$dotest/patch-merge-tmp-dir" |