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
| create mode 120000 ssl/certs/ff34af3f.0 [0/1871] | |
| delete mode 120000 ssl/certs/ff783690.0 | |
| delete mode 120000 ssl/certs/spi-cacert-2008.pem | |
| create mode 120000 systemd/system/default.target.wants/watchdog.service | |
| delete mode 120000 systemd/system/hibernate.target.wants/anacron-resume.service | |
| delete mode 120000 systemd/system/hybrid-sleep.target.wants/anacron-resume.service | |
| create mode 120000 systemd/system/multi-user.target.wants/collectd.service | |
| create mode 120000 systemd/system/multi-user.target.wants/nmbd.service | |
| create mode 120000 systemd/system/multi-user.target.wants/rsync.service | |
| create mode 120000 systemd/system/multi-user.target.wants/smbd.service |
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
| function generateStatMod(score) { | |
| return Math.floor((score - 10) / 2); | |
| } |
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
| Verifying my Blockstack ID is secured with the address 1145uHcCDSoHNahWxJ42trCt1dfcmxH5jk https://explorer.blockstack.org/address/1145uHcCDSoHNahWxJ42trCt1dfcmxH5jk |
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/local/bin/node | |
| /* eslint-env node, es6 */ | |
| const fs = require('fs'); | |
| const file = process.argv[2]; | |
| const path = require('path'); | |
| const lineReader = require('readline').createInterface({ | |
| input: fs.createReadStream(file) | |
| }); | |
| let characters = new Map(); |
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/sh | |
| GIT_DIR=/path/to/hugo/source | |
| WEB_DIR=/path/to/webroot | |
| # pull the latest code. | |
| git --git-dir "$GIT_DIR/.git" --work-tree "$GIT_DIR" pull origin master | |
| git --git-dir "$GIT_DIR/.git" --work-tree "$GIT_DIR" checkout --force | |
| # build the site. | |
| hugo --source "$GIT_DIR" --destination "$WEB_DIR" |
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/sh | |
| command -v dtach >/dev/null 2>&1 || { echo >&2 "Need dtach installed. Aborting." exit 1; } | |
| command -v weechat >/dev/null 2>&1 || { echo >&2 "Need weechat installed. Aborting." exit 1; } | |
| if [ -f /tmp/weechat ]; then | |
| dtach -a /tmp/weechat | |
| else | |
| dtach -A /tmp/weechat weechat | |
| fi |
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
| 0482ad68d15afc1441d336db5b6eb1c06a8d29b5b1aed4a02173430d36ff5cf46525f4e4b3f46f8055fe678e7f47e027a9b77180bef0ab8aca6274025fa71eb737 |
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
| function random(min, max) { | |
| return Math.round(Math.random() * (max - min) + min); | |
| } | |
| let vowels = [ 'a', 'e', 'i', 'o', 'u' ]; | |
| let consonents = [ 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'z' ]; | |
| function randomName() { | |
| const clen = consonents.length - 1; | |
| const vlen = vowels.length - 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
| function ordinalize(num) { | |
| const lastDigit = (num + '').slice(-1); | |
| if (lastDigit == 1) { return `${num}st`; } | |
| else if (lastDigit == 2) { return `${num}nd`; } | |
| else if (lastDigit == 3) { return `${num}rd`; } | |
| return `${num}th`; | |
| } |
NewerOlder