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 / Array-rotate
Created July 21, 2015 21:16
JS array rotate
http://stackoverflow.com/q/1985260
xIlP0L9xxy51aUDX6lP8Sh6uaugCPjbhzSy9Zlbl
@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
#!/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 / 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
}
@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 <hello@yetti.io>
ZSH_THEME_REP_TIME_SINCE_COMMIT_SHORT="%{$fg[green]%}"
<div class="section group">
<div class="col span_1_of_6">
1 of 6
</div>
<div class="col span_1_of_6">
1 of 6
</div>
<div class="col span_1_of_6">
1 of 6
</div>
# Secure the server:
# https://library.linode.com/securing-your-server
# Install essential stuff
apt-get update
apt-get upgrade
apt-get install build-essential
apt-get install git
apt-get install zsh
apt-get install zlib1g-dev # Dependency for bundler
@yetti
yetti / git log alias
Created June 8, 2013 02:58
pretty git logs in the console
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@yetti
yetti / html5-placeholders.html
Created May 29, 2013 21:37
modernizr + placeholders.js polyfill
<script src="modernizr.js"/>
<script src="Placeholder.js"/>
<script>
Modernizr.load({
test: Modernizr.input.placeholder,
nope: ['Placeholder.js'],
complete: function(){Placeholders.init();}
});
</script>