Skip to content

Instantly share code, notes, and snippets.

View yetti's full-sized avatar
🔌
Unplugged

Yetrina Battad yetti

🔌
Unplugged
View GitHub Profile
@yetti
yetti / prompt_yetti_setup
Created February 5, 2014 14:34
Prezto prompt config
#
# Based on zsh-powerline and paradox
# * Time and Ruby version shown on the right
# * Git branch info on the left
# * Single line prompt
#
# Authors:
# Yetrina Battad <[email protected]>
ZSH_THEME_REP_TIME_SINCE_COMMIT_SHORT="%{$fg[green]%}"
@yetti
yetti / killPort
Created April 23, 2014 21:55
ZSH: function to kill process on port
function killPort() {
lsof -P | grep $1 | awk '{print $2}' | xargs kill -9
}
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 8.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :20140312
#usage :/bin/bash wildfly-install.sh
WILDFLY_VERSION=8.0.0.Final
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION
@yetti
yetti / gnomoria_seeds
Last active August 29, 2015 14:11
Seeds for Gnomoria
The Leafy Artifact - 3843548
The Unkempt Harvest - 1967601228
The Crazed Work - 2404983463 (?)
The Headless Tulip - 2004341057
The Hip Hawk - 2004341046
xIlP0L9xxy51aUDX6lP8Sh6uaugCPjbhzSy9Zlbl
@yetti
yetti / Array-rotate
Created July 21, 2015 21:16
JS array rotate
http://stackoverflow.com/q/1985260
@yetti
yetti / deploy.sh
Created September 20, 2016 13:56
Deploys Hugo site to Github master branch
#!/bin/bash
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"
# Add changes to git.
git add -A
# Commit changes.
msg="deploying updates `date`"
if [ $# -eq 1 ]
@yetti
yetti / 12in12Px.md
Last active January 25, 2017 04:31
12 apps in 12 weeks Phoenix/Elixir challenge

12 Apps in 12 Weeks Challenge

Building 12 apps in 12 weeks using Phoenix and Elixir

  • Week 01: Reddit Clone
  • Week 02: Blog
  • Week 03: Recipe Box
  • Week 04: Pinterest Clone
  • Week 05: Movie Review App
  • Week 06: Todo App
@yetti
yetti / notes.sh
Last active February 13, 2019 02:33
Sync SVN revision to Git commit notes after BFG clean on SubGit repository.
#!/bin/bash
path=$1
if [[ -n "$path" ]]; then
git fetch origin refs/svn/map:refs/notes/commits
cat $path | git notes copy --stdin
cat $path | cut -d' ' -f 1 | git notes remove --stdin
git notes prune
git update-ref refs/notes/commits $(git commit-tree refs/notes/commits^{tree} -m "notes squashed")

Keybase proof

I hereby claim:

  • I am yetti on github.
  • I am yetti (https://keybase.io/yetti) on keybase.
  • I have a public key ASBfNHRwciEKe_wTVYxDVZ0AXjMBSIQIhXvvafjwY3FuKgo

To claim this, I am signing this object: