Skip to content

Instantly share code, notes, and snippets.

Isao Sugimoto d6rkaiz

Block or report user

Report or block d6rkaiz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@d6rkaiz
d6rkaiz / git-cleanup-repo
Created Oct 21, 2017 — forked from robmiller/git-cleanup-repo
A script for cleaning up Git repositories; it deletes branches that are fully merged into `origin/master`, prunes obsolete remote tracking branches, and as an added bonus will replicate these changes on the remote.
View git-cleanup-repo
#!/bin/bash
# git-cleanup-repo
#
# Author: Rob Miller <rob@bigfish.co.uk>
# Adapted from the original by Yorick Sijsling
git checkout master &> /dev/null
# Make sure we're working with the most up-to-date version of master.
git fetch
@d6rkaiz
d6rkaiz / hook.rb
Created May 1, 2016 — forked from asimihsan/hook.rb
Hook for letsencrypt.sh to do DNS challenges
View hook.rb
#!/usr/bin/env ruby
require 'aws-sdk'
require 'pry'
require 'awesome_print'
require 'domain_name'
# ------------------------------------------------------------------------------
# Credentials
# ------------------------------------------------------------------------------
View staging.rb
require Rails.root.join('config/environments/production')
MyApp::Application.configure do
config.action_dispatch.tld_length = 2 # domain.com vs staging.domain.com
end
@d6rkaiz
d6rkaiz / 0_reuse_code.js
Created Aug 22, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@d6rkaiz
d6rkaiz / hack.sh
Created Jun 19, 2012 — forked from DAddYE/hack.sh
OSX For Hackers
View hack.sh
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
View wp-xml-import.rb
# -*- encoding: utf-8 -*-
require 'fileutils'
require 'date'
require 'yaml'
require 'rexml/document'
include REXML
doc = Document.new File.new(ARGV[0])
FileUtils.mkdir_p "_posts"
You can’t perform that action at this time.