Skip to content

Instantly share code, notes, and snippets.

Avatar

Kang-Che Sung (宋岡哲) Explorer09

View GitHub Profile
@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)
View KB4012598-direct-links.txt
@Explorer09
Explorer09 / Makefile
Last active March 19, 2016 14:06
Test data and code for htop bar meter algorithms.
View Makefile
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 / ntfs_attr.sh
Last active October 4, 2022 16:06
Display or change attributes on an NTFS filesystem
View ntfs_attr.sh
#!/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/
@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.
View usb_vaccine.txt
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 / tapcpr-petition-counter.sh
Last active December 29, 2015 14:59
簡單抓取伴侶盟與護家盟的連署人數的shell script
View tapcpr-petition-counter.sh
#!/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
View git-cache-meta.sh
#!/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