Some thoughts on a new CMS, in different progressions.
🧙♀️
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 | |
# Install the AWS CLI, set up an IAM user for the instance(s) you want to control. | |
# Pull the AWS keys for the IAM user and run aws configure to add them. | |
# I run this on Sophos UTM and have Sophos run a reverse proxy from the \ | |
# $ROUTERIP:32400 to $PLEXHOST:32400 | |
# set -x | |
# started with screen -Sdm a '/root/bin/awscheck.sh'een -Sdm a '/root/bin/awscheck.sh'screen -Sdm a '/root/bin/awscheck.sh'screen -Sdm a '/root/bin/awscheck.sh'n -Sdm a '/root/bin/awscheck.sh' | |
PLEXHOST=dokie.duckdns.org | |
WANIF=eth2 |
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 foo(x) { x = (typeof x != "undefined") ? x : 10; .. } | |
function foo(x = 10) { .. } | |
function foo(x,y,z) { .. }; foo.apply(null,[1,2,3]); | |
function foo(x,y,z) { .. }; foo(...[1,2,3]); | |
function foo() { var args = [].slice.call(arguments); .. } | |
function foo(...args) { .. } | |
var o = { x: 2, y: 3 }, x = o.x, y = o.y, z = (typeof o.z != "undefined") ? o.z : 10; |
This gist is used to contain list of issues I've encountered with entities. Luckily, all have been resolved.
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
# i18n Group | |
The i18n api mock. | |
## The translation API [/i18n/{id}{?locale}] | |
+ Parameters | |
+ locale (required, string, `de_DE`) | |
+ id (required, int, 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
#!/bin/bash | |
gpg_id='[email protected]' | |
inv_dir="$HOME/.priv" | |
gpg_cmd='gpg' | |
edit_cmd='emacs' | |
pager_cmd='less' | |
if [ $# -ge 2 ]; then | |
op=$1 |
The prep-script.sh
will setup the latest Node and install the latest perf version on your Linux box.
When you want to generate the flame graph, run the following (folder locations taken from install script):
sudo sysctl kernel.kptr_restrict=0
# May also have to do the following:
# (additional reading http://unix.stackexchange.com/questions/14227/do-i-need-root-admin-permissions-to-run-userspace-perf-tool-perf-events-ar )
sudo sysctl kernel.perf_event_paranoid=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
#!/bin/zsh | |
# | |
# Highlight a given file and copy it as RTF. | |
# | |
# Simon Olofsson <[email protected]> | |
# | |
set -o errexit | |
set -o nounset |