Skip to content

Instantly share code, notes, and snippets.


azzamsa azzamsa

View GitHub Profile
ultrabug / py3status.conf
Created Jul 13, 2019
My py3status config
View py3status.conf
# py3status
general {
color_bad = "#dc322f"
color_degraded = "#cb4b16"
color_good = "#859900"
color_separator = "#586e75"
colors = true
interval = 60
markup = "pango"
dominictarr /
Created Nov 26, 2018
statement on event-stream compromise

Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.


otherwise why would he hand over a popular package to a stranger?

If it's not fun anymore, you get literally nothing from maintaining a popular package.

One time, I was working as a dishwasher in a restu

pvik /
Last active Aug 10, 2020
A Cheatsheet for Emacs Smarparens example configuration

An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.


C-M-f sp-forward-sexp
C-M-b sp-backward-sexp
MauricioMoraes /
Last active Oct 17, 2020
Allow Docker Container Access to Host's Postgres Database on linux (ubuntu)

You have to do 2 things in order to allow your container to access your host's postgresql database

  1. Make your postgresql listen to an external ip address
  2. Let this client ip (your docker container) access your postgresql database with a given user

Obs: By "Host" here I mean "the server where docker is running on".

Make your postgresql listen to an external ip address

Find your postgresql.conf (in case you don't know where it is)

$ sudo find / -type f -name postgresql.conf

upbeta01 /
Created Feb 5, 2018
Install Docker In Debian 9 (Stretch)
# -----------------------
# This is a script that installs docker-ce (Docker Community Edition) on Debian 9
# Inspired by
# -----------------------
# Pre-requesite
ujjwal96 / Install PyQt5 on Ubuntu with python3 .md
Last active Oct 19, 2020
Install PyQt5 on Ubuntu with python3. Steps to set up PyQt5 (ubuntu). With python code generation
View Install PyQt5 on Ubuntu with python3 .md


pip3 install --user pyqt5  
sudo apt-get install python3-pyqt5  
sudo apt-get install pyqt5-dev-tools
sudo apt-get install qttools5-dev-tools

Configuring to run from terminal

lazywithclass /
Last active Aug 13, 2020
Looking at the most beautiful program ever written - part 1

Looking at the most beautiful program ever written - part 1

I am going to have a look at what William Byrd presented as The most beautiful program ever written.

Beauty here refers to computer programs, specifically about Lisp. There might be errors as this is something I wrote to make sense of that interpreter, proceed at your own risk.

Thanks a lot to Carl J. Factora for the help.

The program

siswadi / Waktu Sholat Arah
Last active Oct 18, 2020
Waktu Sholat & Arah Kiblat w/ HTTP/JSON API
View Waktu Sholat Arah

Waktu Sholat & Arah Kiblat

Informasi Waktu
View docker-compose.yml
version: '2'
image: cockroachdb/cockroach:beta-20161215
command: start --insecure
- 8080:8080
- roachnet
dsernst / Secure Internet
Last active Oct 11, 2018
Secure internet voting
View Secure Internet

Proof-of-Vote: A Simple Cryptosystem for Secure Internet Voting

by David Ernst,

A method to democratically vote online, that provably ensures to the individual voter that their vote was cast and counted correctly, without tampering, while still protecting their vote privacy.

Note: This is designed for our issue-based liquid democracy platform, not traditional elections.


You can’t perform that action at this time.