Skip to content

Instantly share code, notes, and snippets.

View uetchy's full-sized avatar
🍵
Recovering

uetchy uetchy

🍵
Recovering
View GitHub Profile
@uetchy
uetchy / brew-smash.sh
Created December 3, 2014 13:36
brew-smash
#!/bin/sh
# Usage: brew smash app-name
if [ -z "$1" ] ; then
echo "Usage: brew smash app-name"
exit 1
fi
if [ ! -d "Casks" ] ; then
KEEP_CLEAN=true
@uetchy
uetchy / autholized_keys.sh
Created November 25, 2014 08:02
autholized_keys.sh
#!/bin/sh
GITHUB_USERS=(mochi udon soba)
DESTINATION=~/.ssh/authorized_keys
rm -rf "$DESTINATION"
for user in ${GITHUB_USERS[@]}
do
curl -L https://github.com/${user}.keys >> "$DESTINATION"
@uetchy
uetchy / _instruction.md
Last active November 29, 2018 16:30
The build script for Gitlab and Jenkins on Docker wtih docker-gen(+ Dokku env).

Specification

  • Docker on Ubuntu
  • Gitlab container with Mailgun mailing support
  • nginx reverse-proxy with docker-gen

Prepare

Setup automatic reverse-proxy with docker-gen

@uetchy
uetchy / add_to_feedly.js
Created March 15, 2014 21:39
Add to Feedly(contains relative uri support)
javascript:(function(){void (d=document);void (el=d.getElementsByTagName("link"));void (count=0);for(i=0;i<el.length;i++){if(el[i].getAttribute("rel").indexOf("alternate")!=-1){if(count==0){ty=el[i].getAttribute("type");if(ty.indexOf("application/rss+xml")!=-1||ty.indexOf("text/xml")!=-1){h=el[i].getAttribute("href");if(h.indexOf("comments")==-1){if(h.indexOf("/")==0){window.open("http://www.feedly.com/home#subscription/feed/"+location.protocol+"//"+location.host+h,"_blank")}else{window.open("http://www.feedly.com/home#subscription/feed/"+h,"_blank")}}}}count++}}void 0})()