I hereby claim:
- I am czj on github.
- I am czj (https://keybase.io/czj) on keybase.
- I have a public key ASA-7J6_QjVmXe6nnNopADEypiIhM1vH2gbdW1hnns-hzAo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
APP_HOME=$( cd ${0%/*} && pwd -P )"/.." | |
REMOTE_SHARED="[email protected]:~/www/railsapp/shared" | |
SPEED_LIMIT="" | |
# Un-comment this line if you want to limit the download speed to un-clog your connexion | |
# SPEED_LIMIT="--bwlimit=500" | |
# -l forces copy of symlinks | |
# |
class AppConfig | |
class << self | |
# Lookup via | |
# https://www.ultratools.com/tools/ipWhoisLookupResult | |
# https://www.whatismyip.com/ip-whois-lookup/ | |
BLOCKED_IPS = Set.new( | |
[ | |
"6.5.4.3", | |
"5.4.3.2", | |
"4.3.2.1", |
# Ruby CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-ruby/ for more details | |
# | |
version: 2.1 | |
executors: | |
my-executor: | |
docker: | |
# Main image to be used within this configuration |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require "bundler/inline" | |
gemfile { gem "slack-notifier" } | |
require "slack-notifier" | |
Slack::Notifier.new("https://hooks.slack.com/services/xxxxxxx").ping("• _#{query}_") | |
logs_dir = "~/Documents/work_logs" | |
query = ARGV[0].to_s.delete('\\') |
gem "lograge" | |
gem "logstash-event" | |
gem "logstash-logger" |
#!/usr/bin/env ruby | |
require "json" | |
1000.times do | |
json = `curl --silent --insecure "https://api.namefake.com/french-france/random/"` | |
data = JSON.parse(json) | |
puts data["name"] | |
end |
# frozen_string_literal: true | |
# Bootstrap 4 specific | |
# https://github.com/plataformatec/simple_form/pull/1476 | |
SimpleForm::Inputs::Base.prepend(Module.new { | |
def merge_wrapper_options(options, wrapper_options) | |
if wrapper_options&.key?(:error_class) | |
wrapper_options = wrapper_options.dup | |
error_class = wrapper_options.delete(:error_class) | |
wrapper_options[:class] = "#{wrapper_options[:class]} #{error_class}" if has_errors? |
#!/usr/bin/env ruby | |
if `brew --version`.include? 'Homebrew' | |
puts "Homebrew already installed." | |
else | |
puts "Installing Homebrew ..." | |
`/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` | |
end | |
`brew upgrade` |
# 2017-06-06 : FIX RBENV / FISH | |
if not command -s rbenv > /dev/null | |
echo "rbenv: command not found. See https://github.com/rbenv/rbenv" | |
exit 1 | |
end | |
set -l rbenv_root '' | |
if test -z "$RBENV_ROOT" | |
set rbenv_root "$HOME/.rbenv" |