-
Depoyu çoğalt
$ git clone https://gist.github.com/bf2fe923380138a63ac6.git hi $ cd hi
-
Vagrant kutusunu kur
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
"os" | |
) | |
var port = "8080" | |
var root = "." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Setup database | |
: ${database_urls=mysql://vagrant:vagrant@localhost/vagrant} | |
: ${database_password=vagrant} | |
parseurl() { | |
eval "unset $1; declare -Ag $1=($( | |
python <<-EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 %>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# encoding: utf-8 | |
require 'optparse' | |
require 'ostruct' | |
# Generate random names | |
class Zar # rubocop:disable ClassLength | |
DEFAULT_LANGUAGE = :auto | |
DEFAULT_SEPARATOR = '-' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test | |
hmm | |
ok | |
azz | |
okkkk |