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
/* timeline event styles */ | |
.timeline-event { | |
display: flex; | |
} | |
.timeline-event .timeline-event_copy { | |
padding: 0 1em; | |
} | |
.timeline-event .timeline-event_copy.current { |
This file has been truncated, but you can view the full file.
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
Last login: Mon Aug 13 15:28:51 on ttys001 | |
gMatthews-MBP:mathematics-programming matthew$ gd | |
Matthews-MBP:development matthew$ cd repo/mathematics-programming/ | |
Matthews-MBP:mathematics-programming matthew$ | |
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
sed -i '/##INSERT HERE/r file_to_insert.txt' file_inserted_to.txt | |
# now remove directive | |
sed -i 's/##INSERT HERE//g' file_inserted_to.txt |
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
Basic ubuntu home server set up | |
For shell login greeting | |
/etc/issue.net | |
or change line “Banner” in /etc/ssh/sshd_config | |
BUT | |
This will display banner before authentication; may be best in bashrc | |
Enable SSH |
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
read input; | |
git add .; git commit -m "$input"; git push; |
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
#!/bin/sh | |
read input; | |
while true; do clear; $input; sleep 2; clear; done; |
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
# concat.sh | |
cat \ | |
file1 \ | |
file3 \ | |
> file3 |
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
var fs = require('fs'), | |
util = require('util'), | |
exec = require('child_process').exec, | |
json = JSON.parse(fs.readFileSync('data.json')); | |
function puts(error, stdout, stderr){console.log(stdout, stderr)} | |
for (var i in json.array){ | |
exec('echo '+json.array[i], puts); | |
} |
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
// simple tag getting fn | |
var getTag = function(tag){ | |
return document.getElementsByTagName(tag); | |
} | |
// wanted: elements we want to get by tag. | |
// caught: tags caught; where we will put the wanted elements, if they exist. | |
// missing: if tag not present in document, list here. | |
var textCatcher = { | |
wanted : ['p','ul','ol','li','a','span','strong','i','b','h1','h2','h3','h4','h5','h6'], |
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 | |
exec("$command 2>&1 &", $output); | |
foreach ($output as $line) { | |
echo "$line\n"; | |
} | |
?> |
NewerOlder