Skip to content

Instantly share code, notes, and snippets.

🤠
Make bugs

YuLun Shih imZack

🤠
Make bugs
Block or report user

Report or block imZack

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3af5c993f2bab20714cf6ce8a69e21c5
### Keybase proof
I hereby claim:
* I am imzack on github.
* I am rezacks (https://keybase.io/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
imZack / download.py
Created Nov 29, 2017 — forked from idolpx/download.py
Python HTTP download with resume and optional MD5 hash checking
View download.py
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
imZack / sierra_mc7355_flashing.md
Created Jun 8, 2017 — forked from mleinart/sierra_mc7355_flashing.md
Flashing Carrier configuration and updated firmware to a Sierra MC7355
View sierra_mc7355_flashing.md

Overview

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.

Notes

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)
[6543782.657741
@imZack
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 <ivoronin@gmail.com>
Based on Code Aurora Forum's BSD/GPL licensed code:
http://www.codeaurora.org/contribute/projects/gobi/
Short howto for using this script:
@imZack
imZack / node_debian_init.sh
Last active Sep 15, 2015 — forked from peterhost/node_debian_init.sh
Daemon init script for node.js based app/server (DEBIAN/UBUNTU)
View node_debian_init.sh
#!/bin/sh
# ------------------------------------------------------------------------------
# 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)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28
@imZack
imZack / zram.sh
Last active Mar 6, 2018 — forked from voyeg3r/zram.sh
How enable zram module on kernel (debian lik distro)?
View zram.sh
#!/bin/bash
### BEGIN INIT INFO
# Provides: zram
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Increased Performance In Linux With zRam (Virtual Swap Compressed in RAM)
# Description: Adapted from systemd scripts at https://github.com/mystilleef/FedoraZram
### END INIT INFO
@imZack
imZack / ans.py
Last active Sep 6, 2015
hitcon 2015 nano wargame
View ans.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import serial
import time
port = None
lines = []
You can’t perform that action at this time.