Skip to content

Instantly share code, notes, and snippets.

Morten Hekkvang artheus

  • Sollentuna | Stockholm | Sweden
Block or report user

Report or block artheus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View modlist.txt
actually-additions
ae2-stuff
appleskin
applied-energistics-2
baubles
better-builders-wands
bibliocraft
blood-magic
botania
buildcraft
@artheus
artheus / reactor.lua
Created Oct 28, 2017
BR Reactor controller script.
View reactor.lua
local component = require("component")
local r = component.br_reactor
local capacity = r.getEnergyCapacity();
while true do
s = r.getEnergyStored();
if r.getActive() then
if s/capacity > 0.8 then
@artheus
artheus / wp_function.sh
Last active Oct 26, 2017
My workspace bash function with completion
View wp_function.sh
function wp() {
cd "$HOME/workspace/$1"
}
__wp_path_comp()
{
local cur_word="${COMP_WORDS[COMP_CWORD]}"
local wpcontent
wpcontent=`find $HOME/workspace/${cur_word}* -maxdepth 0 -type d -print 2> /dev/null | sed -e "s|$HOME/workspace/||" `
@artheus
artheus / mobfarm.lua
Last active Oct 25, 2017
mobfarm control script for a ftb server w. opencomputers
View mobfarm.lua
API = require("buttonAPI")
local event = require("event")
local computer = require("computer")
local term = require("term")
local component = require("component")
local gpu = component.gpu
local rs = component.redstone
local colors = require("colors")
local sides = require("sides")
@artheus
artheus / pacman-mirrors-replace.vim
Last active Aug 15, 2019
Vim Country Substitution for pacman.d/mirrorlist
View pacman-mirrors-replace.vim
" This is a substitution command for VIM where you can replace the word´Sweden´ with the country you want to keep.
" Whenever I install Arch linux on my machines, I usually only keep the mirrors from my country. If you do the
" same thing, you can use this to do it fast!
:%s/^##\s\(Sweden\)\@!\(.*\)\nServer = .*\n//
" Do you have any suggestions on making it better? Please comment!
View py3lock.py
#!/usr/bin/python
import os
import xcb
from xcb.xproto import *
from PIL import Image, ImageFilter
XCB_MAP_STATE_VIEWABLE = 2
def screenshot():
@artheus
artheus / api_generation.yaml
Last active Sep 25, 2016
Sample config, API backend generation
View api_generation.yaml
!import "common.groovy"
!import "springboot.groovy"
!import "postgres.groovy"
!merge "moreConfig.yaml" #!dominant
!merge "otherConfig.yaml" #!submissive
springboot:
- db: "postgres"
You can’t perform that action at this time.