Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View edsnider's full-sized avatar
🎧
building apps

Ed Snider edsnider

🎧
building apps
View GitHub Profile
@alexkaessner
alexkaessner / custom-ios-simulator-statusbar.sh
Last active April 8, 2024 18:36
Customize iOS Simulator Status Bar (Xcode 11+)
$ xcrun simctl status_bar booted override --time "9:41" --batteryState charged --batteryLevel 100 --cellularMode active
@adamjparrott
adamjparrott / ConsoleWork.sh
Created July 31, 2018 19:29
Pulling Sqlite Db from non debuggable Android App
# 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 December 25, 2016 08:01
Provides `IObservable` semantics for `NSNotificationCenter` subscriptions
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 October 1, 2019 12:13
Clear bin/obj folders for Xamarin projects, as well as other temporary Xamarin files. Developer lifesaver
#!/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