Skip to content

Instantly share code, notes, and snippets.

View israelfaria's full-sized avatar
🏠
Working from home

Israel Rodrigo Faria israelfaria

🏠
Working from home
View GitHub Profile
@israelfaria
israelfaria / cloudsqlproxy.service
Created March 29, 2016 17:23
How to use GCE SQL Proxy as service in Ubuntu 15.10 images
[Unit]
Description=Google Cloud Compute Engine SQL Proxy
After=cloud-config.target
Wants=cloud-config.target
[Service]
Type=simple
ExecStartPre=/bin/mkdir -p /run/cloudsqlproxy
#Optional steps if you wanna link default mysqld socket to an instance
@israelfaria
israelfaria / Brew stderr
Created March 21, 2012 01:42
Abiword fails to build on Homebrew
ev_CocoaMenu.cpp:124:23: error: static_cast from 'id' to 'XAP_Menu_Id' (aka 'int') is not allowed
XAP_Menu_Id menuid = static_cast<XAP_Menu_Id>([menuItem tag]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[4]: *** [ev_CocoaMenu.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
@israelfaria
israelfaria / patch-wine-continuum
Created February 21, 2012 14:02
Patch wine to work with Subspace Continuum
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index c392d3e..82aab57 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -2770,6 +2770,7 @@ HANDLE WINAPI OpenProcess( DWORD access, BOOL inherit, DWORD id )
OBJECT_ATTRIBUTES attr;
CLIENT_ID cid;
+ if (access & PROCESS_VM_WRITE) return NULL;
cid.UniqueProcess = ULongToHandle(id);