Skip to content

Instantly share code, notes, and snippets.

Avatar

azzamsa azzamsa

View GitHub Profile
@ultrabug
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
dominictarr / readme.md
Created Nov 26, 2018
statement on event-stream compromise
View readme.md

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.

@broros

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
pvik / smartparens-cheatsheet.md
Last active Aug 10, 2020
A Cheatsheet for Emacs Smarparens example configuration
View smartparens-cheatsheet.md

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

Traversal

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

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
upbeta01 / install-docker-deb9.sh
Created Feb 5, 2018
Install Docker In Debian 9 (Stretch)
View install-docker-deb9.sh
#!/bin/bash
#
# -----------------------
#
# This is a script that installs docker-ce (Docker Community Edition) on Debian 9
# Inspired by https://gist.github.com/frgomes/a6f889583860f5b330c06c8b46fa0f42
#
# -----------------------
# Pre-requesite
@ujjwal96
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

Installation

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
lazywithclass / blog-post.md
Last active Aug 13, 2020
Looking at the most beautiful program ever written - part 1
View blog-post.md

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
siswadi / Waktu Sholat Arah Kiblat.md
Last active Oct 18, 2020
Waktu Sholat & Arah Kiblat w/ HTTP/JSON API
View Waktu Sholat Arah Kiblat.md

Waktu Sholat & Arah Kiblat

Informasi Waktu

https://time.siswadi.com/
https://time.siswadi.com/Asia/Jakarta
https://time.siswadi.com/help
https://time.siswadi.com/?help
https://time.siswadi.com/?timezone=Asia/Jakarta
View docker-compose.yml
version: '2'
services:
roach-ui:
image: cockroachdb/cockroach:beta-20161215
command: start --insecure
ports:
- 8080:8080
networks:
- roachnet
@dsernst
dsernst / Secure Internet Voting.md
Last active Oct 11, 2018
Secure internet voting
View Secure Internet Voting.md

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

by David Ernst, www.liquid.us

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.

Goals:

You can’t perform that action at this time.