I love the new GitHub issues, here are some ideas to make it perfect, ordered by priority:
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
# * InnoDB | |
# | |
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. | |
# Read the manual for more InnoDB related options. There are many! | |
# | |
innodb_flush_log_at_trx_commit = 2 | |
innodb_buffer_pool_size = 512M | |
innodb_log_buffer_size = 512M | |
innodb_additional_mem_pool_size = 64M |
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/env ruby | |
# | |
# A quick script to dump an overview of all the open issues in all my github projects | |
# | |
require 'octokit' | |
require 'awesome_print' | |
require 'rainbow' |
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
ActiveRecord::Base.connection_pool.disconnect! | |
ActiveRecord::Base.connection_handler.remove_connection(ActiveRecord::Base) | |
Rails.application.config.database = new_database_config # not strictly necessary | |
ActiveRecord::Base.configurations = new_database_config | |
ActiveRecord::Base.establish_connection |
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
current_scheduler = scheduler(:availabilities) | |
def current_scheduler.handle_exception(job, exception) | |
Airbrake.do_the_right_thing(exception, other_params) | |
puts "job #{job.job_id} caught exception '#{exception}' - the Airbrake has been triggered" | |
end |
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 | |
ssh_host=$1 | |
host_name=${2:-$ssh_host} | |
puppet_version="2.7.1" | |
if [ -z "$ssh_host" ]; then | |
echo "please provide hostname for node to fetch facts from" | |
exit | |
fi |
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/env bash | |
# An own database for every branch | |
# | |
# 1) put this script somewhere, make it executable (chmod +x) | |
# 2) modify your database.yml: | |
# development: | |
# adapter: postgresql | |
# database: "<%= `path/to/stored_script` %>" | |
# 3) If you want a separate db for your branch, follow the instructions on STDERR on environment startup |
I hereby claim:
- I am kronn on github.
- I am kronn (https://keybase.io/kronn) on keybase.
- I have a public key ASAibO_1tMYCUH7PN-MxnSXnXqU8EnXmBCFc-48kHAvXmAo
To claim this, I am signing this object:
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
PreCommit: | |
UpdatedLicenseHeader: | |
enabled: true | |
description: 'Checking if license is present and updated' |
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/env ruby | |
# rubocop:disable Style/SpecialGlobalVars | |
begin | |
require 'ruby-progressbar' | |
rescue LoadError | |
system 'gem', 'install', 'ruby-progressbar' | |
exec "#{$0} #{ARGV.join(' ')}" | |
end |
OlderNewer