I hereby claim:
- I am ckxng on github.
- I am cameronking (https://keybase.io/cameronking) on keybase.
- I have a public key ASD_TFHaQW4s3t90kwRm4s8oEA1pqyvOXpL2i150zVgtAAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/perl -wT | |
| package CameronKing::Readme; | |
| use strict; | |
| use 5.005; | |
| require Exporter; | |
| our @ISA = qw(Exporter); | |
| our @EXPORT_OK = qw(readme); | |
| our $VERSION = '0.20191230'; |
| // trigger: adding a file to S3 bucket | |
| // result: files are transcoded | |
| var aws = require('aws-sdk'); | |
| var elastictranscoder = new aws.ElasticTranscoder(); | |
| // return basename without extension | |
| function basename(path) { | |
| return path.split('/').reverse()[0].split('.')[0]; | |
| } |
| #!/bin/bash | |
| # Constants | |
| X=0 | |
| FNAMES_F=~/share/dict/fnames # a file of newline separated first names | |
| LNAMES_F=~/share/dict/lnames # a file of newline separated last names | |
| # total number of non-random words available | |
| FNAMES_SZ=`cat ${FNAMES_F} | wc -l` | |
| LNAMES_SZ=`cat ${LNAMES_F} | wc -l` |
| function log2syslog | |
| { | |
| declare COMMAND | |
| COMMAND=$(fc -ln -0) | |
| TTY=$(tty) | |
| TTYOWNER=$(stat -c ‘%U’ ${TTY}) | |
| logger -p local1.notice -t bash -i -- “${TTY}:${TTYOWNER}:${USER}:${COMMAND}" | |
| } | |
| trap log2syslog DEBUG |
| setup-keymap | |
| setup-hostname | |
| setup-interfaces | |
| setup-dns | |
| hostname=$(cat /etc/hostname) | |
| hostname $hostname | |
| domainname=$(grep search /etc/resolv.conf|cut -f2) | |
| rc-service networking start | |
| passwd | |
| setup-timezone |
| license: mit | |
| height: 150 |
| #!/usr/bin/perl -w | |
| my $h = {}; | |
| while(read DATA, $_, 1) { | |
| $h->{$_} = 0 unless $h->{$_}; | |
| $h->{$_}++; | |
| } | |
| use Data::Dumper; | |
| print Dumper($h); |
| --- | |
| version: "2" | |
| services: | |
| smokeping: | |
| image: linuxserver/smokeping | |
| container_name: smokeping | |
| environment: | |
| - PUID=1000 | |
| - PGID=1000 | |
| - TZ=US/Central |
| [core] | |
| # on windows: | |
| # autocrlf = true | |
| # on linux: | |
| autocrlf = input | |
| [alias] | |
| lol = log --oneline --decorate --graph --all --color=auto | |
| co = checkout | |
| st = status | |
| ci = commit |