Skip to content

Instantly share code, notes, and snippets.

View sugitk's full-sized avatar

Takashi Sugimura sugitk

View GitHub Profile
@wate
wate / Vagrantfile
Last active October 20, 2018 08:15
Let's Scratch 3.0 GUI
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "histudy/stretch"
config.vm.network "forwarded_port", guest: 8601, host: 8601
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
# Ansibleのインストール
@gozen-bro3
gozen-bro3 / 3gokushi-Beyond.user.js
Last active April 14, 2016 06:55
ブラウザ三国志用便利機能色々ごった煮
This file has been truncated, but you can view the full file.
// ==UserScript==
// @name 3gokushi-Beyond
// @namespace 3gokushi-hatt
// @description ブラウザ三国志用便利機能色々ごった煮
// @include http://*.3gokushi.jp/*
// @include http://mixi.jp/run_appli.pl?id=6598
// @include http://*.mixi-platform.com/*
// @author 原作者hatt,編集者romer,etc...
// @version 2.0.48ο(オミクロン)+盾兵
@brianredbeard
brianredbeard / syncrepos.sh
Last active January 30, 2024 06:23
Reposync - A better tool than mrepo. Use this to sync down all channels a RHEL system is subscribed to and turn them into locally exposed yum repositories.
#!/bin/bash
# This tool can be used to sync down Red Hat based packages from RHN using only Red Hat shipped tools
# Brian "Red Beard" Harrington <brian@dead-city.org>
# Copyright 2013
#
# To satisfy the pre-reqs for this script install the following two rpms:
# yum-utils
# createrepo_c (in RHEL 8 createrepo and createrepo_c have been combined)
# See https://github.com/rpm-software-management/createrepo_c#differences-in-behavior-between-createrepo_c-and-createrepo
@rummelonp
rummelonp / faraday.md
Last active May 20, 2022 12:23
Ruby の HTTP クライアントライブラリ Faraday が便利そう

Ruby の HTTP クライアントライブラリ Faraday が便利そう

Ruby の HTTP クライアントライブラリ Faraday が便利そう

API ラッパの開発には [RestClient gem][rest_client_gem] だとか
OAuth の必要なものは [Net/HTTP][net_http] + [OAuth gem][oauth_gem] を使ってた

[Twitter gem][twitter_gem] や [Instagram gem][instagram_gem] など API ライブラリのソースを読んでみると
[Faraday gem][faraday_gem] というものがよく使われてた

@kyanny
kyanny / gist:1727338
Created February 3, 2012 02:52
system-wide installation rbenv + ruby-build @/usr/local
MY_GROUP=""
if [ "$MY_GROUP" = "" ] ; then
echo '!!! undefined variable MY_GROUP.'
echo '!!!'
echo '!!! ex.) MY_GROUP=staff'
echo '!!!'
exit 1
fi
cd /usr/local