Skip to content

Instantly share code, notes, and snippets.

View bahorn's full-sized avatar
🏴‍☠️
On vacation

B Horn bahorn

🏴‍☠️
On vacation
View GitHub Profile
@bahorn
bahorn / voice-script.py
Created February 25, 2020 18:50
https://github.com/CorentinJ/Real-Time-Voice-Cloning playing around with the demo_cli script to implement other ideas
from encoder.params_model import model_embedding_size as speaker_embedding_size
from utils.argutils import print_args
from synthesizer.inference import Synthesizer
from encoder import inference as encoder
from vocoder import inference as vocoder
from pathlib import Path
import numpy as np
import librosa
import argparse
import torch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bahorn
bahorn / hackdetails.tsv
Last active December 6, 2019 22:26
hackdetails.tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 12 columns, instead of 10 in line 5.
name site location attendance start_date end_date vague_date U18 archived archived_url submissions submissions_site
HackNotts 2020 hacknotts.com University of Nottingham 200 2020-11-28 09:00:00 2020-11-29 17:00:00 TRUE http://web.archive.org/web/20190120025802/https://hacknotts.com/
DurHack 2020 durhack.com Durham University 425 2020-11-14 09:00:00 2020-11-15 17:00:00 TRUE http://web.archive.org/web/20191121083501/https://durhack.com/
Hatch 2020 hatchlondon.io/hatch-2020 University College London 100 2020-11-01 00:00:00 2020-11-30 00:00:00 TRUE TRUE https://web.archive.org/web/20191206214152/https://www.hatchlondon.io/hatch-2020
HackTheMidlands 5.0 hackthemidlands.com Millennium Point, Curzon St, Birmingham B4 7XG 2020-09-22 09:00:00 2020-12-21 17:00:00 TRUE TRUE http://web.archive.org/web/20161027181535/http://hackthemidlands.com:80/
DurHack:NextGen durhack.com/nextgen Durham University 100 2020-04-18 09:00:00 2020-04-19 17:00:00 TRUE TRUE https://web.archive.org/web/20191206184704/https://du
@bahorn
bahorn / 10x.py
Last active July 16, 2019 13:59
a One Instruction Programming language made up of only 10x and newlines. so you can claim to be a 10x developer...
import sys
# returns the next instruction to run
def oisc(ip, m):
m[m[ip+1]] = (m.get(m[ip+1], 0) - m.get(m[ip+0], 0)) & 0xFFFFFFFF
if m[m[ip+1]] > 0x7FFFFFFF or m[m[ip+1]] == 0:
return m[ip+2]
else:
@bahorn
bahorn / ttgo-lora32-v2.json
Last active March 6, 2020 18:20
PlatformIO board config for the TTGO LoRa32 OLED V2. Have tested with a simple LoRaWAN example. Do need to double check the settings before upstreaming.
{
"build": {
"core": "esp32",
"extra_flags": "-DARDUINO_TTGO_LoRa32_V2",
"f_cpu": "240000000L",
"f_flash": "40000000L",
"flash_mode": "dio",
"ldscript": "esp32_out.ld",
"mcu": "esp32",
"variant": "ttgo-lora32-v2"
@bahorn
bahorn / ani.py
Last active October 27, 2023 15:04
Converts images to emojis.... Also has support for mp4s if you want to watch them in 16 color emoji for some reason.
#!/usr/bin/env python3
import argparse
import cv2
import emojipic
import sys
import time
from PIL import *
def clearscreen(n):
@bahorn
bahorn / unsafe-links.py
Created February 18, 2019 21:40
unmangling safelinks URLs so I can examine the phishing sites.
@bahorn
bahorn / importer.py
Created February 8, 2019 18:12
Ideabot importer
import requests
import time
url = 'https://us-central1-hackathonideas-6e61d.cloudfunctions.net/addIdea'
def addIdea(author, idea):
r = requests.post(url, data={'author': author, 'idea': idea})
return r.status_code
with open('ideas.txt') as ideas:
" Vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'itchyny/lightline.vim'
Plugin 'flazz/vim-colorschemes'
Plugin 'rykka/mathematic.vim'
Plugin 'hari-rangarajan/CCTree'
@bahorn
bahorn / localhackday.md
Last active May 4, 2021 16:13
Local Hack Day @ CovHackSoc

Local Hack Day @ CovHackSoc

About

Major League Hacking is organising one massive, distributed Hackathon.

Us at @CovHackSoc are running on of the local events, here at Coventry in EC2-12.

Us