Skip to content

Instantly share code, notes, and snippets.

View dongalor's full-sized avatar
💻
coding

Garblovian dongalor

💻
coding
View GitHub Profile
@dongalor
dongalor / unicorn.sh
Created September 8, 2011 00:31 — forked from adamhunter/unicorn.sh
rc.d script for freebsd, multiply instances of unicorn made easy...
#!/bin/sh
# Modified by [email protected]
#
# A sample /etc/unicorn/my_app.conf
# RAILS_ENV=production
# RAILS_ROOT=/var/apps/www/my_app/current
. /etc/rc.subr
USER="your_user_name"
@dongalor
dongalor / tumblr.sh
Created May 30, 2012 06:02 — forked from rkumar/tumblr.sh
a command-line tumblr client using bash shell
#!/bin/bash
## vim:ts=4:sw=4:tw=100:ai:nowrap:formatoptions=croqln:
#*******************************************************#
# tumblr.sh #
# written by Rahul Kumar #
# 2010/01/01 #
# Post, edit, delete, read tumblr.com #
#*******************************************************#
# References: http://www.tumblr.com/api#api_write
# DONE : add read
@dongalor
dongalor / basic mvn template
Created June 28, 2012 15:52 — forked from barinek/basic mvn template
basic mvn template
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>template</groupId>
<artifactId>template</artifactId>
<version>1.0</version>
@dongalor
dongalor / tmux.md
Created September 29, 2015 00:39 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@dongalor
dongalor / CameraImage.cpp
Created November 28, 2015 09:36 — forked from kylemcdonald/CameraImage.cpp
openFrameworks app for sending images to disk for processing, and reading text back from disk. Used for "NeuralTalk and Walk".
#include "ofMain.h"
#include "ofxTiming.h"
class ofApp : public ofBaseApp {
public:
ofVideoGrabber grabber;
DelayTimer delay;
ofTrueTypeFont font;
string description;
@dongalor
dongalor / digital_ocean_setup.md
Created February 28, 2016 08:49 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions
@dongalor
dongalor / synchronet-install
Created April 8, 2016 03:31 — forked from phuckewe/synchronet-install
Steps for successfully installing Synchro.NET BBS on Linux Ubuntu 14.04 (Digital Ocean)
I made these steps using the tools provided by DigitalOcean, but these steps should work verbatim on any Ubuntu Server.
Download Terminfo: http://cvs.synchro.net/cgi-bin/viewcvs.cgi/*checkout*/install/terminfo
Download Termcap: http://cvs.synchro.net/cgi-bin/viewcvs.cgi/*checkout*/install/termcap
I. Pre-Requisites:
apt-get update
apt-get install make g++ linux-libc-dev libncurses5-dev libnspr4-dev cvs libcap2-dev gdb zip unzip lrzsz gkermit
apt-get install dosemu
II. BBS Install:
@dongalor
dongalor / rvm_apache_passenger.txt
Created March 13, 2017 19:31 — forked from bradmontgomery/rvm_apache_passenger.txt
RVM + Apache + passenger setup for Ubuntu
# Install rvm system-wide
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
# Update the packages
apt-get update
apt-get upgrade
apt-get install build-essential
# get the packages required by ruby
rvm pkg install zlib
@dongalor
dongalor / ID.js
Created January 23, 2018 16:39
ID - a unique ID/name generator for JavaScript
// Generate unique IDs for use as pseudo-private/protected names.
// Similar in concept to
// <http://wiki.ecmascript.org/doku.php?id=strawman:names>.
//
// The goals of this function are twofold:
//
// * Provide a way to generate a string guaranteed to be unique when compared
// to other strings generated by this function.
// * Make the string complex enough that it is highly unlikely to be
// accidentally duplicated by hand (this is key if you're using `ID`
@dongalor
dongalor / 1 setup vps
Created November 29, 2018 11:34 — forked from PavloBezpalov/1 setup vps
Deploy Rails 5.1.1 to VPS(Ubuntu 16.04.2 LTS). Nginx mainline + pagespeed, Puma with Jungle, Capistrano3, PostgreSQL 9.6, RVM, Certbot
root# apt-get update
root# apt-get upgrade
// dependencies for Ruby
root# apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev \
libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev \
libpcre3-dev unzip
// Node.js v7
root# curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -