sudo apt-get install openvpn
sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/easy-rsa2
cd /etc/openvpn/easy-rsa2
require 'yandex-translator' | |
class Translate | |
attr_accessor :words_for_translate | |
attr_reader :translated_word | |
def initialize(words) | |
set_api_key | |
@words_for_translate = words | |
end | |
def translate(options = nil) |
gulp = require 'gulp' | |
coffee = require 'gulp-coffee' | |
concat = require 'gulp-concat' | |
uglify = require 'gulp-uglify' | |
plumber = require 'gulp-plumber' | |
notify = require 'gulp-notify' | |
slim = require 'gulp-slim' | |
serve = require "gulp-serve" | |
sass = require 'gulp-ruby-sass' |
#!/bin/sh | |
# | |
# chkconfig: 35 99 99 | |
# description: Node.js /home/nodejs/sample/app.js | |
# | |
. /etc/rc.d/init.d/functions | |
USER="nodejs" |
#!/bin/sh | |
## | |
## Redhat / Linux / LSB | |
## | |
# chkconfig: 345 80 20 | |
# description: Startup script for Express / Node.js application with the \ | |
## forever module. | |
## | |
## A modification of https://gist.github.com/1339289 | |
## |
// to get the current latitude and longitude from browser | |
// credits https://github.com/arunisrael/angularjs-geolocation | |
'use strict'; | |
angular.module('geolocation',[]).constant('geolocation_msgs', { | |
'errors.location.unsupportedBrowser':'Browser does not support location services', | |
'errors.location.notFound':'Unable to determine your location', | |
}); | |
angular.module('geolocation') |
#!/usr/bin/env sh | |
tweetbot_running() { | |
ps x | grep -v grep | grep Tweetbot > /dev/null | |
} | |
clean_tweetbot_cache() { | |
rm -rf ~/Library/Containers/com.tapbots.TweetbotMac/Data/Library/Caches/com.tapbots.TweetbotMac | |
} |
require 'awesome_print' | |
require 'active_record' | |
require 'pg' | |
require 'pp' | |
require 'roo' | |
ActiveRecord::Base.establish_connection( | |
:adapter => 'postgresql', | |
:host => 'localhost', | |
:username => 'kevin', |
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |