Skip to content

Instantly share code, notes, and snippets.

View agateau-g's full-sized avatar

Aurélien Gâteau agateau-g

View GitHub Profile
@agateau-g
agateau-g / exec.cpp
Created January 27, 2020 15:40
C++ friendly execvp() wrapper
#include <algorithm>
#include <string>
#include <vector>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
using namespace std;
@agateau-g
agateau-g / sendsms.py
Created July 18, 2018 12:47
Send an SMS via Genyshell, using Python
#!/usr/bin/env python3
import subprocess
import sys
GENYSHELL_PATH = "/Applications/Genymotion Shell.app/Contents/MacOS/genyshell"
def main():
phone_number = sys.argv[1]
message = sys.argv[2]
@agateau-g
agateau-g / main.cpp
Created June 15, 2018 11:20
qmlflags
#include <QDebug>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
class Foo : public QObject {
Q_OBJECT
public:
enum Ability {
NONE = 0,