Skip to content

Instantly share code, notes, and snippets.

View aubm's full-sized avatar

Aurélien Baumann aubm

View GitHub Profile
@aubm
aubm / main.py
Created November 27, 2023 04:25
Sample Python/tkinter app with navigation
import tkinter as tk
class SampleApp:
def __init__(self, root):
self.root = root
self.root.title("Tkinter Navigation Example")
# Set the initial size of the window
self.root.geometry("400x300")
mutation MyMutation($meetingId: ID!, $part1: ID!, $part2: ID!) {
__typename
updateMeeting(input: {meetingId: $meetingId, participants: [{personId: $part1, status: CONFIRMED}, {personId: $part2, status: CONFIRMED}]}) {
errors {
message
}
meeting {
id
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aubm
aubm / main.go
Created March 8, 2019 14:55
Ugly code
package main
import (
"encoding/xml"
"flag"
"fmt"
"net/http"
"os"
@aubm
aubm / theme.json
Created October 15, 2016 15:41
iTerm dark theme
{
"Working Directory" : "\/Users\/aurelienbaumann",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 0.7847255,
"Red Component" : 1,
"Blue Component" : 0.5426263
},
"Rows" : 40,
"Ansi 11 Color" : {
@aubm
aubm / ul-br to bbox
Last active May 17, 2016 09:44
Web cartography helpers
javascript:(function () {
var ul, br, validCoords = /^[+-]?\d+(\.\d+)?,[+-]?\d+(\.\d+)?$/;
do {
if (!(ul = window.prompt('Type in the value for UL (upper left) as lng, lat. Example: 58, 58'))) {
return;
}
if (!ul.replace(/ /g, '').match(validCoords)) {
console.log('Invalid format for UL, please type again');
ul = undefined;
# Remove all stopped containers
docker rm $(docker ps -a -q)
# Remove all untagged images (<none>)
docker rmi $(docker images -f="dangling=true" -q)
@aubm
aubm / php.ini
Created November 21, 2015 12:59
Debug remote autostart configuration
[XDebug]
zend_extension = "/path/to/xdebug.dll"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_autostart=on
@aubm
aubm / end of supervisord.conf
Last active August 5, 2021 11:19
Sentry configuration files example
[program:sentry-web]
directory=/www/sentry/
command=/www/sentry/bin/sentry --config=/etc/sentry.conf.py start http
autostart=true
autorestart=true
redirect_stderr=true
[program:sentry-worker]
directory=/www/sentry/
command=/www/sentry/bin/sentry --config=/etc/sentry.conf.py celery worker -B