This file contains 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/bash | |
pup script[type=application/ld+json]|head -n2 |tail -n1|jq |
This file contains 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
[Unit] | |
Description="Start chromium datadog on startup" | |
PartOf=graphical.target | |
[Service] | |
# public url https://my.prom | |
ExecStart=/usr/bin/chromium-browser --kiosk --disable-session-crashed-bubble --incognito "https://my.prom" | |
Restart=always | |
RestartSec=3 |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>local.kubelproxy.plist</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/kubectl</string> | |
<string>proxy</string> |
This file contains 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
#convert is from imagemagick | |
convert "xc:#$1[128x128!]" /Library/Desktop\ Pictures/Solid\ Colors/$1.png | |
#TODO find out how to make icon preview same aspect ratio as apple images |
This file contains 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
# List size of node_modules directories older than one year for projects in CWD | |
du -c -m -d 0 `find * -name node_modules -type d -maxdepth 1` |sort -n |
This file contains 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
Vim Colorschemes archive (ones I like) | |
'NLKNguyen/papercolor-theme' | |
'chriskempson/vim-tomorrow-theme' | |
'cormacrelf/vim-colors-github' | |
'jeffkreeftmeijer/vim-dim' | |
'jnurmine/Zenburn' | |
'lsdr/monokai' | |
'morhetz/gruvbox' | |
'nanotech/jellybeans.vim' |
This file contains 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
Example: want to remove all things with ubuntu 14.04.. | |
remove docker contrainers with grep: | |
```~/dev/practice/docker | |
$ docker ps -a |grep 14.04|cut -d" " -f 1|xargs -n 3 docker rm | |
ffefde7fe6ac | |
74f390d831e4 | |
3c9750561f25 | |
e34ab210baff | |
114af06a2e33 |
This file contains 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
find . -type f -name '*.json' | xargs -n1 -I % cat % |jq '[.finalUrl, .timing.total] ' |
This file contains 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 | |
find . -name node_modules -prune -or -name package-lock.json -exec sed --in-place=.backup --separate 's|http://|https://|g' {} + |
This file contains 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
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
exec "source " . expand('<sfile>:p:h') . "/default-light.vim" | |
let colors_name = "dim" |