Skip to content

Instantly share code, notes, and snippets.

View Laica-Lunasys's full-sized avatar
🍣
SUSHI

Laica Lunasys Laica-Lunasys

🍣
SUSHI
View GitHub Profile
@koyopro
koyopro / amazon-calc.js
Last active April 11, 2025 06:58 — forked from polamjag/amazon-calc.js
Amazonで一年間に使った金額と、注文履歴のTSVを出力するブックマークレット【2015年版】
// Amazonの注文履歴をTSV形式で出力するスクリプト
//
// 2015-01-01 時点での DOM 構造に対応, GoogleCrome, Opera でテスト済。
// formatEntry関数を書き換えれば自由な書式で出力できます。
//
// 参考:
// - Amazonの注文履歴をCSV形式にして出力するスクリプト
// https://gist.github.com/arcatdmz/8500521
// - Amazon で使った金額の合計を出す奴 (2014 年バージョン)
// https://gist.github.com/polamjag/866a8af775c44b3c1a6d
@akameco
akameco / update_name.rb
Created May 13, 2014 07:15
アップデートネーム
# coding: utf-8
require 'rubygems'
require 'twitter'
CONSUMER_KEY = 'APIキー'
CONSUMER_SECRET = 'APIシークレットキー'
ACCESS_TOKEN = 'アクセストークン'
ACCESS_TOKEN_SECRET = 'アクセストークンシークレット'
client = Twitter::REST::Client.new do |config|
@ardan-bkennedy
ardan-bkennedy / GoMgoSample-1.go
Last active January 31, 2025 09:00
Sample Go and MGO example
type (
// BuoyCondition contains information for an individual station.
BuoyCondition struct {
WindSpeed float64 `bson:"wind_speed_milehour"`
WindDirection int `bson:"wind_direction_degnorth"`
WindGust float64 `bson:"gust_wind_speed_milehour"`
}
// BuoyLocation contains the buoy's location.
BuoyLocation struct {
@bibineko
bibineko / bpex.py
Created January 20, 2014 15:37
pexpectを使ってyamaha routerからsshで情報を取ってくる
#! /usr/bin/env python
# -*- coding:utf-8 -*-
""" [NAME] に続くScriptの簡易説明文
[DESCRIPTION] Scriptの詳細説明文
ユーザ名とパスワードの保存にpitを使っている。
username: sshのユーザ
password: パスワード
@steeve
steeve / _readme.md
Last active March 25, 2025 07:32
How to cross compile Go with CGO programs for a different OS/Arch

How to cross compile Go with CGO programs for a different OS/Arch

It is possible to compile Go programs for a different OS, even though go build says otherwise.

You'll need:

@werty1st
werty1st / ufw gufw on fedora
Created September 15, 2013 14:49
ufw gufw on fedora
Sourcen laden:
https://launchpad.net/ufw
https://launchpad.net/gui-ufw
Abhänigkeiten:
sudo yum -y install python-netifaces python-distutils-extra intltool
//mehr waren es bei mir nicht
Installieren:
[ronny@zenbookprime ufw-0.33]$ sudo python setup.py install
@nullkal
nullkal / gist:6306428
Created August 22, 2013 12:15
FreeBSD向けのMinecraft(bukkit)鯖 起動スクリプト。 必要なもの: Java, tmux, 鯖を配置した各ディレクトリに一つstart.sh(bukkit Wikiに書いてあるLinux用craftbukkit.shそのままでOK)
#!/bin/sh
# PROVIDE: mc-servers
# REQUIRE: LOGIN
. /etc/rc.subr
name="mc_servers"
rcval=mc_servers_enable
#!/bin/bash
## Install Gitlab 5.2 on OpenSUSE 12.3 32Bits
## Project http://gitlab.org/
## Base https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md
## Autor: Nilton OS -- Version 0.9 14-06-2013 -- http://wwww.linuxpro.com.br/blog
## Change Vars !!!
SERVER_IP="10.0.2.15"
SERVER_FQDN="gitlab.linuxpro.com.br"
DOMIAN="linuxpro.com.br"
@mollifier
mollifier / file0.sh
Created December 11, 2012 00:08
zsh の vcs\_info に独自の処理を追加して stash 数とか push していない件数とか何でも表示する ref: http://qiita.com/items/8d5a627d773758dd8078
# vcs_info 設定
RPROMPT=""
autoload -Uz vcs_info
autoload -Uz add-zsh-hook
autoload -Uz is-at-least
autoload -Uz colors
# 以下の3つのメッセージをエクスポートする