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
while : | |
do | |
SOURCE=`SwitchAudioSource -t input -c` | |
if [ "$SOURCE" = 'mbose' ] | |
then | |
echo "mbose is on, disabling it" | |
SwitchAudioSource -t input -s "Built-in Microphone" | |
fi | |
sleep 1 | |
done |
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
[alias] | |
co = checkout | |
ec = config --global -e | |
up = !git pull --rebase --prune $@ && git submodule update --init --recursive | |
cob = checkout -b | |
cm = !git add -A && git commit -m | |
save = !git add -A && git commit -m 'fixup! SAVEPOINT' | |
wip = !git add -u && git commit -m "WIP" | |
undo = reset HEAD~1 --mixed | |
amend = commit -a --amend |
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
#!/bin/sh | |
# based on https://stackoverflow.com/a/24018435/59666 | |
#base commit of the squash-"rebase | |
baseCommit=$1 | |
#get the commit message | |
shift | |
commitMsg=$@ |
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
filewatcher '**/*.swift' '/Applications/Injection.app/Contents/Resources/injectSource `pwd`/$FILENAME' |
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
#!/bin/sh | |
#adapted from https://gist.github.com/mgamer/132534fe1155fb40adc5adfc58790373 | |
DESCRIBEFILES=$(git diff --staged -G"^\s*fdescribe\(" --name-only | wc -l) | |
if [ $DESCRIBEFILES -gt 0 ] | |
then | |
echo "You forgot to remove a fdescribe in the following files:" | |
git --no-pager diff --staged --name-only -G"^\s*fdescribe\(" | xargs -L1 -I {} sh -c 'sed -i "" "s/\s*fdescribe(/describe(/g" {}; git add "{}"' | |
echo "This is fixed automatically now" |
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
-Xss2m | |
-Xms512m | |
-Xmx4096m | |
-XX:NewSize=128m | |
-XX:MaxNewSize=128m | |
-XX:MaxPermSize=350m | |
-XX:ReservedCodeCacheSize=96m | |
-XX:+UseCompressedOops |
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
#if TARGET_OS_SIMULATOR | |
NSString* homeDirectory = [[NSProcessInfo processInfo] environment][@"SIMULATOR_HOST_HOME"]; | |
NSURL *documentsDirectory = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]; | |
NSString *documentsDirectoryPath = documentsDirectory.path; | |
NSString *simlinkPath = [homeDirectory stringByAppendingFormat:@"/Desktop/SimulatorDocuments"]; | |
unlink(simlinkPath.UTF8String); | |
symlink(documentsDirectoryPath.UTF8String, simlinkPath.UTF8String); | |
#endif |
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
(function() { | |
var clickExpand = function() { | |
var btns = document.querySelectorAll(".ajR[aria-label='Show trimmed content']"); | |
if (btns.length > 0) { | |
var btn = btns[btns.length - 1]; | |
btn.click(); | |
} | |
}; |
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
Download the following ZIPs: | |
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
Download the correct GApps for your Android version: | |
Google Apps for Android 4.4.2 (https://www.mediafire.com/?qbbt4lhyu9q10ix) | |
Google Apps for Android 4.3 (http://goo.im/gapps/gapps-jb-20130813-signed.zip) | |
Google Apps for Android 4.2 (http://goo.im/gapps/gapps-jb-20130812-signed.zip) | |
Google Apps for Android 4.1 (http://goo.im/gapps/gapps-jb-20121011-signed.zip) | |
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
[ | |
{ | |
"guid": "0018e596284a49eaa3bc22c8ed88ac11", | |
"title": "NIUK - Nowy niskoprofilowy cooler Akasa Nero LX", | |
"description": "Akasa poszerza swoją ofertę systemów chłodzenia procesorów o nowy model o nazwie Nero LX. Cooler ma niskoprofilową budowę i tylko 59 milimetrów wysokości, dzięki czemu może być stosowany w zyskujących coraz większą popularność niewielkich komputerach stacjonarnych i HTPC. Producent wyposażył go w cztery miedziane ciepłowody połączone z radiatorem złożonym z gęsto ułożonych cienkich finów, których krawędzie zostały dodatkowo pofalowane w celu poprawy rozpraszania ciepła. Radiator owiewany jest przez wentylator o średnicy 120mm i wysokości 15mm, mogący obracać się z prędkością od 600 do 1900 RPM, emitując przy tym szum o natężeniu od 11,5 do 31,5 dBA.\r\n ", | |
"small_image": "http://pursuitist.com/wp-content/uploads/2011/07/New-BMW-1-Series.png", | |
"date": "2012-12-04T19:33:00Z", | |
"category": "world news |
NewerOlder