Skip to content

Instantly share code, notes, and snippets.

View bonnebulle's full-sized avatar
🎯
Focusing

vincent_b bonnebulle

🎯
Focusing
View GitHub Profile
@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active November 18, 2025 13:31 — forked from developius/README.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "[email protected]"
@pythoninthegrass
pythoninthegrass / uninstall_mso.sh
Last active April 22, 2025 14:38 — forked from pirafrank/uninstall_office_2016.sh
Uninstall Microsoft Office from macOS completely
#!/usr/bin/env bash
# SOURCES:
# https://gist.github.com/pirafrank/18d62c062e2806c1d183
# SEE THIS EXCELLENT SITE IF GIST FAILS:
# https://office-reset.com
# activate verbose standard output (stdout)
set -v
@ORESoftware
ORESoftware / resize-base64.js
Last active October 13, 2024 17:55
resizing an image on the front-end before sending to a server
// Using this code, we can retrieve an image from a user's filesystem, resize the image, and then upload the image
// to a server using AJAX. Because we use base64 encoding, we can just include the image data as just another string value
// in a JSON payload.
// So we can use AJAX to send the file to a server, which is convenient.
// We have one line of relevant html
// get file in the first place => <input type="file" custom-on-change="onAcqImageFileChange" class="form-control">
@attacus
attacus / riot-matrix-workshop.md
Last active April 8, 2025 08:18
Create your own encrypted chat server with Riot and Matrix

This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.

Running your own encrypted chat service with Matrix and Riot

Workshop Instructor:

This workshop is distributed under a CC BY-SA 4.0 license.

What are we doing here?

@kasparsd
kasparsd / nginx.conf
Created February 21, 2017 13:40
Nginx HTTP basic auth with cookie pass
map $cookie_skip_http_auth $auth_type {
default "Restricted Area";
"123" "off";
}
server {
location /setauthcookie {
add_header Set-Cookie "skip_http_auth=123";
return 301 http://example.com;
}
@tzmartin
tzmartin / m3u8-to-mp4.md
Last active November 22, 2025 20:15
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@tboulogne
tboulogne / taxonomy.html.twig
Last active March 22, 2024 23:26
Grav template for automagic list of taxonomies
{% embed 'partials/base.html.twig' %}
{% block content %}
{% set taxname = uri.query|split('=')[0] %}
{% set taxval = uri.query|split('=')[1]|replace({'+':" "}) %}
{% if taxname %}
{% set c = breadcrumbs.get() %}
@smoll
smoll / USING-DIFFMERGE.md
Last active October 15, 2025 07:54
Using DiffMerge as your git mergetool (for Mac OS X / macOS)
HandBrakeCLI -i file.mp4 -o file.output.mp4 --preset="Normal Profile" --srt-file file.srt --srt-codeset UTF-8 --srt-burn
@ericek111
ericek111 / xoverlay.cpp
Last active September 6, 2025 16:04
X11 overlay
/*
* Copyright (c) 2020 ericek111 <[email protected]>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU