Skip to content

Instantly share code, notes, and snippets.

View ptisserand's full-sized avatar
💭
Learning Rust

ptisserand

💭
Learning Rust
View GitHub Profile
@ptisserand
ptisserand / docker-compose.yml
Created February 14, 2020 18:17
docker-compose to run mitmproxy with web interface using docker volume
version: '3.4'
services:
app:
image: mitmproxy/mitmproxy
ports:
- 8080:8080
- 8081:8081
volumes:
- mitmproxy:/home/mitmproxy/.mitmproxy
@ptisserand
ptisserand / gist:29dd8d4643c67fad47599d77a1198b25
Created July 18, 2019 09:39
Q&D workaround patch for cordova-plugin-background-geolocation ITMS-90338
diff --git a/ios/CDVBackgroundGeolocation/CocoaLumberjack.h b/ios/CDVBackgroundGeolocation/CocoaLumberjack.h
index 32a4deb..c384e25 100644
--- a/ios/CDVBackgroundGeolocation/CocoaLumberjack.h
+++ b/ios/CDVBackgroundGeolocation/CocoaLumberjack.h
@@ -739,7 +739,6 @@ NSString * DDExtractFileNameWithoutExtension(const char *filePath, BOOL copy);
* This protocol describes a dynamic logging component
*/
@protocol DDRegisteredDynamicLogging
-
/**
@ptisserand
ptisserand / gist:25cd1153715e8731a23c95d548748215
Created October 2, 2017 10:47
shell script to use wakeonlan image docker
#!/bin/bash -e
NAS_MAC="00-11-32-44-A5-AF"
WAKE_IMG="ptisserand/wakeonlan"
docker run --rm --net=host -t ${WAKE_IMG} ${NAS_MAC}