Skip to content

Instantly share code, notes, and snippets.


Alexander Brevig AlexanderBrevig

View GitHub Profile
AlexanderBrevig /
Created February 29, 2020 23:22 — forked from htruong/
Chroot to pi sd card
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu desktop/laptop
# just much faster and more convenient
# credits:
# make sure you have issued
AlexanderBrevig / gitscanaggregate.go
Created November 27, 2019 05:04
Gitscan aggregate to TAB separated stream on stdout
View gitscanaggregate.go
package main
import (
View Microsoft.PowerShell_profile.ps1
# PowerShell Core, stupid simple
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
View Windows Terminal config
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see:
"$schema": "",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"profiles": [
AlexanderBrevig / config
Created September 6, 2019 17:42
View config
# i3 config file (v4)
# Please see for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
AlexanderBrevig / gist:9adf9edbc75492094a3747c9eb42c9bc
Created August 15, 2019 11:54
My slightly modified posh-git
View gist:9adf9edbc75492094a3747c9eb42c9bc
# execute
# Install-Module PowershellGet -Force
# first time install
# PowerShellGet\Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force
# update with
# PowerShellGet\Update-Module posh-git
Import-Module posh-git
AlexanderBrevig /
Created March 28, 2019 23:13
An updated module for bumblebee-status that uses and lists tasks that are over due
# pylint: disable=C0111,R0903
# place in bumblebee-status/bumblebee/modules/
"""Displays the number of todo items from a text file
* todo.file: File to read TODOs from (defaults to ~/Documents/todo.txt)
import bumblebee.input
View autoexec.cfg
cl_interpolate "1"
cl_lagcompensation "1" // (activates client-side lag compensation)
cl_predict "1" // (activates client-side prediction, predicts physics, movement, firing etc)
cl_predictweapons "1" // (activates client-side weapon effects prediction)
cl_interp "0.0" // (interpolation, should always be set to "0")
cl_interp_ratio "1" // (interpolation ratio, "1" = low ping, "2" = higher ping)
cl_cmdrate "128" // (for -tickrate 128 launch option)
cl_updaterate "128" // (for -tickrate 128 launch option)

Printout of powerupdemo

BASE only has a range, abbreviated as R

ARROW has a range, and a number of projectiles shot

SNIPer has a range, an a rate of fire

AlexanderBrevig /
Last active November 2, 2017 11:49 — forked from sanchitgangwar/
Snakes Game using Python
# Be sure to download
# I add the pdcurses.dll to the project folder and off you go!
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
import unicurses
from unicurses import *
from random import randint