Skip to content

Instantly share code, notes, and snippets.

@tsironis
tsironis / gist:3265894
Created August 5, 2012 16:49 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@tsironis
tsironis / dabblet.html
Created February 27, 2013 15:40 — forked from avgerin0s/dabblet.css
Untitled
<h1>Cake</h1>
<p>
Tart
sweet roll toffee tart powder jelly-o cookie. Cheesecake cookie gummies.
Pudding faworki croissant chocolate cake biscuit pudding dragée biscuit
bear claw. Cotton candy tart wafer cotton candy gingerbread. Soufflé
cheesecake lollipop marzipan gingerbread jujubes cheesecake sugar plum.
Wypas jelly beans sugar plum dessert chocolate cake brownie. Sugar plum
bonbon toffee pudding carrot cake chocolate cake apple pie. Ice cream
pastry chocolate bar carrot cake chocolate bonbon gummi bears. Chocolate
@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;
}
@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();
BugSenseHandler.Instance.AddCrashExtraData("level", "second level");
BugSenseHandler.Instance.AddCrashExtraData("difficulty", "impossibruuu");
@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"
try {
//Some code to execute
}
catch (Exception ex) {
    BugSenseHandler.HandleError(ex);
}
@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);
}
@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"

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