Skip to content

Instantly share code, notes, and snippets.

Avatar
🥟

Masaki Koyanagi mascii

🥟
View GitHub Profile
@mascii
mascii / get_vue_constructor_function.js
Created Jan 19, 2020
Vueコンストラクタ関数の取得(IE11対応版)
View get_vue_constructor_function.js
var Vue = (function () {
var el = [].filter.call(document.all, function (el) {return el.__vue__})[0];
if (!el) {
return;
}
var Vue = Object.getPrototypeOf(el.__vue__).constructor;
while (Vue.super) {
Vue = Vue.super;
}
return Vue;
@mascii
mascii / nintendoswitch_access.log
Created Feb 10, 2018
Nintendo Switch アクセスログ
View nintendoswitch_access.log
192.168.10.3 - - [09/Feb/2018:01:32:07 +0900] "GET http://ctest.cdn.nintendo.net/ HTTP/1.1" 200 370 "-" "NX NIFM/00" TCP_MISS:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:08 +0900] "CONNECT receive-lp1.dg.srv.nintendo.net:443 HTTP/1.1" 200 1820 "-" "-" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:08 +0900] "CONNECT accounts.nintendo.com:443 HTTP/1.1" 200 4531 "-" "libcurl (nnAccount; 789f928b-138e-4b2f-afeb-1acae821d897; SDK 4.4.0.0; Add-on 4.4.0.0)" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:09 +0900] "CONNECT api.accounts.nintendo.com:443 HTTP/1.1" 200 4345 "-" "libcurl (nnAccount; 789f928b-138e-4b2f-afeb-1acae821d897; SDK 4.4.0.0; Add-on 4.4.0.0)" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:15 +0900] "CONNECT app-a02.lp1.npns.srv.nintendo.net:443 HTTP/1.0" 200 11121 "-" "-" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:30 +0900] "GET http://ctest.cdn.nintendo.net/ HTTP/1.1" 200 370 "-" "NX NIFM/00" TCP_MISS:HIER_DIRECT
192.168.10.3 - - [09/Feb/20
View rasp_node_npm.sh
sudo apt-get update
sudo apt-get install -y nodejs npm
sudo npm cache clean
sudo npm install npm n -g
sudo n stable
@mascii
mascii / password_hash.go
Created Feb 2, 2017
password_hash function
View password_hash.go
package main
import (
"golang.org/x/crypto/bcrypt"
"fmt"
)
func main() {
password := []byte("pasuwa-do")