Skip to content

Instantly share code, notes, and snippets.

View jerome's full-sized avatar

Jérôme Lipowicz jerome

View GitHub Profile
@dragon788
dragon788 / win10_binary_fission.md
Last active April 19, 2024 09:26
Making the Windows 10 "chubby" install.wim compatible with a FAT32 USB so a UEFI bootable USB can be created from Linux/macOS/ChromeOS

MAGIC aka Making Anything Gruelingly "Impossible" Coherent

Whatever operating system you are using to create the USB, you will need to have a Windows 10 ISO, either from Microsoft or your system manufacturer and have a USB drive 8GB or larger (or one with at least 5GB of free space and using the FAT32 filesystem, but using a fresh and empty one is best).

TL;DR

#macOS/Linux
# First try the `bootiso` program, it has options for splitting the WIM for you!
# https://jsamr.github.io/bootiso/
# You need to already have 7zip aka `p7zip` on macOS and Linux, and `wimlib` macOS via `brew` or `wimtools` on Linux
@chrisb
chrisb / gist:4d6a09c6cc1ca2e1b14e
Last active November 25, 2022 04:15
Homebrew, Ruby, and Rails on OS X 10.10

OS X 10.10 Guide

Here's what I did to get things working.

1. Install Xcode 6

Yep, over at: https://developer.apple.com

2. Install the Command Line Tools (CLT)

@chrismcg
chrismcg / 1 The requirements.txt
Created October 15, 2012 14:18
Config for running Localeapp in staging/production on Heroku
- poll every 5 minutes on :staging env
- poll on deployment only on :production env (not only dyno restart)
This assumes you've setup separate production/staging environments as described in:
https://devcenter.heroku.com/articles/multiple-environments
Especially the part about setting the RAILS_ENV/RACK_ENV on the staging environment.
The "polling" on deployment takes advantage of the fact that heroku runs the
@zenkay
zenkay / gist:3237860
Created August 2, 2012 15:19
Installation tips for RVM/Ruby on OSX 10.8 Mountain Lion

Ruby, RVM and Mountain Lion

Key problems

Mountain Lion (10.8) has three main difference compared to Lion (10.7):

  • XCode 4.4 does not install Command Line Tools by default
  • X11 isn't available anymore
  • The installed version of OpenSSL has some bugs

How to work around

require 'csv'
require 'yaml'
stats = {}
CSV.read(File.expand_path(ARGV.first)).each do |row|
stats[row.first] ||= {}
stats[row.first][:counter] ||= 0
stats[row.first][:counter] += 1
stats[row.first][:who] ||= []
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@croaky
croaky / HOW_TO.md
Created March 16, 2012 05:43 — forked from michaeldauria/gist:2048022
Migrate from Copycopter 1.0 (hosted by thoughtbot) to Copycopter 2.0 (open source, deploy your own instance)

Use the latest version of the copycopter_client gem:

gem 'copycopter_client', '2.0.0'

Export your published drafts from copycopter.com:

RAILS_ENV=production bundle exec rake copycopter:export

This will create a config/locales/copycopter.yml file.

@vijjunyros
vijjunyros / paypal_recurring_gateway.rb
Created August 11, 2011 06:36 — forked from dmitriy-kiriyenko/paypal_recurring_gateway.rb
Paypal Recurring Gateway, based on ActiveMerchant
class PaypalRecurringGateway < ActiveMerchant::Billing::PaypalGateway
NS2 = 'n2:'
self.default_currency = 'USD'
def create_recurring(money, credit_card, options = {})
request = create_recurring_request(money, credit_card, options)
commit("CreateRecurringPaymentsProfile", request)
end
def update_recurring(money, profile_id, options = {})