Skip to content

Instantly share code, notes, and snippets.

View binarycode's full-sized avatar

Igor Sidorov binarycode

  • Virtuozzo
  • Rishon LeZion
View GitHub Profile

KVM virtual cloud setup (as root)

Prepare folder structure

mkdir -p /cloud/xml
mkdir -p /cloud/volumes
mkdir -p /cloud/images
@binarycode
binarycode / arch-linux
Created May 9, 2019 18:21 — forked from njam/arch-linux
Install Arch Linux on XPS 13 9360
# Installation on Dell XPS
# Please also consult official documentation:
# https://wiki.archlinux.org/index.php/Installation_Guide
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9360)
# https://wiki.archlinux.org/index.php/Dell_XPS_15_(9550)
# Enter BIOS with F2 and configure:
# - "System Configuration" > "SATA Operation": "AHCI"
# - "Secure Boot" > "Secure Boot Enable": "Disabled"
@binarycode
binarycode / arch-linux
Created May 9, 2019 18:21 — forked from njam/arch-linux
Install Arch Linux on XPS 13 9360
# Installation on Dell XPS
# Please also consult official documentation:
# https://wiki.archlinux.org/index.php/Installation_Guide
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9360)
# https://wiki.archlinux.org/index.php/Dell_XPS_15_(9550)
# Enter BIOS with F2 and configure:
# - "System Configuration" > "SATA Operation": "AHCI"
# - "Secure Boot" > "Secure Boot Enable": "Disabled"

Keybase proof

I hereby claim:

  • I am binarycode on github.
  • I am beanarycode (https://keybase.io/beanarycode) on keybase.
  • I have a public key ASCVqa1dLb6B02J2CerobRufXyQPZTrLl4Kp1NCVmrW7ogo

To claim this, I am signing this object:

@binarycode
binarycode / indexes.rake
Created November 17, 2012 23:15 — forked from vitobotta/indexes.rake
List unindexed foreign keys
namespace :indexes do
desc "List unindexed foreign keys"
task :unindexed_foreign_keys => :environment do
ActiveRecord::Base.logger = Logger.new('/dev/null')
missing_indexes = {}
connection = ActiveRecord::Base.connection
connection.tables.collect do |table|
@binarycode
binarycode / gist:3841815
Created October 5, 2012 19:22
Use Pry everywhere + Bundle everything
# https://github.com/carlhuda/bundler/issues/183#issuecomment-1149953
if defined?(::Bundler)
global_gemset = ([ENV['GEM_PATH'], ENV['_ORIGINAL_GEM_PATH']].join(":")).split(':').grep(/ruby.*@global/).first
if global_gemset
all_global_gem_paths = Dir.glob("#{global_gemset}/gems/*")
all_global_gem_paths.each do |p|
gem_path = "#{p}/lib"
$LOAD_PATH << gem_path
end
end