Skip to content

Instantly share code, notes, and snippets.

View bison--'s full-sized avatar

bison bison--

View GitHub Profile
@bison--
bison-- / conf.py
Last active April 27, 2023 21:31
a tiny cli script that toots mastodon toots with some default settings from the account
ACCESS_TOKEN = '<ACCESS_TOKEN>' # create a new app under: https://INSTANCE_DOMAIN/settings/applications
INSTANCE_DOMAIN = 'mastodon.social'
LANGUAGE = 'en' # fallback language
@bison--
bison-- / listCounter.py
Created July 24, 2022 10:56
list counter
import random
class ItemInfo:
def __init__(self, place=0, amount=0):
self.place = place
self.amount = amount
def __repr__(self):
return '{0}: {1}'.format(self.place, self.amount)
@bison--
bison-- / cpuBurnerDirty.py
Created July 21, 2022 01:04
a simple and dirty CPU time burner
import subprocess
import time
thread_amount = int(input('amount of threads:'))
all_processes = []
try:
for i in range(thread_amount):
all_processes.append(subprocess.Popen(["md5sum", "/dev/zero"]))
except Exception as ex:
@bison--
bison-- / FlyCamera.cs
Last active May 16, 2024 15:37 — forked from Mahelita/FlyCamera.cs
New Script FlyCamera add to any camera obj: instant unity editor style wasd right click debug cam, NEW UNITY INPUT SYSTEM
using UnityEngine;
using System.Collections;
using UnityEngine.InputSystem;
public class FlyCamera : MonoBehaviour
{
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
@bison--
bison-- / multipass-create.py
Created May 12, 2020 09:56
a tiny interactive script to create Ubuntu VMs with multipass
#!/usr/bin/python3
import subprocess
full_params = ['multipass', 'launch']
name = input('name: ')
if name:
full_params.extend(['--name', name])
version = input('version: ')
@bison--
bison-- / hRandom.java
Last active February 27, 2020 13:47
Java random helper
import java.util.Random;
public class hRandom {
private static Random localRandom;
/**
* returns a random value between min (inclusive) and max (inclusive)
* @param min minimum value
* @param max maximum value
@bison--
bison-- / screensaver.sh
Created October 24, 2018 16:18
start feh in fullscreen and lock screen with xtrlock, basically a scrensaver
#!/bin/bash
feh -ZFzr --hide-pointer --slideshow-delay 8.8 /home/bison/Dropbox/Photos/Motivation /home/bison/Dropbox/Photos/worthy /home/bison/Dokumente/coding/share/bison--_GitHub/souperDuper/images/bison &
#--bg-max
sleep 1
xtrlock &

Keybase proof

I hereby claim:

  • I am bison-- on github.
  • I am bison (https://keybase.io/bison) on keybase.
  • I have a public key whose fingerprint is D58E 8545 87CC CEFD 35F7 1C97 B10F 4120 547D C69C

To claim this, I am signing this object: