Skip to content

Instantly share code, notes, and snippets.

Avatar
🎧
building apps

Ed Snider edsnider

🎧
building apps
View GitHub Profile
@alexkaessner
alexkaessner / custom-ios-simulator-statusbar.sh
Last active Oct 2, 2019
customize iOS Simulator status bar (Xcode 11+)
View custom-ios-simulator-statusbar.sh
$ xcrun simctl status_bar booted override --time "9:41" --batteryState charged --batteryLevel 100 --cellularMode active
@pinguskahn
pinguskahn / ConsoleWork.sh
Created Jul 31, 2018
Pulling Sqlite Db from non debuggable Android App
View ConsoleWork.sh
# make a backup
adb backup -noapk com.package.name -f backup.ab
# strip out the bits
dd if=backup.ab bs=1 skip=24 of=backup.bak
# use convertToTar.py (see other file in gist)
python convertToTar.py
# untar
@rdavisau
rdavisau / NSNotificationCenterExtensions.cs
Created Dec 25, 2016
Provides `IObservable` semantics for `NSNotificationCenter` subscriptions
View NSNotificationCenterExtensions.cs
public static class NSNotificationCenterExtensions
{
public static IObservable<NSNotification> ObserveNotification(this NSNotificationCenter notificationCenter, NSString notificationKey) =>
Observable.Create<NSNotification>(obs =>
{
var nsObserver = notificationCenter.AddObserver(notificationKey, obs.OnNext);
return Disposable.Create(() => notificationCenter.RemoveObserver(nsObserver));
});
}
@alexsorokoletov
alexsorokoletov / remove-bin-obj.sh
Last active Oct 1, 2019
Clear bin/obj folders for Xamarin projects, as well as other temporary Xamarin files. Developer lifesaver
View remove-bin-obj.sh
#!/bin/bash
# based on http://stackoverflow.com/questions/755382/i-want-to-delete-all-bin-and-obj-folders-to-force-all-projects-to-rebuild-everyt
find . -iname "bin" -type d | xargs rm -rf
find . -iname "obj" -type d | xargs rm -rf
# clear VS4Mac temporary downloads
echo ~/Library/Caches/VisualStudio/7.0/TempDownload/
for f in ~/Library/Caches/VisualStudio/7.0/TempDownload/* ; do
sudo rm -rf $f
done
You can’t perform that action at this time.