I hereby claim:
- I am antonfisher on github.
- I am afschr (https://keybase.io/afschr) on keybase.
- I have a public key whose fingerprint is 2762 516A 0461 6A5C 5356 98FE CD4E 893B 2CB4 4DFD
To claim this, I am signing this object:
| # ------------------------------------------------------ | |
| # --- PRE-CONFIGURATION -------------------------------- | |
| # ------------------------------------------------------ | |
| #enable shh | |
| touch ./boot/ssh | |
| #preconfigure wifi | |
| vim ./boot/wpa_supplicant.conf | |
| # --- file conrent ------------------------------------- |
I hereby claim:
To claim this, I am signing this object:
| wget --mirror -p --html-extension --convert-links [HOST] |
| plugins: [ | |
| new webpack.optimize.CommonsChunkPlugin({ | |
| name: 'vendor', | |
| minChunks: (module) => { | |
| if (module.resource && /^.*\.(css|scss)$/.test(module.resource)) { | |
| return false; | |
| } | |
| return module.context && module.context.includes('node_modules'); | |
| } | |
| }) |
| vim .config/monitors.xml | |
| gnome-terminal --hide-menubar --full-screen; | |
| for i in `xrandr --query | grep " connected" | grep -v "primary" | sed -e 's/^.*connected \([^ ]*\).*$/\1/'`; do gnome-terminal --hide-menubar --full-screen --geometry=$i; done |
| # eslint only added/modified js files | |
| git status --porcelain | grep '^\s*[AM]\+\s\+.*\.js$' | sed 's/^\s*[AM]\+\s\+//' | xargs eslint | |
| # list licenses of all node_modules | |
| cd node_modules && for i in $(ls); do echo $i: $(npm v $i license); done | |
| # run script on remote machine | |
| cat s.js | ssh [email protected] "cat | node" | |
| # npm outdate for projects in dir @climagic |
| /* | |
| * React.js Material-UI Table and TableRow components with flexible height and fixed header | |
| * - fixes "jumping" scrolling bar in WebKit browsers | |
| * - shows permanent scrolling bar for other browsers | |
| * | |
| * Usage: import this Table and TableRow component instead of | |
| * 'material-ui/Table' and 'material-ui/TableRow' component | |
| */ | |
| import React, {PropTypes} from 'react'; |
| /** | |
| * | |
| * Search value with tree vs filter() | |
| * | |
| * Generate data file: | |
| * echo "module.exports = [" > /tmp/data.js; for n in {1..1000000}; do echo "\"bk-${n}\"," >> /tmp/data.js; done; echo "]" >> /tmp/data.js; | |
| * | |
| * Run search: | |
| * node --max-old-space-size=4096 ./prefix-search-tree-vs-filter.js | |
| * |
| /** | |
| * | |
| * Search with tree vs filter() | |
| * | |
| * Generate data file: | |
| * echo "module.exports = [" > /tmp/data.js; for n in {1..1000000}; do echo "\"bk-${n}\"," >> /tmp/data.js; done; echo "]" >> /tmp/data.js; | |
| * | |
| * Run search: | |
| * node --max-old-space-size=4096 ./fulltext-prefix-search-tree-vs-filter.js | |
| * |
| var ActiveDirectory = require('activedirectory'); | |
| var ad = new ActiveDirectory({ | |
| url: 'ldap://10.10.10.10', | |
| baseDN: 'dc=domain,dc=com', | |
| username: 'Administrator', | |
| password: 'kokoko' | |
| }); | |
| ad.findUser('', function (err, user) { |