Skip to content

Instantly share code, notes, and snippets.

Make bugs

YuLun Shih imZack

Make bugs
View GitHub Profile
for i in {1..10};
openssl req -x509 -new -sha256 -nodes \
-out "cert-$i.der" \
-outform DER \
-newkey rsa:2048 \
-keyout "cert-$i.key" \
-config <(
imZack / sched-reboot.service
Created Feb 26, 2020 — forked from hkoba/sched-reboot.service
systemd service and timer for scheduled reboot.
View sched-reboot.service
Description=Scheduled Reboot
ExecStart=/usr/bin/systemctl --force reboot
View gist:3af5c993f2bab20714cf6ce8a69e21c5
### Keybase proof
I hereby claim:
* I am imzack on github.
* I am rezacks ( on keybase.
* I have a public key ASBX5LZtqJ8mpjwV-42bFRxfm8oTY24IdxhSWtoO0N2Fvwo
To claim this, I am signing this object:
View thingpro-modbus-flow.js
"id": "50c307d1.8b1638",
"type": "exec",
"z": "473cc561.67a87c",
"command": "python",
"addpay": true,
"append": "",
"useSpawn": "false",
"timer": "10",
imZack /
Created Nov 29, 2017 — forked from idolpx/
Python HTTP download with resume and optional MD5 hash checking
import os.path
import requests
import shutil
import hashlib
import logging
def validate_file(file_path, hash):
Validates a file against an MD5 hash value
View exportjson.js
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
imZack /
Created Jun 8, 2017 — forked from mleinart/
Flashing Carrier configuration and updated firmware to a Sierra MC7355


The Sierra MC7355 can run configurations for several North American carriers. These cards are easy to find on eBay and notable for their support for the Sprint LTE network. Unless you're luck out, you may find you need to flash a new carrier configuration onto the card you purchased before using it.


These procedures are specific to the setup I had to perform this on. Most notably, the only system I had with a mini-PCI-e slot was the target pfSense system, a PCengines APU1d with no VGA port (serial console only). If you're able to obtain a

View raspberry pi 2 crash
[6543782.657324] ------------[ cut here ]------------
[6543782.657375] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x2a4/0x2b0()
[6543782.657389] NETDEV WATCHDOG: eth0 (smsc95xx): transmit queue 0 timed out
[6543782.657401] Modules linked in: bnep bluetooth ipt_REJECT nf_reject_ipv4 xt_multiport xt_nat veth xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter nf_nat nf_conntrack br_netfilter bridge stp llc overlay cfg80211 rfkill xt_TCPMSS xt_tcpmss xt_tcpudp iptable_mangle ip_tables x_tables pppoe pppox ppp_generic slhc snd_bcm2835 snd_pcm bcm2835_gpiomem bcm2835_rng snd_timer snd uio_pdrv_genirq uio ipv6
[6543782.657630] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.1.19-v7+ #858
[6543782.657642] Hardware name: BCM2709
[6543782.657685] [<800185e0>] (unwind_backtrace) from [<80013f48>] (show_stack+0x20/0x24)
[6543782.657714] [<80013f48>] (show_stack) from [<805730bc>] (dump_stack+0xd4/0x118)
imZack / qmi_dissector.lua
Created May 12, 2016 — forked from ivoronin/qmi_dissector.lua
Wireshark Dissector for Qualcomm MSM Interface (QMI) Protocol
View qmi_dissector.lua
Wireshark Dissector for Qualcomm MSM Interface (QMI) Protocol v0.1
Copyright (c) 2012 Ilya Voronin <>
Based on Code Aurora Forum's BSD/GPL licensed code:
Short howto for using this script:
imZack /
Last active Sep 15, 2015 — forked from peterhost/
Daemon init script for node.js based app/server (DEBIAN/UBUNTU)
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)