Skip to content

Instantly share code, notes, and snippets.

@oblank
oblank / le-renew-webroot
Last active December 7, 2016 02:19 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
#!/bin/bash
web_service='nginx'
config_file="/etc/le-renew-webroot.ini"
le_path='/usr/local/bin/letsencrypt'
exp_limit=30;
if [ ! -f $config_file ]; then
echo "[ERROR] config file does not exist: $config_file"
@oblank
oblank / redis2txt.rb
Created July 8, 2016 06:32 — forked from nono/redis2txt.rb
Export data from redis to a plain text files
#!/usr/bin/env ruby
require "redis"
redis = Redis.new
redis.keys("*").each do |key|
val = case redis.type(key)
when "string"
redis.get key
when "list"
@oblank
oblank / file0.txt
Created February 2, 2016 07:31 — forked from giwa/file0.txt
Install g++/gcc 4.8.2 in CentOS 6.6 ref: http://qiita.com/giwa/items/28c754d8fc2936c0f6d2
$ wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
$ yum install devtoolset-2-gcc devtoolset-2-binutils
$ yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran
@oblank
oblank / 0_reuse_code.js
Created October 23, 2015 10:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@oblank
oblank / surge.conf
Created October 11, 2015 07:51 — forked from soffchen/surge.conf
surge.conf
[General]
loglevel = notify
all-tcp-mode = false
[Proxy]
Proxy = custom
[Rule]
// iOS
DOMAIN-SUFFIX,lcdn-registration.apple.com,DIRECT
@oblank
oblank / home.html
Last active August 29, 2015 14:23 — forked from pinscript/home.html
{{define "body"}}
This is the start page.
<br><br>
Check out <a href="/user/5">user 5</a> or <a href="/user/7">user 7</a>.
{{end}}