Skip to content

Instantly share code, notes, and snippets.

View Explorer09's full-sized avatar

Kang-Che Sung (宋岡哲) Explorer09

View GitHub Profile
#!/bin/sh -e
#git-cache-meta -- simple file meta data caching and applying.
#Simpler than etckeeper, metastore, setgitperms, etc.
#from http://www.kerneltrap.org/mailarchive/git/2009/1/9/4654694
#modified by n1k
# - save all files metadata not only from other users
# - save numeric uid and gid
# 2012-03-05 - added filetime, andris9
@Explorer09
Explorer09 / tapcpr-petition-counter.sh
Last active December 29, 2015 14:59
簡單抓取伴侶盟與護家盟的連署人數的shell script
#!/bin/bash
# watch -n 600 "( ./tapcpr-petition-counter.sh | tee -a log.txt )"
# $1 Destination file name
# $2 URL
download_file () {
if wget -q -O ${1} ${2}; then
echo "${1} downloaded." >&2
else
@Explorer09
Explorer09 / usb_vaccine.txt
Last active January 3, 2016 05:29
USB 病毒免疫暨隱藏檔現形程式**注意:不會真正移除病毒,請搭配防毒軟體一起使用**USB virus immunity script and hidden files revealer.DOES NOT REMOVE VIRUSES. MUST BE USED IN CONJUNCTION WITH AN ANTIVIRUS PROGRAM.
USB virus immunity script and hidden files revealer.
This repository has been moved.
Please see https://github.com/Explorer09/usb_vaccine
-------------------------------------------------------------------------------
zh-tw
USB 病毒免疫暨隱藏檔現形程式
@Explorer09
Explorer09 / Makefile
Last active March 19, 2016 14:06
Test data and code for htop bar meter algorithms.
CC = gcc -std=gnu99
LIBS = -lm
.PHONY: all check clean
all: htop-bar1 htop-bar2 htop-bar3 htop-bar4
htop-bar1: htop-bar1.c
htop-bar2: htop-bar2.c
@Explorer09
Explorer09 / KB4012598-direct-links.txt
Last active May 13, 2017 16:42
KB4012598 Security Update direct download links (No need to browse Microsoft Update Catalog)
@Explorer09
Explorer09 / ntfs_attr.sh
Last active January 4, 2024 05:24
Display or change attributes on an NTFS filesystem
#!/bin/sh
# ntfs_attr.sh - Display or change attributes on an NTFS filesystem
# Tools required:
# getfattr(1) and setfattr(1)
# http://savannah.nongnu.org/projects/attr/
# (In Debian/Ubuntu: sudo apt-get install attr)
# ntfs-3g (pre-installed in most Linux distros)
# http://www.tuxera.com/community/ntfs-3g-download/