Skip to content

Instantly share code, notes, and snippets.

raspberry pi livestream to YouTubeLive
/boot/run.sh
/boot/youtube.sh
/etc/rc.local
additional line to /etc/fstab
@akkyie
akkyie / Graph.swift
Created November 18, 2015 07:54
Graph.swift
//
// Graph.swift
// CoreMesh
//
// Created by Akio Yasui on 10/24/15.
// Copyright © 2015 Akio Yasui. All rights reserved.
//
import Foundation
@miyukki
miyukki / cron-upsert-route53-record.sh
Last active October 26, 2015 10:37
家のIPをcronでRoute53に登録する便利スクリプト
#!/bin/sh
ZONE_ID="XXXX"
HOSTNAME="example.com"
IPADDR=`curl http://ipecho.net/plain`
TEMPFILE='/tmp/route53-record.json'
cat << EOS > $TEMPFILE
{
@motemen
motemen / Ojisan-Patterns.md
Last active March 14, 2021 07:37
おじさんパターン集
  • その面白そうな話、私も参加していいよね?なぜなら私は無条件に受け入れられているからおじさん(闖入おじさん) #おじさんパターン
  • 後出し難癖おじさん #おじさんパターン
  • 困難は成長のチャンス!だから君たちに成長の機会をあげようおじさん (成長おじさん) #おじさんパターン
  • あらゆる事案に一般論コメントおじさん #おじさんパターン
  • 俺ってあらゆることに精通してるじゃん?だから力になるよおじさん (精通おじさん) #おじさんパターン
@shyouhei
shyouhei / git-strata.rb
Last active December 8, 2019 07:35
This is git-strata, an extended version of git-blame. It takes a path and generates git-blame like output. The difference is, it also shows you how much edits the line experienced.
#! /your/favourite/path/to/ruby
# -*- coding: utf-8 -*-
# Copyright (c) 2013 Urabe, Shyouhei
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@yayugu
yayugu / gist:5983210
Last active October 29, 2020 18:19
卓球ハウスへのアクセス

住所

〒 153-0064 東京都目黒区下目黒5-11-24

行き方

best practice

グーグルマップ先生で経路から。現在地→東京都目黒区下目黒5-11-24

@nowsprinting
nowsprinting / FxRateLoaderTest.java
Created November 30, 2012 23:34
@it掲載「Android Mockを利用してHTTP通信をテストするには」サンプルコードのmockito使用版
/*
* Copyright(c) 2012 Android Test and Evaluation Club.
*
*/
package org.android_tec.atmarkit.usemockexample.models;
import static org.mockito.Mockito.inOrder;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@rcmachado
rcmachado / html5.vim
Created December 15, 2009 10:35
Vim syntax file for HTML 5
" Vim syntax file
" Language: HTML (version 5)
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
" URL: http://gist.github.com/256840
" Last Change: 2010 Aug 26
" License: Public domain
" (but let me know if you liked it :) )
"
" Note: This file just adds the new tags from HTML 5
" and don't replace default html.vim syntax file