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 / ordinal.js
Last active April 27, 2022 21:26 — forked from jlbruno/ordinal.js
Javascript Ordinal Numbers
// found here http://forums.shopify.com/categories/2/posts/29259
var getOrdinal = function(n) {
var s=["th","st","nd","rd"],
v=n%100;
return n+(s[(v-20)%10]||s[v]||s[0]);
}
@yetti
yetti / webpacker_rails.md
Created February 25, 2021 17:12 — forked from maxivak/webpacker_rails.md
Webpack, Yarn, Npm in Rails
#!/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
# 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