Skip to content

Instantly share code, notes, and snippets.

Avatar

naoya Kaneko enukane

View GitHub Profile
@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
View gist:004ab745f4532893b6c7d497760f8081
% ifconfig -v en0 [](03/25/20 13:43)
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 index 6
eflags=412008c0<ACCEPT_RTADV,TXSTART,ARPLL,NOACKPRI,ECN_ENABLE,FASTLN_ON>
xflags=1<WOL>
options=400<CHANNEL_IO>
ether f0:18:98:XX:XX:XX
inet6 fe80::87b:d440:XXX:XXXX%en0 prefixlen 64 secured scopeid 0x6
inet 10.10.2.102 netmask 0xfffffe00 broadcast 10.10.3.255
netif: 2AD4AFD3-8A74-XXXX-XXXX-6CA1152511A7
flowswitch: F8A9466A-6731-XXXX-XXXX-D12192B8A88B
View ar161ew.boot.log
HUAWEI Startcode 2015.01 (Jan 18 2017 - 15:59:50)
DRAM: 1 GB
Boot From NAND Flash
CHIP ID = 51180100
NAND: Special Nand id table Version 1.23
Nand ID: 0x2C 0xDC 0x90 0x95 0x56 0x00 0x00 0x00
512 MiB
In: serial
Out: serial
View ar161ew.boot.fail.log
HUAWEI Startcode 2015.01 (Jan 18 2017 - 15:59:50)
DRAM: 1 GB
Boot From NAND Flash
CHIP ID = 51180100
NAND: Special Nand id table Version 1.23
Nand ID: 0x2C 0xDC 0x90 0x95 0x56 0x00 0x00 0x00
512 MiB
In: serial
Out: serial
@enukane
enukane / dmesg.txt
Last active Jan 7, 2020
SAXA SS3000 ubuntu 19.10で起動時のdmesg等
View dmesg.txt
[ 0.000000] microcode: microcode updated early to revision 0x12d, date = 2019-09-16
[ 0.000000] Linux version 5.3.0-26-generic (buildd@lgw01-amd64-013) (gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)) #28-Ubuntu SMP Wed Dec 18 05:37:46 UTC 2019 (Ubuntu 5.3.0-26.28-generic 5.3.13)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.3.0-26-generic root=UUID=85242ad6-107a-48dc-af3a-26b8e3290d95 ro splash quiet vt.handoff=7
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
@enukane
enukane / gist:cd6de06a5ded20a82426057117ef710b
Last active Sep 16, 2019
c-75 config by get ap config
View gist:cd6de06a5ded20a82426057117ef710b
[config]$ get ap config
Current AP config file is:
--------------------------
[ RADIO_START ]
WIRELESS_MODE=3
AP_CHAN_WIDTH=1
OP_CHANNEL=0
FRAG_THRESH=2346
RTSCTS_THRESH=2347
BEACON_INT=100
View gist:3ebf85d48b288a89f3e8fc8cf5d814d4
U-Boot 1.1.4 (Jun 22 2014 - 15:02:11)
ap135 - Scorpion 1.0DRAM:
sri
Scorpion 1.0
ath_ddr_initial_config(200): (32bit) ddr2 init
tap = 0x00000003
Tap (low, high) = (0x5, 0x1f)
Tap values = (0x12, 0x12, 0x12, 0x12)
128 MB
You can’t perform that action at this time.