Skip to content

Instantly share code, notes, and snippets.

@fcicq
fcicq / luci-disable-i18n.patch
Created August 15, 2014 03:15
remove all /usr/lib/lua/luci/i18n file for openwrt luci, apply under feeds/luci
diff --git a/build/module.mk b/build/module.mk
index b69019c..4ed8e3e 100644
--- a/build/module.mk
+++ b/build/module.mk
@@ -25,10 +25,10 @@ luasource:
cp -pR htdocs/* dist$(HTDOCS) 2>/dev/null || true
for i in $$(find dist -name .svn -o -name .gitignore); do rm -rf $$i || true; done
ifneq ($(PO),)
- mkdir -p dist$(LUCI_I18NDIR)
- for file in $(PO); do \
@fcicq
fcicq / openwrt-batch-tplink.patch
Created July 24, 2014 12:10
batch build openwrt firmware. use with https://gist.github.com/fcicq/9987252, may need to rm tmp/info/.targetinfo-*
@fcicq
fcicq / flash.sh
Last active September 20, 2015 08:09
u-boot flash for 128k uboot with MAC/WPS info in 0x1fc00/0x1fe00
#!/bin/sh
#high chance need have a change ...
if [ ! $# -eq 2 ]; then
echo "usage: $0 UBOOTFILE MD5"
exit
fi
UBOOT_NAME=$1
MD5SUM_SHOULD_BE=$2
@rxin
rxin / ramdisk.sh
Last active December 13, 2023 02:40
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then
@return1
return1 / trim_enabler.txt
Last active May 26, 2024 11:01
TRIM Enabler for OS X Yosemite 10.10.3
#
# UPDATE for 10.10.4+: please consider this patch obsolete, as apple provides a tool called "trimforce" to enable trim support for 3rd party SSDs
# just run "sudo trimforce enable" to activate the trim support from now on!
#
# Original version by Grant Parnell is offline (http://digitaldj.net/2011/07/21/trim-enabler-for-lion/)
# Update July 2014: no longer offline, see https://digitaldj.net/blog/2011/11/17/trim-enabler-for-os-x-lion-mountain-lion-mavericks/
#
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything
#
# Alternative to http://www.groths.org/trim-enabler-3-0-released/