I hereby claim:
- I am andrius on github.
- I am andrius_mobi (https://keybase.io/andrius_mobi) on keybase.
- I have a public key whose fingerprint is 531E BDD4 2E17 31A4 27C4 BED9 FA85 A2DD 963A 379F
To claim this, I am signing this object:
| module Configuration | |
| Error = Class.new StandardError | |
| class << self | |
| def config(&block) | |
| @config ||= initialize_config | |
| block_given? and yield @config | |
| @config | |
| end |
| class CreateUsers | |
| end | |
| Sequel.migration do | |
| change do | |
| create_table :users do | |
| primary_key :id | |
| String :email | |
| String :encrypted_password |
| ruby -rubygems -e 'require "jekyll-import"; | |
| JekyllImport::Importers::Blogger.run({ | |
| "source" => "/Users/ak/Desktop/blog-10-02-2014.xml", | |
| "no-blogger-info" => false, # not to leave blogger-URL info (id and old URL) in the front matter | |
| "replace-internal-link" => false, # replace internal links using the post_url liquid tag. | |
| })' |
| #!/bin/sh | |
| cd ~/Dropbox | |
| # Remove conflicted copies | |
| find . -iname '*conflicted copy*' | \ | |
| awk -F '-8-8-8-8-8-' '{print "\""$1"\""}' | xargs rm -rf | |
| find . -type f \ | |
| -perm 755 \ |
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
| api: bundle exec puma -C config/puma.rb |
I hereby claim:
To claim this, I am signing this object:
| # terminate block.call after given timeout | |
| # https://github.com/crystal-lang/crystal/issues/2990 | |
| module Timeout | |
| def self.timeout(terminate_after : Float64, &block) | |
| ch = Channel(Bool).new | |
| spawn do | |
| sleep terminate_after | |
| ch.close | |
| end |
| #!/bin/sh | |
| # Tested on alpine linux | |
| # Thanks to `docker.for.mac.localhost` (or `docker.for.mac.host.internal`) | |
| # featured in https://docs.docker.com/docker-for-mac/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host, | |
| # it's possible to access host (mac) services | |
| # mac_ip will set IP address (MAC_IP) of mac visible from docker container and | |
| # return code (0 = IP found, 1 = not found) | |
| mac_ip() { |
| # Basic Dante Socks5 Setup, Debian | |
| apt-get update | |
| apt-get install make gcc | |
| cd /usr/src | |
| # get newest from http://www.inet.no/dante/download.html | |
| wget http://www.inet.no/dante/files/dante-1.4.1.tar.gz |