This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# /etc/pacman.conf | |
# | |
# See the pacman.conf(5) manpage for option and repository directives | |
# | |
# GENERAL OPTIONS | |
# | |
[options] | |
# The following paths are commented out with their default values listed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# | |
# MORESPACE - init script to use an ext4-formatted sdcard for both app installations and user data | |
# Revision: 3 | |
# Author: github.com/elieux | |
# Device: Huawei Ascend G300 [U8815] with CM11 | |
# | |
# Warning: The script does not reformat your sdcard. That needs to be done manually before installing the script. | |
# Warning: The script is not designed for multiple-partition sdcards (sd-ext). | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: main.exe | |
foo.o: foo.c | |
gcc -c foo.c -o foo.o | |
libfoo.a: foo.o | |
ar sr libfoo.a foo.o | |
bar.o: bar.c | |
gcc -c bar.c -o bar.o | |
libbar.dll: bar.o libfoo.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set MSYSTEM=MINGW32 | |
"%~dp0msys2.cmd" %* | |
set MSYSTEM= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef int(*fn)(); | |
int main() { | |
return ((fn)0)(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/sh | |
#http://www.drdobbs.com/tools/debugging-makefiles/197003338 | |
make --eval='print-%: ; @echo $* is $($*)' --eval='OLD_SHELL := $(SHELL)' --eval='SHELL = $(warning [$@ ($^) ($?)])$(OLD_SHELL) -x' | |
make V=1 VERBOSE=1 | |
make --dry-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
ROOT="$(pwd)" | |
dl() { | |
local cookie="/tmp/pacman-mirror-cookie.txt" | |
touch "${cookie}" | |
local file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
scrape_db() { | |
local var=$1 | |
local file=$2 | |
local url=$3 | |
[ "$DB_UPDATE" != 'no' ] && wget -nv -O /tmp/$file $url >&2 | |
while read pkg ver; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Custom PHP unserializer with better error reporting | |
* | |
* Does not support objects. | |
*/ | |
class Unserializer { | |
private $serialized; | |
private $len; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MSYS here] | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MINGW64 here] | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MINGW32 here] |
OlderNewer