Skip to content

Instantly share code, notes, and snippets.

View frzifus's full-sized avatar
🎯
Focusing

Ben B. frzifus

🎯
Focusing
View GitHub Profile
export NAME=docker.io/d743addb4031/multi-arch-stuff
for ARCH in "amd64" "arm64v8";
do
docker pull ${ARCH}/fedora
docker tag "${ARCH}/fedora" "${NAME}-${ARCH}"
docker push "${NAME}-${ARCH}"
done
docker manifest rm "${NAME}" || true
@frzifus
frzifus / external.sh
Created July 4, 2020 07:43
Run external windows games with proton (steam flatpak)
#pwd: $HOME/.var/app/com.valvesoftware.Steam/.local/Games/myGame
#DEBUG_FILE="${PWD}/debug.log"
DEBUG_FILE="/dev/null"
PROTON_VERSION="Proton 5.0"
GAME_FILE="${PWD}/Game.exe"
echo "create proton folder in ${PWD}" > $DEBUG_FILE
mkdir -p ${PWD}/proton
package main
import (
"crypto/tls"
"errors"
"flag"
"fmt"
"io"
"net/http"
"os"
// A concurrent prime sieve
package main
import (
"bufio"
"fmt"
"log"
"os"
#!/bin/bash
devel-su
cp /etc/dconf/db/vendor.d/silica-configs.txt ./silica-configs.txt.bak
rm /etc/dconf/db/vendor.d/silica-configs.txt
dconf update
#default 1.75
@frzifus
frzifus / .spacemacs
Last active October 21, 2018 00:05
[Spacemacs] config
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@frzifus
frzifus / e.fish
Last active October 22, 2017 10:29
[fish] emacs launch function
function e
if not pidof emacs > /dev/null 2>&1
emacs --daemon
else
emacsclient $argv
end
end