Skip to content

Instantly share code, notes, and snippets.

@remram44
remram44 / repro.md
Created September 16, 2024 15:12
Poetry include bug?

Setup

$ docker run -ti --rm --name poetry-include python:3.11 bash
root@125be24bdd5c:/# curl -sSL https://install.python-poetry.org | python3 -
Retrieving Poetry metadata

# Welcome to Poetry!

This will download and install the latest version of Poetry,
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
# From http://hewo.xedoloh.com/2015/04/base-256/
# Usage:
# name256
# Generate a random base256 word
# Example:
# $ name256
# vic
@remram44
remram44 / mysql-apache2.sh
Created May 19, 2023 17:07
ReproZip wrapper script for mysql+apache2
#!/bin/sh
if [ "$(id -u)" != 0 ]; then echo "This script needs to run as root so that it can execute MySQL" >&2; exit 1; fi
# Start MySQL (in the background)
runuser -u mysql -- /usr/sbin/mysqld --pid-file=/run/mysqld/mysqld.pid &
sleep 5
# Need to set this to avoid apachectl talking to systemd
export APACHE_STARTED_BY_SYSTEMD=true
/* Source of MySQL Raytracer -- https://www.pouet.net/prod.php?which=83222
* Pasted here for convenience, see original for copyright information */
/* MySQL raytracing engine by Nick (holtsetio@gmail.com) */
Select if(repeat(char(
/* Parameters */
@w := 100, /* width of the output in pixels */
@h := 100, /* height of the output in pixels */
@cam.x := 0.0, /* x-position of the camera */
@cam.y := 0.0, /* y-position of the camera */
// ==UserScript==
// @name Block domains from duckduckgo
// @namespace http://tampermonkey.net/
// @version 0.1
// @description A userscript to remove search results from specific domains
// @author Remi Rampin <remirampin@gmail.com>
// @match https://duckduckgo.com/*
// ==/UserScript==
// https://gist.github.com/remram44/407be77a5649e2c816064a7ac0132ac0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@remram44
remram44 / jails.md
Created April 7, 2022 17:16
jailing tool comparison from mstef
def listdir_relative(path):
result = []
cwd = os.getcwd() + '/'
for entry in listdir(path):
if not entry.startswith(cwd):
fail('Unexpected entry ' + entry)
entry = entry[len(cwd):]
result.append(entry)
return result
@remram44
remram44 / python3.6.svg
Created December 6, 2021 21:53
from d3m.primitives.classification.decision_tree import SKlearn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.