Skip to content

Instantly share code, notes, and snippets.

show interfaces
ethernet eth0 {
description "Internet (ONU)"
dhcpv6-pd {
no-dns
pd 0 {
interface switch0 {
host-address ::1
prefix-id 2
service slaac
@osyoyu
osyoyu / config.json
Created July 1, 2017 14:19
Chinachu用 ACCSチャンネルメモ
{
"channels": [
{ "type": "GR", "channel": "18" }, // 1 NHK東京総合
{ "type": "GR", "channel": "19" }, // 2 NHK東京Eテレ
{ "type": "GR", "channel": "25" }, // 4 日本テレビ
{ "type": "GR", "channel": "24" }, // 5 テレビ朝日
{ "type": "GR", "channel": "22" }, // 6 TBSテレビ
{ "type": "GR", "channel": "23" }, // 7 テレビ東京
{ "type": "GR", "channel": "21" }, // 8 フジテレビ
{ "type": "GR", "channel": "15" }, // 9 TOKYO MX
@osyoyu
osyoyu / git-watch
Created January 28, 2017 13:42
git-watch for macOS
#!/bin/bash
fswatch -0 -e '\.git' . | while read -d "" event
do
git add ${event} && git commit -m `date +%s`
done
@osyoyu
osyoyu / config
Created August 20, 2016 17:59
RTX1100 config
login user osyoyu *
console character ascii
login timer 1800
ip route default gateway tunnel 1
ipv6 route default gateway dhcp lan2
ipv6 prefix 1 dhcp-prefix@lan2::/64
ip lan1 address 192.168.0.1/24
ipv6 lan1 address dhcp-prefix@lan2::1/64
ipv6 lan1 rtadv send 1 o_flag=on
ipv6 lan1 dhcp service server
@osyoyu
osyoyu / sutaazu.css
Created July 18, 2016 15:11
何とは言わないマイページのスクロールを軽くするやつ
#container {
background-attachment: initial !important;
}
.m_bg-star01 {
animation: none !important;
}
#container, #container:before, .l_background-hack {
background-attachment: initial;
animation: none !important;
@osyoyu
osyoyu / build.sh
Created March 14, 2016 12:48 — forked from KOBA789/build.sh
もう Grunt やら Gulp やらで消耗したくない
#!/bin/bash
set -ue
#-------------------------------------------------------------------------------
SOURCE_DIR="."
DESTINATION_DIR="public/assets"
JAVASCRIPTS_DIR="javascripts"
STYLESHEETS_DIR="stylesheets"
@osyoyu
osyoyu / SaikohTk.pm
Created February 10, 2016 02:08
saikoh.tk を Perl で叩くやつ
use strict;
use warnings;
require LWP;
require HTTP::Request;
package SaikohTk;
sub new {
my $class = shift;
@osyoyu
osyoyu / bi_print.rb
Created February 6, 2016 06:07
bi_print
require "pry"
R = 2
def bi_print(num)
eval(num.gsub(";", ",")).map.with_index do |digit, i|
digit * (R ** i)
end.inject(&:+)
end
@osyoyu
osyoyu / app.js
Created December 14, 2015 02:35
たのしいVue
Vue.component('hoge', {
template: '#hoge-template'
// 以下略
});
new Vue({
el: '#wrapper'
})
@osyoyu
osyoyu / xhr-promise.js
Created December 13, 2015 15:36
xhr-promise
"use strict";
(function () {
var getOsyoyuCom = new Promise(function (resolve, reject) {
var url = '/hoge.txt';
var request = new XMLHttpRequest();
request.open('GET', url, false);
request.onload = function () {
resolve(request.response);
};