short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown --> PDF (as a booklet!)
Markdown --> EPUB and MOBI
short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown --> PDF (as a booklet!)
Markdown --> EPUB and MOBI
| // /stacks/cicd-pipelines.ts | |
| // CDK app which creates a stack using a set of service definitions | |
| import 'source-map-support/register'; | |
| import { App } from '@aws-cdk/cdk'; | |
| import { ServiceCicdPipelines } from '../lib/cicd/pipelines'; | |
| import { deploymentTargetAccounts } from './config'; | |
| import services from './services'; | |
| const app = new App({ |
| Source: https://tc.gts3.org/cs6265/2017/l/lab04/README-tut.txt | |
| ==================================== | |
| Lec04: Writing Exploits with PwnTool | |
| ==================================== | |
| http://docs.pwntools.com/ | |
| http://docs.pwntools.com/en/stable/intro.html |
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |
| ## AWS | |
| # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories | |
| http://169.254.169.254/latest/user-data | |
| http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME] | |
| http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME] | |
| http://169.254.169.254/latest/meta-data/ami-id | |
| http://169.254.169.254/latest/meta-data/reservation-id | |
| http://169.254.169.254/latest/meta-data/hostname | |
| http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key |
| -- osascript services.scpt | |
| tell application "iTerm 3" | |
| activate | |
| set myterm to (create window with default profile) | |
| tell myterm | |
| set mysession to (current session) | |
| tell mysession | |
| set name to "geth" | |
| write text "cd ~/projects/fs/newline/newline-content-internal/fullstack-web3/private-net" | |
| write text "./bin/geth --datadir=./datadir --nodiscover --rpc --rpcapi \"db,personal,eth,net,web3,debug\" --rpccorsdomain='*' --rpcaddr=\"localhost\" --rpcport 8545 --ws --wsapi \"db,personal,eth,net,web3,debug\" --wsorigins='*' --wsaddr=\"localhost\" --wsport 8546 console" |
| ### KERNEL TUNING ### | |
| # Increase size of file handles and inode cache | |
| fs.file-max = 2097152 | |
| # Do less swapping | |
| vm.swappiness = 10 | |
| vm.dirty_ratio = 60 | |
| vm.dirty_background_ratio = 2 |
| import json | |
| import numpy as np | |
| import keras | |
| import keras.preprocessing.text as kpt | |
| from keras.preprocessing.text import Tokenizer | |
| from keras.models import model_from_json | |
| # we're still going to use a Tokenizer here, but we don't need to fit it | |
| tokenizer = Tokenizer(num_words=3000) | |
| # for human-friendly printing |