Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

naoya Kaneko enukane

🏠
Working from home
View GitHub Profile
@enukane
enukane / gist:1f760bda013ea4855c193d2faca785a2
Created May 28, 2021
aerohiveでhs2.0有効化できたときの関係しそうなコンフィグ
View gist:1f760bda013ea4855c193d2faca785a2
ssid glenda9-hs20-ah
ssid glenda9-hs20-ah security-object glenda9-hs20
security-object glenda9-hs20
security-object glenda9-hs20 security aaa radius-server primary 172.20.0.254
security-object glenda9-hs20 security protocol-suite wpa2-aes-8021x
interface wifi1 ssid glenda9-hs20-ah
interface wifi0 ssid glenda9-hs20-ah
@enukane
enukane / lookback2020.md
Last active Jan 4, 2021
2020年振り返り
View lookback2020.md

2020年の振り返り

今年消化したやりたいことリスト

の項目たち

  • Fate HF最終章みにいく
  • バ美肉やってみる (Discordでだけど)
  • 映画10本みる
  • 牛肉100%ハンバーグ自作する
@enukane
enukane / gps.sh
Created Dec 4, 2020
gpsd with cgps
View gps.sh
# run gpsd
/usr/local/sbin/gpsd -N -F /usr/local/var/gpsd.sock /dev/$1 &
# run cgps
cgps
@enukane
enukane / gist:e5c27e85e3df2f19ae0bffe6589e8faa
Created Dec 2, 2020
ntpに時刻だけ問い合わせて調整はしないやつ
View gist:e5c27e85e3df2f19ae0bffe6589e8faa
#!/bin/sh
ntpdate -d -vv -q $1
View NSColorPanelSwatches.plist.base64.txt
YnBsaXN0MDDUAQIDBAUGhodYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK8QGAcIGCIoLDM3Oj9ER0xRVltgZWpvdHh+gVUkbnVsbNIJCgsXWk5TLm9iamVjdHNWJGNsYXNzqwwNDg8QERITFBUWgAKACIALgAyADYAOgA+AEIARgBKAE4AU1RkaGxwKHR4fICFcTlNDb21wb25lbnRzVU5TUkdCXE5TQ29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZU8QJzAuMzA0MzI1MzcyIDAuNjUyNTUyMzY2MyAwLjQ4NTQzNjU1ODcgMU8QJzAuMjUxNzk4MzkxMyAwLjU5NzUxODg2MTMgMC40MDk5NTg5Mjg4ABABgAOAB9MjJAolJidUTlNJRFVOU0lDQxAHgASABtIpCiorV05TLmRhdGFPEQxIAAAMSExpbm8CEAAAbW50clJHQiBYWVogB84AAgAJAAYAMQAAYWNzcE1TRlQAAAAASUVDIHNSR0IAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1IUCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARY3BydAAAAVAAAAAzZGVzYwAAAYQAAABsd3RwdAAAAfAAAAAUYmtwdAAAAgQAAAAUclhZWgAAAhgAAAAUZ1hZWgAAAiwAAAAUYlhZWgAAAkAAAAAUZG1uZAAAAlQAAABwZG1kZAAAAsQAAACIdnVlZAAAA0wAAACGdmlldwAAA9QAAAAkbHVtaQAAA/gAAAAUbWVhcwAABAwAAAAkdGVjaAAABDAAAAAMclRSQwAABDwAAAgMZ1RSQwAABDwAAAgMYlRSQwAABDwAAAgMdGV4dAAAAABDb3B5cmlnaHQgKGMpIDE5OTggSGV3bGV0dC1QYWNrYXJkIENvbXBhbnkAAGRlc2MAAAAAAAAAEnNSR0IgSUVDNjE5NjYtMi4xAAAAAAAAAAAA
@enukane
enukane / ruby_3dialog.vim
Last active Sep 23, 2020
脱Ruby矯正ギプス: ~/.vim/ftplugin/に放り込む
View ruby_3dialog.vim
let counter = 1
let dialog_list = [ "Are you really trying to edit ruby file?", "DO you really want to edit ruby file?", "ARE YOU REALLY SURE about editing ruby file?"]
for dialog_text in dialog_list
let select = confirm(dialog_text, "No, I was wrong\nYes I will!")
if select == 2
" keep going
else
quit
@enukane
enukane / certgen.sh
Created Aug 5, 2020
certificate generator
View certgen.sh
#!/bin/sh -e
RSASECRET=rsa-secret.key
REQCSR=request.csr
CERT=certificate.crt
echo "STEP1: generate RSA secret key"
openssl genrsa -out $RSASECRET 1024
echo ""
@enukane
enukane / gist:639d76247c79c07f4aa6509f3d0e451c
Created Aug 2, 2020
ACON R1608-GV の起動ログその他
View gist:639d76247c79c07f4aa6509f3d0e451c
Starting... 100%
System Bootstrap, Version 0.3.5
Serial num:XXXXXX, ID num:041905
ACON-R1608-GV Copyright 2015
The current time: 2020-8-2 13:41:10
Loading Router.bin........................................................
Start Decompress Router.bin
###################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
View cpuid.c
#include <stdio.h>
#include <limits.h>
#define cpuid(id) __asm__( "cpuid" : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) : "a"(id), "b"(0), "c"(0), "d"(0))
#define b(val, base, end) ((val << (__WORDSIZE-end-1)) >> (__WORDSIZE-end+base-1))
int main(int argc, char **argv)
{
unsigned long eax, ebx, ecx, edx;
View bgp-as-number-assign.txt
# policy
bgp AS Number := 650000 + ($layer - 1) * 100 + $inLayerID
$layer := { 1 (external), 2 (aggr) , 3 (head
$inlayerid := counter from left
e.g. aggr router with ID=2 -> 65102
# bgp-local(101, 10.1.$ID.1/32)
.1: seilx1-1
$ID := ($layer - 1) * 100 + $InLayerID