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:
desc 'Setup logger'
task :verbose => [:environment] do
logger = Rails.logger = ActiveRecord::Base.logger = Logger.new(STDOUT)
end
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html.
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/zul/Desktop/RegistrationTest/app/build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
NSDictionary* bodyObject = @{
@"blocks": @[
@{
@"text": @"First lorem ipsum lorem ipsum ipsum lorem ipsum ipsum lorem ipsum ipsum lorem ipsum ipsum lorem ipsum",
@"photoUrl": @"http://www.ru/image.jpeg",
@"position": @2,
@"blockType": @{
@"objectId": @"96nLTrtA6n"
}
},