Skip to content

Instantly share code, notes, and snippets.

package main
import (
"log"
"net/http"
"os"
)
var port = "8080"
var root = "."
  • Depoyu çoğalt

    $ git clone https://gist.github.com/bf2fe923380138a63ac6.git hi
    $ cd hi
  • Vagrant kutusunu kur

#!/usr/bin/ruby
# encoding: utf-8
require 'active_support/core_ext/hash'
require 'securerandom'
require 'yaml'
port ||= ENV['APP_PORT'] || '8080'
envs = %w(production development test)
#!/bin/bash
# Setup database
: ${database_urls=mysql://vagrant:vagrant@localhost/vagrant}
: ${database_password=vagrant}
parseurl() {
eval "unset $1; declare -Ag $1=($(
python <<-EOF
#!/bin/bash
herestring() {
local lines lead start cur end
mapfile -t lines < <(echo "$1")
while [[ $start -lt ${#lines[@]} ]] && [[ ${lines[$start]} =~ ^[[:space:]]*$ ]]; do
((start++))
done
end=$((${#lines[@]} - 1))
#!/bin/bash
sudo apt-get install pass rng-tools
sudo rngd -r /dev/urandom
gpg --batch --gen-key <<-EOF
%echo Generating a default key
Key-Type: DSA
Subkey-Type: ELG-E
Name-Real: staff
@roktas
roktas / org.rb
Last active August 29, 2015 14:01
#!/usr/bin/ruby
# encoding: utf-8
# Kurulum
#
# $ sudo apt-get install ruby-octokit
# $ https://github.com/settings/tokens/new ile org izinli token oluştur
# Sertifika hatası alırsanız şu şekilde çalıştırın
#
#!/usr/bin/ruby
# encoding: utf-8
# Shamelessly stolen and adapted from https://github.com/raycchan/bazaar
require 'erb'
# Generate random names
class Rasgele # rubocop:disable ClassLength
RANDOM_FORMAT = '<%= superadjective %>-<%= supername %>-<%= random %>'
#!/usr/bin/ruby
# encoding: utf-8
require 'optparse'
require 'ostruct'
# Generate random names
class Zar # rubocop:disable ClassLength
DEFAULT_LANGUAGE = :auto
DEFAULT_SEPARATOR = '-'
@roktas
roktas / readme
Last active August 29, 2015 14:02
test
hmm
ok
azz
okkkk