Skip to content

Instantly share code, notes, and snippets.

[tool.poetry]
name = "platras"
version = "0.1.0"
description = ""
authors = ["anaoum"]
packages = [{include = "platras"}]
[tool.poetry.dependencies]
python = ">=3.8,<3.9"
loguru = "^0.6.0"
@anaoum
anaoum / ls-colors-test.sh
Created February 29, 2020 22:29
script to test ls colors
#!/bin/sh
mkdir ls-colors-test
cd ls-colors-test
touch 0-file
mkdir 1-dir
ln -s /dev/null 2-symlink
python -c 'import socket; s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM); s.bind("3-socket")' &
mkfifo 4-pipe
@anaoum
anaoum / add_glyph.py
Created September 25, 2018 07:09
Adds missing glyphs from one font to another. Requires fonttools.
#!/usr/bin/env python3
import io
import re
import sys
import xml.etree.ElementTree as ET
from fontTools.ttLib import TTFont
from fontTools.misc import psCharStrings
@anaoum
anaoum / lnd.log
Created December 9, 2017 21:41
LND Crash Trace Logs
2017-12-10 08:32:19.284 [INF] LTND: Version 0.3.0-alpha
2017-12-10 08:32:19.284 [INF] CHDB: Checking for schema update: latest_version=0, db_version=0
2017-12-10 08:32:19.289 [INF] RPCS: password RPC server listening on 127.0.0.1:10009
2017-12-10 08:32:19.289 [INF] RPCS: password gRPC proxy started at localhost:8080
2017-12-10 08:32:19.289 [INF] LTND: Waiting for wallet encryption password. Use `lncli create` to create wallet, or `lncli unlock` to unlock already created wallet.
2017-12-10 08:32:30.657 [INF] LNWL: Opened wallet
2017-12-10 08:32:30.657 [INF] LTND: Primary chain is set to: bitcoin
2017-12-10 08:32:30.658 [INF] LTND: Initializing btcd backed fee estimator
2017-12-10 08:32:31.992 [INF] LNWL: Opened wallet
2017-12-10 08:32:33.233 [INF] LNWL: The wallet has been unlocked without a time limit
@anaoum
anaoum / keybase.md
Created August 31, 2016 06:33
keybase.md

Keybase proof

I hereby claim:

  • I am anaoum on github.
  • I am anaoum (https://keybase.io/anaoum) on keybase.
  • I have a public key whose fingerprint is 9880 48D3 0F26 5523 8383 2DE9 D8D2 2A05 8602 C566

To claim this, I am signing this object:

@anaoum
anaoum / Code.gs
Created December 1, 2015 22:33
Google App Script to Find The Number of Emails Received From Each Unique Sender
INCREMENT = 500;
function _populateSheet(name, counts) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sh = ss.getSheetByName(name) || ss.insertSheet(name, ss.getSheets().length);
var range = sh.getDataRange();
var values = range.getValues();
var rows_to_add = [];