Skip to content

Instantly share code, notes, and snippets.

public App()
{
BugSenseHandler.Instance.Init(this, "Your_API_Key");
// Your app's code
}
@Override
public void lastBreath(Exception ex) {
//do or save stuff here
}

Build your own private, encrypted, open-source Dropbox-esque sync folder

Prerequisites:

  • One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
  • A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.

Software components used:

  • Unison for file synchronization
  • EncFS for folder encryption
@tsironis
tsironis / gist:5797819
Last active December 18, 2015 14:29 — forked from PanosJee/gist:3551914
ICollection<CrashExtraMap> map = new Collection<CrashExtraMap>();
map.Add(new CrashExtraData
{
Key = "level",
Value = "second level"
});
map.Add(new CrashExtraData
{
Key = "difficulty",
Value = "impossibruuu"
@tsironis
tsironis / gist:5797758
Last active December 18, 2015 14:29 — forked from PanosJee/gist:3551885
try{
String a = null;
a.toString();
}catch(Exception ex) {
BugSenseHandler.Instance.SendException(ex);
}
try {
//Some code to execute
}
catch (Exception ex) {
    BugSenseHandler.HandleError(ex);
}
@tsironis
tsironis / gist:5797466
Last active December 18, 2015 14:28 — forked from PanosJee/gist:3551833
ICollection<CrashExtraMap> extras = new Collection<CrashExtraMap>();
extras.Add(new CrashExtraData
{
Key = "level",
Value = "second level"
});
extras.Add(new CrashExtraData
{
Key = "difficulty",
Value = "impossibruuu"
BugSenseHandler.Instance.AddCrashExtraData("level", "second level");
BugSenseHandler.Instance.AddCrashExtraData("difficulty", "impossibruuu");
@tsironis
tsironis / App.xaml.cs
Last active December 18, 2015 14:19 — forked from PanosJee/App.xaml.cs
public App()
{
// Standard XAML initialization
InitializeComponent();
// Phone-specific initialization
InitializePhoneApplication();
// Language display initialization
InitializeLanguage();
@tsironis
tsironis / dabblet.css
Created February 27, 2013 17:53 — forked from avgerin0s/dabblet.css
Untitled
input, select, textarea {
display: block;
margin: 10px;
}
textarea {
resize: none;
}