Skip to content

Instantly share code, notes, and snippets.

+(/opt/homebrew/bin/pyenv:23): enable -f /opt/homebrew/bin/../libexec/pyenv-realpath.dylib realpath
+(/opt/homebrew/bin/pyenv:30): '[' -z '' ']'
++(/opt/homebrew/bin/pyenv:32): type -P readlink
+(/opt/homebrew/bin/pyenv:32): READLINK=/usr/bin/readlink
+(/opt/homebrew/bin/pyenv:33): '[' -n /usr/bin/readlink ']'
+(/opt/homebrew/bin/pyenv:58): '[' -z /Users/utopist/.pyenv ']'
+(/opt/homebrew/bin/pyenv:61): PYENV_ROOT=/Users/utopist/.pyenv
+(/opt/homebrew/bin/pyenv:63): export PYENV_ROOT
+(/opt/homebrew/bin/pyenv:65): '[' -z '' ']'
+(/opt/homebrew/bin/pyenv:66): PYENV_DIR=/Users/utopist/projects/APE
# Maintainer: Jean-Marc Lenoir <archlinux "at" jihemel "dot" com>
# Contributor: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
# To enable macOS guests support, uncomment the line below:
#_enable_macOS_guests=y
# CAUTION: Running macOS on VMware Workstation on non Apple computer is forbidden by
# Apple and VMware EULAs.
# vmware-keymaps dependency is needed to avoid some conflicts when you install
# this package with vmware-horizon-client. If you don't plan to install
@step21
step21 / keybase.md
Last active April 27, 2022 16:39
keybase.md

Keybase proof

I hereby claim:

  • I am step21 on github.
  • I am fl0_id (https://keybase.io/fl0_id) on keybase.
  • I have a public key ASB5JZ85eLvhyMHQvG9xX0U07Le7xwlTMHL_JQSxbCxciAo

To claim this, I am signing this object:

@step21
step21 / jupyter_solc_magic.md
Created December 28, 2020 14:13
solidity compiler (solc) in jupyter notebook

The line below gives an example of how to compile solidity code from a jupyter notebook cell. Replaces the '--ast-json' with whatever options or output you like, and adjust the binary to where your solc is. The dash at the end is necessary to signify stdin.

%alias_magic solidity script -p "/home/jovyan/.solcx/solc-v0.6.7 --ast-json -"

@step21
step21 / machine.js
Created August 29, 2020 14:40
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@step21
step21 / venv_wrapper
Created May 3, 2019 00:12 — forked from dbtek/venv_wrapper
Python 3 venv wrapper. Manages all virtual environments under ~/.venv/ .
# include following in .bashrc / .bash_profile / .zshrc
# usage
# $ mkvenv myvirtualenv # creates venv under ~/.venv/
# $ venv myvirtualenv # activates venv
# $ deactivate # deactivates venv
# $ rmvenv myvirtualenv # removes venv
export VENV_HOME="$HOME/.venv"
[[ -d $VENV_HOME ]] || mkdir $VENV_HOME
@step21
step21 / harvest
Last active October 12, 2017 02:31
# encoding=utf-8
import epidat_parse_bfs
from loc import loc
from poerelief import db, models
import untangle
#import db_access
#import pymongo as PyMongo
baseurl = "http://steinheim-institut.de/cgi-bin/epidat?id="
#baseurl for list of records
name: aletheia # you probably want to 'snapcraft register <name>'
version: '0.3' # just for humans, typically '1.2+git' or '1.3.2'
summary: Aletheia decentralized scientific publishing # 79 char long summary
description: |
Aletheia is...
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
apps:
name: ethereum
summary: An Ethereum framework for Snappy Ubuntu
description: A framework providing all the essentials needed in order to develop for and interact with the Ethereum blockchain
#Not allowed anymore
#vendor: Lefteris <lefteris@refu.co>, step21 <step21@devtal.de>
architectures: [amd64]
icon: ethereum_icon.png
#fix version
version: 0.1.5
type: app
#!/usr/bin/bash
echo "Checking the bus for any Nvidia cards.."
if lspci | grep NVIDIA
then
echo "Nvidia GPU detected!"
echo "Switching to Nvidia..."
if pacman -Qe | grep mesa-libgl
then
yes | pacman -S nvidia-libgl lib32-nvidia-libgl