Skip to content

Instantly share code, notes, and snippets.

View hfiguiere's full-sized avatar

Hubert Figuière hfiguiere

View GitHub Profile
@benstiglitz
benstiglitz / gist:1211929
Created September 12, 2011 17:58
Pulling one repository into a subtree of another and pushing to SVN.
git remote add -f tp file:///Volumes/Sources/tp.git/
INITIAL_COMMIT=`git rev-list tp/master --reverse | head -n1`
git checkout -b nb-merge
for MCH in `git rev-list --reverse $INITIAL_COMMIT..tp/master`
do
git merge --squash -s subtree --no-commit $MCH && git commit -C $MCH
done
git filter-branch --msg-filter "sed 's/^/[new-branch] /'" master..HEAD
git svn branch new-branch -m "[new-branch] Creating branch."
git rebase refs/remotes/new-branch
@grugq
grugq / gist:03167bed45e774551155
Last active April 6, 2024 10:12
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

@bnagy
bnagy / gpgmutt.md
Last active July 7, 2024 08:18
Mutt, Gmail and GPG

GPG / Mutt / Gmail

About

This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.

Here is an incomplete list of things that are different from other approaches:

  • I don't use keyservers. Ever.
  • Yes, I use Gmail instead of some bespoke hipster freedom service
@pganti
pganti / gist:b47da2fa9ab2b105c3365242aeed6c81
Created January 18, 2017 02:37
sourcepoint js detection
! function(e) {
function t(r) {
if (n[r]) return n[r].exports;
var o = n[r] = {
exports: {},
id: r,
loaded: !1
};
return e[r].call(o.exports, o, o.exports, t), o.loaded = !0, o.exports
}
@wolfiestyle
wolfiestyle / gtk_frp.rs
Created January 17, 2019 00:20
FRP in Gtk proof of concept
use fragile::Fragile;
use frappe::{Signal, Sink, Stream};
use glib;
use gtk;
use gtk::prelude::*;
use std::thread;
use std::time::Duration;
fn main() {
gtk::init().unwrap();