Skip to content

Instantly share code, notes, and snippets.

View vladskiy's full-sized avatar

Vladislav Lipskiy vladskiy

  • Lebara Ltd
  • London, UK
View GitHub Profile
@vladskiy
vladskiy / gist:7f0d8a78acb09f304830aa52aeb2c41e
Created January 18, 2018 11:53
Mail attachment inline enable/disable
defaults write com.apple.mail DisableInlineAttachmentViewing [0/1]
@vladskiy
vladskiy / gist:6196dcff215d5aa132cb1edfd8340c54
Last active October 4, 2016 15:19
Remove git submodule
1. Delete the relevant section from the .gitmodules file. The section would look similar to:
[submodule "vendor"]
path = vendor
url = git://github.com/some-user/some-repo.git
2. Stage the .gitmodules changes via command line using:git add .gitmodules
3. Delete the relevant section from .git/config, which will look like:
[submodule "vendor"]
url = git://github.com/some-user/some-repo.git
4. Run git rm --cached path/to/submodule . Don't include a trailing slash -- that will lead to an error.
5. Run rm -rf .git/modules/submodule_name

Keybase proof

I hereby claim:

  • I am vladskiy on github.
  • I am gades (https://keybase.io/gades) on keybase.
  • I have a public key whose fingerprint is 8B52 C388 D740 794C D06F 7055 39EA 2B50 EF95 D85C

To claim this, I am signing this object:

diff --git a/coffeecatch.c b/coffeecatch.c
index 448fe0f..f39fcdb 100644
--- a/coffeecatch.c
+++ b/coffeecatch.c
@@ -43,10 +43,7 @@
#include <assert.h>
#include <signal.h>
#include <setjmp.h>
-#if defined(__ANDROID__) && !defined(__BIONIC_HAVE_UCONTEXT_T) && \
- defined(__arm__) && !defined(__BIONIC_HAVE_STRUCT_SIGCONTEXT)