Skip to content

Instantly share code, notes, and snippets.

View karlek's full-sized avatar
🐴
Horsing around with OpenGL

Henry Eklind karlek

🐴
Horsing around with OpenGL
View GitHub Profile
@karlek
karlek / batman.go
Created May 5, 2013 23:26
Go batman!
package main
import (
"fmt"
"math"
"strings"
)
func main() {
fmt.Println(strings.Repeat(fmt.Sprintf("%v ", fmt.Sprint(math.NaN())[:2]), 16) + "Batman!")
@karlek
karlek / wikipedia.css
Created March 7, 2019 18:46
Serif wikipedia
/* Remove */
#mw-page-base,
#mw-head,
#footer,
.sistersitebox,
#p-logo,
#p-navigation,
#p-interaction,
#p-tb,
#p-coll-print_export,
@karlek
karlek / mac_change.c
Created April 22, 2021 22:46
Simple mac changer.
#include <assert.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
int main(int argc, char** argv) {
@karlek
karlek / arch-linux-install
Last active August 22, 2021 19:26 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# This assumes a wifi only system...
@karlek
karlek / gwent-launcher.sh
Created February 24, 2022 23:57
Gwent & Proton
#!/bin/sh
# Executable file
APP_EXEC="Gwent.exe"
# Steam / IDs
export SteamAppId="1284410"
export SteamGameId="1284410"
export PROTON_LOG=1
# NOTE: Extremely important to set this to 1, otherwise the game will not start.