Skip to content

Instantly share code, notes, and snippets.

[tool.poetry]
name = "test-poetry"
version = "0.1.0"
description = ""
authors = ["Bob <bob@example.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
six = "*"
@novas0x2a
novas0x2a / repro-poetry.sh
Created March 7, 2023 20:14
Repro poetry bug
#!/bin/bash
set -xeuo pipefail
TESTDIR=${1:?[$0 <test-dir>]}
POETRY=${2:-1.4.0}
PYTHON=${PYTHON:-python3}
setup_poetry() {
Jun 25 06:26:02 localhost kernel: [UFW BLOCK] IN=eth0 OUT= MAC=f2:3c:91:73:1e:c9:84:78:ac:0d:a6:41:08:00 SRC=202.134.175.206 DST=8.7.6.5 LEN=40 TOS=0x00 PREC=0x00 TTL=51 ID=62309 PROTO=TCP SPT=48123 DPT=2323 WINDOW=23555 RES=0x00 SYN URGP=0
Jun 25 06:27:17 localhost kernel: [UFW BLOCK] IN=eth0 OUT= MAC=f2:3c:91:73:1e:c9:84:78:ac:0d:79:c1:08:00 SRC=185.107.80.9 DST=8.7.6.5 LEN=434 TOS=0x00 PREC=0x00 TTL=55 ID=0 DF PROTO=UDP SPT=5212 DPT=5060 LEN=414
Jun 25 06:30:10 localhost kernel: [UFW BLOCK] IN=eth0 OUT= MAC=f2:3c:91:73:1e:c9:84:78:ac:0d:a6:41:08:00 SRC=188.49.199.3 DST=8.7.6.5 LEN=44 TOS=0x00 PREC=0x00 TTL=244 ID=34394 PROTO=TCP SPT=59426 DPT=1433 WINDOW=1024 RES=0x00 SYN URGP=0
Jun 25 06:32:40 localhost kernel: [UFW BLOCK] IN=eth0 OUT= MAC=f2:3c:91:73:1e:c9:84:78:ac:0d:a6:41:08:00 SRC=119.145.148.158 DST=8.7.6.5 LEN=40 TOS=0x08 PREC=0x20 TTL=106 ID=256 PROTO=TCP SPT=6000 DPT=2222 WINDOW=16384 RES=0x00 SYN URGP=0
Jun 25 06:35:00 localhost kernel: [UFW BLOCK] IN=eth0 OUT= MAC=f2:3c:91:73:1e:c9:84:78:ac:
@novas0x2a
novas0x2a / keybase.md
Created July 14, 2015 05:14
keybase.md

Keybase proof

I hereby claim:

  • I am novas0x2a on github.
  • I am novas0x2a (https://keybase.io/novas0x2a) on keybase.
  • I have a public key whose fingerprint is 6024 6F84 E942 FF1F 199E E480 0B40 134B 0A3E 8BE3

To claim this, I am signing this object:

Python 2.7.9 (default, May 4 2015, 13:10:22)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> from __future__ import print_function
>>> sys.excepthook = lambda ex_cls, *args: print(ex_cls.__name__)
>>> if you're happy and you know it
SyntaxError
>>> if you're happy and you know it
SyntaxError
Human Qinggong Flowing Monk 2
Lawful Neutral
Str 15 Dex 14 Con 12 Wis 14 Int 10 Cha 8
Initiative +4
16hp (1d8+2+6)
Fort +4 Reflex +5 Will +5
AC 18 (15) Flat Footed 16 (13) Touch 17 (15)
BAB +1 CMB +3 (+5 on Trip) CMD 15 (17 vs. Trip)
Flurry: +2/+2 Unarmed Strike 1d6+2 x2
hm. calculating whether a human could jump to escape is KE = PE*m
KE = (momentum^2)/(2*human-mass) = (1/2)mv^2
PE = (G * planet-mass) / distance-from-center
I weigh ~77kg
my jump-height is 50cm
I derive my jump velocity from:
v^2 = 2*g*h
@novas0x2a
novas0x2a / fuck_target_blank.js
Last active December 14, 2015 23:49
Auth Switcher
// ==UserScript==
// @name GMail Auth-Switch In Same Tab
// @namespace http://fluffypenguin.org
// @version 0.1
// @description This makes sure that the gmail auth switcher doesn't open a new tab.
// @match http://mail.google.com/*
// @match https://mail.google.com/*
// @copyright Mike Lundy <userscripts@fluffypenguin.org>
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
@novas0x2a
novas0x2a / gist:5052340
Created February 27, 2013 22:17
How to make sauce.
1. Get good tomatoes- the usual plastic ones won't do. I usually get heirlooms,
if I can. Look for ones that are kinda squishy, but not actually squished. If
they're too hard, they were probably picked too early and won't be sweet
enough.
2. Prep tomatoes.
1. Place each tomato on cutting board. Press down on tomato, and roll it
around cutting board. You're trying to damage the internal walls to get
them to release juice, without rupturing the skin (same thing you'd do
to an orange when making fresh OJ). Romas can take a lot of squeezing,
heirlooms usually can't.
@novas0x2a
novas0x2a / exiftool-tricks
Created March 2, 2011 23:12
Various exiftool things.
# Create EXIF GPS data from XMP GPS data
exiftool "-gps:all<all" "-gpsdatestamp<gpsdatetime" "-gpstimestamp<gpsdatetime" ...
# Clear bad XMP:GPS entries (... don't use if you have any images that are actually on the date line)
exiftool -r -GPSLongitude= -GPSLatitude= -if '$GPSLongitude == 0' ...