Skip to content

Instantly share code, notes, and snippets.

View noda-sin's full-sized avatar
😀
Happy

Noda Shimpei noda-sin

😀
Happy
View GitHub Profile
#!/usr/bin/env python
# This is an example Git server. http://blog.nerds.kr/post/106956608369/implementing-a-git-http-server-in-python
# Stewart Park <stewartpark92@gmail.com>
from flask import Flask, make_response, request, abort
from StringIO import StringIO
from dulwich.pack import PackStreamReader
import subprocess, os.path
from flask.ext.httpauth import HTTPBasicAuth
@sonots
sonots / fluentd_hacking_guide.md
Last active October 4, 2024 00:01
Fluentd ソースコード完全解説 (v0.10向け)

Fluentd ソースコード完全解説

英題:Fluentd Hacking Guide

目次

30分しかないため斜線部分は今回省く

  • Fluentd の起動シーケンスとプラグインの読み込み
  • Fluentd の設定ファイルのパース
  • Input Plugin から Output Plugin にデータが渡る流れ
@yatatsu
yatatsu / notification.md
Last active August 29, 2015 14:05
What's New in iOS Notifications
#!/bin/bash
export JAVA_HOME="/usr/java/jdk1.7.0_45/jre"
export KEYTOOL=$JAVA_HOME/bin/keytool
# Password settings
#
# These are the default password settings used by the openssl and
# keytool programs. All passwords can be changed, EXCEPT the
# CACERT_PASSWD, as this is the default password that the SUN cacert
# from the JRE uses!
#
@rtt
rtt / tinder-api-documentation.md
Last active June 18, 2026 11:54
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@hayajo
hayajo / Vagrantfile
Last active September 3, 2017 17:02
GitBucketのVagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
GITBUCKET_VERSION = "1.12"
HTTP_PORT = 8080
SSH_PORT = 29418
Vagrant.configure(2) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
@hayajo
hayajo / 00.md
Last active March 8, 2020 16:05
NDS#36 Go言語入門
@paulsheldrake
paulsheldrake / cpuminer_setup.sh
Last active January 21, 2018 15:17
Install cpuminer on an AWS instance
sudo yum -y update
sudo yum -y groupinstall "Development Tools"
sudo yum -y install git libcurl-devel libcurl
# jansson C json library
wget ftp://fr2.rpmfind.net/linux/epel/testing/6/x86_64/jansson-2.6-1.el6.x86_64.rpm
wget ftp://fr2.rpmfind.net/linux/epel/testing/6/x86_64/jansson-devel-2.6-1.el6.x86_64.rpm
sudo yum -y install jansson-2.6-1.el6.x86_64.rpm
sudo yum -y install jansson-devel-2.6-1.el6.x86_64.rpm
@victorb
victorb / app.js
Created September 24, 2013 16:37
Easy AngularJS Directive for Google Places Autocomplete
var myApp = angular.module('myApp', []);
myApp.directive('googleplace', function() {
return {
require: 'ngModel',
link: function(scope, element, attrs, model) {
var options = {
types: [],
componentRestrictions: {}
};
@rmmh
rmmh / ecc.c
Last active December 16, 2015 05:29
Simple single-byte error correction for short messages using two check bytes.
// Single-byte error correction for messages <255 bytes long
// using two check bytes. Based on "CA-based byte error-correcting code"
// by Chowdhury et al.
//
// rmmh 2013
//
// This code is released into the public domain.
uint8_t lfsr(uint8_t x) {
return (x >> 1) ^ (-(x&1) & 0x8E);