Skip to content

Instantly share code, notes, and snippets.

View Hasimir's full-sized avatar

Ben McGinnes Hasimir

View GitHub Profile
@Hasimir
Hasimir / key.md
Last active February 4, 2023 04:19
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@Hasimir
Hasimir / uk-intersex-rights-petition.py
Created October 9, 2019 21:56
Script to check signatures on UK Intersex equal rights petition
#!/usr/bin/env python3
import requests
url = "https://petition.parliament.uk/petitions/276273.json"
sigs = []
r = requests.get(url)
data = r.json()['data']['attributes']['signatures_by_constituency']
@Hasimir
Hasimir / jsondentation.py
Last active April 22, 2018 09:42
Quick and dirty method of making walls of text JSON files indented properly (note, not standards and tab width compliant, just easier to read).
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
# Copyright (C) 2018 Ben McGinnes <[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; either version 2 of the License, or (at your option) any later
@Hasimir
Hasimir / post.el.diff
Created March 11, 2018 03:34
Diff of fixes needed to prevent post.el triggering old style backquotes error
The post-mode for Mutt/Neomutt and Emacs is old and mostly reliable, still available here:
https://sourceforge.net/projects/post-mode/
In January, 2018 a change was made to the master branch of GNU Emacs which detects old style elisp as incorrect and breaks initialisation which contains it. Since post-mode hasn't been modified in nearly a decade, there are some lines using this older style.
The following is the diff necessary to fix the version of post-mode from 24/2/2008 (ver. 1.9 or 1.10):
305c305
< (defmacro string-read (prompt) (` (read-string (, prompt))))
@Hasimir
Hasimir / app.py
Created May 22, 2016 19:12 — forked from maccman/app.py
Stripe Flask Example
import os
from flask import Flask, render_template, request
import stripe
stripe_keys = {
'secret_key': os.environ['SECRET_KEY'],
'publishable_key': os.environ['PUBLISHABLE_KEY']
}
stripe.api_key = stripe_keys['secret_key']
@Hasimir
Hasimir / keybase.md
Last active December 5, 2017 21:14
keybase.io proof

Keybase proof

I hereby claim:

  • I am Hasimir on github.
  • I am adversary (https://keybase.io/adversary) on keybase.
  • I have a public key whose fingerprint is DB47 24E6 FA42 86C9 2B4E 55C4 321E 4E23 7359 0E5D

To claim this, I am signing this object:

@Hasimir
Hasimir / dot-emacs-utf8
Created January 8, 2015 15:21
My UTF-8 settings in .emacs
;; UTF-8 settings
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
;; This was added by Custom at some point too:
'(current-language-environment "UTF-8")
;; Plus I have F7 bound to insert-char to enter the hex for a glyph:
(global-set-key [f7] 'insert-char)

A pseudonymous trust system for a decentralized anonymous marketplace

Dionysis Zindros, National Technical University of Athens [email protected]

Keywords

pseudonymous anonymous web-of-trust identity trust bitcoin namecoin proof-of-burn timelock decentralized anonymous marketplace openbazaar

Abstract

@Hasimir
Hasimir / ello.md
Last active August 29, 2015 14:07 — forked from conatus/ello.md

Ello API

This is a basic exploration of the Ello API. Completely unofficial, your mileage my vary, don't smash their servers as they are likely very busy.

Methods return HTML for their representation where appropriate which is a nice little pattern. Everything returns application/json.

Like this:

{
 "id": ,
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
.ruleview {
color: black;
}