Skip to content

Instantly share code, notes, and snippets.

View adierebel's full-sized avatar
🏠
Working from home

adierebel adierebel

🏠
Working from home
View GitHub Profile
@adierebel
adierebel / test.md
Last active September 28, 2017 16:10
test new gist
`xxxx`
@adierebel
adierebel / ru&n.py
Last active September 28, 2017 16:00
Flask Runner
from sys import argv
from app import app
try:
Port = 8080
if len(argv) > 1:
Port = int(argv[1])
app.run(host='0.0.0.0', port=Port, debug=True)
@adierebel
adierebel / readme.md
Last active August 14, 2020 17:50
Install Mariadb / MySQL on Alpine Linux 3.8

Install

apk add mysql mysql-client

Setup

  • Add user group for /var/lib/mysql: chown -R mysql:root /var/lib/mysql
  • Edit config, add datadir=/var/lib/mysql to /etc/mysql/my.cnf
  • Uncomment innodb_buffer_pool_size=16M, Save
  • Setup database: service mariadb setup
print("Hello World...")
@adierebel
adierebel / linux.md
Created October 19, 2020 03:40
Linux Command Cheatsheet

Linux Command Cheatsheet

Jurus pamungkas saya dalam dunia per-linux-an...

SSH

  • ssh username@server -p 22 > Login SSH
  • ssh-copy-id username@server > Copy ssh key
  • ssh-keygen -t rsa > Generate ssh key
@adierebel
adierebel / settings.json
Created December 11, 2020 13:38
VSCode Settings
{
"breadcrumbs.enabled": false,
"window.titleBarStyle": "custom",
"editor.renderWhitespace": "boundary",
"editor.insertSpaces": false,
"editor.smoothScrolling": true,
"workbench.colorTheme": "Community Material Theme High Contrast",
"workbench.iconTheme": "eq-material-theme-icons",
"workbench.colorCustomizations": {
"sideBar.background": "#192227",
@adierebel
adierebel / readme.md
Last active February 5, 2021 09:09
Emu8086 Basic Math by Em Suryadi

Emu8086 Basic Math

by Em Suryadi

Addition [ + ]

.model small
.code
ORG 100h
TData: JMP Proses
@adierebel
adierebel / vendors.json
Created December 9, 2021 15:49
USB Vendors ID JSON
{
"4621": "(AVL) DiTEST Fahrzeugdiagnose GmbH",
"3765": "@pos.com",
"3151": "01dB‐Stell",
"10737": "0XF8 Limited",
"8168": "103mm Tech",
"8219": "1064138 Ontario Ltd. O/A UNI‐TEC ELECTRONICS",
"4375": "11 WAVE TECHNOLOGY, INC.",
"4835": "1417188 Ontario Ltd.",
"5288": "1C Company",

Download Data

Download from http://www.linux-usb.org/usb.ids and save as data.txt

Run Script

Save this code below as parser.py Run with python parser.py Result -> usb.json