View chnode.rb
class Chnode < Formula
desc "Change between installed Node versions in your current shell."
homepage "https://github.com/steakknife/chnode"
url "https://github.com/steakknife/chnode/archive/v1.2.3.tar.gz"
sha256 "ae0bd1d9227ef76286d19331f9a3c5fcc1926e70f4ef0d3896a8f9f7b463c792"
depends_on "node"
def install
bin.install "chnode", "chnode-auto", "chnode-exec"
View musl.rb
class Musl < Formula
desc "Linux cross compilers based on musl libc"
homepage "https://github.com/richfelker/musl-cross-make"
url "https://github.com/richfelker/musl-cross-make/archive/v0.9.2.tar.gz"
sha256 "828b4913c80018d25fff5809aa6691141be4dc9001d3204ae9a94a8e71a5176f"
head "https://github.com/richfelker/musl-cross-make.git"
option "with-arm-hf", "Build cross-compilers targeting arm-linux-musleabihf"
option "with-arm", "Build cross-compilers targeting arm-linux-musleabi"
option "with-i486", "Build cross-compilers targeting i486-linux-musl"
View nginx.sh
#!/bin/sh
set -e
## config - start - should move to another file
ulimit -n 100000
CONF='/etc/nginx/nginx.conf'
# TODO: grab below by parsing CONF
PROTO=http
IP=0.0.0.0
PORT=80
## config - end - should move to another file
View main.cc
#include <cstdint>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <typeinfo>
#ifdef __GNUG__
# include <cxxabi.h>
#endif
View gist.sh
#!/usr/bin/env bash
set -e
CURLOPTS=
GHUSER=
GHPASS=
GH2FA=
GHPUBLIC=
FILES=
SEP=
View sync
#!/usr/bin/env ruby
require 'open-uri'
require 'json'
require 'fileutils'
USERNAME = ARGV[0]
error = if USERNAME.nil? || USERNAME !~ /\A[a-zA-Z0-9-]+\z/
'missing/invalid username argument to clone/pull gists from'
elsif ARGV[1].nil? || ARGV[1].empty?
View which_gems_are_bundled.rb
Bundler.environment.dependencies.select(&:should_include?)
View iseq_fix.patch
--- a/compile.c 2018-05-13 19:35:50.000000000 -0700
+++ b/compile.c 2018-05-13 19:34:53.000000000 -0700
@@ -4569,6 +4569,7 @@
DECL_ANCHOR(else_seq);
LABEL *then_label, *else_label, *end_label;
VALUE branches = 0;
+ int ci_size, ci_kw_size;
INIT_ANCHOR(cond_seq);
INIT_ANCHOR(then_seq);
View action_dispatch_extensions.rb
class ActionDispatch::Routing::Mapper
def localize_and_scope_for(locales, options = {}, &block)
skip_scope = options[:skip_scope]
locales = locales.dup
locales.delete skip_scope
scope("/:locale", :constraints => {:locale => /#{locales.join('|')}/}) do
yield
end
yield if skip_scope
end
View find_all_unowned_and_locked_files
#!/bin/sh
exec find -E . \
! -regex './(Backups\.backupdb|\.Trashes|\.Spotlight-V100|\.fseventsd|\.disk_label(_2x)?|\.VolumeIcon\.icns|\.DS_Store)(/.*)?' \
\( \
! -user $(id -u) -o \
! -group $(id -g) -o \
-flags uchg -o \
-flags schg \
\) 2>/dev/null