I hereby claim:
- I am mjarkk on github.
- I am mjarkk (https://keybase.io/mjarkk) on keybase.
- I have a public key whose fingerprint is 75D1 0043 D24C 1560 463F 3621 E5E3 30D0 DBBE 5AA9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
How i've installed void inux (xfce) on my laptop
The install iso i've used: void-live-x86_64-{version_here}-xfce.iso
from: https://a-hel-fi.m.voidlinux.org/live/current/
To flash the iso i've used rufus with it's default settings.
I like to start with a clean disk so i'll start
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"reflect" | |
) | |
type Test2 struct { | |
B string |
# Make sure to bind the docker sock as volume when running this in a container | |
FROM alpine | |
WORKDIR /usr/bin | |
RUN apk add docker && \ | |
rm docker-init docker-proxy dockerd containerd containerd-shim containerd-shim-runc-v1 containerd-stress runc ctr | |
CMD ["docker", "ps"] |
func main() { | |
input := "KkktLgEEAAD//w==" | |
out, err := base64.StdEncoding.DecodeString(input) | |
if err != nil { | |
log.Panicln(err) | |
} | |
enflated, err := ioutil.ReadAll(flate.NewReader(bytes.NewReader(out))) | |
if err != nil { |
func main() { | |
input := "KkktLgEEAAD//w==" | |
out, err := base64.StdEncoding.DecodeString(input) | |
if err != nil { | |
log.Panicln(err) | |
} | |
enflated, err := ioutil.ReadAll(flate.NewReader(bytes.NewReader(out))) | |
if err != nil { |
func main() { | |
key, err := rsa.GenerateKey(rand.Reader, 2048) | |
if err != nil { | |
log.Fatal(err) | |
} | |
// Generate keyFile to memory | |
keyFile := pem.EncodeToMemory(&pem.Block{Type: "RSA PUBLIC KEY", Bytes: x509.MarshalPKCS1PublicKey(&key.PublicKey)}) | |
// Create a public key from the public keyFile |
#!/bin/bash | |
# After running this: | |
# cd /app | |
# composer install | |
# php artisan serve | |
docker run \ | |
-it \ | |
--net=host \ | |
--mount type=bind,source=/home/mark/Documents/bla/bla/bla/laravelApp,target=/app \ |
#!/bin/bash | |
# Make sure to change the /tmp/chrome-data to a emptry direcotry | |
# Make sure to change google-chrome-unstable to youre chrome launch command | |
# This command is mostly coppied from: https://github.com/GoogleChrome/puppeteer/blob/eb7bd9d7d3a7800e9ed3d77a19aaf4336587026c/lib/Launcher.js | |
google-chrome-unstable \ | |
--user-data-dir=/tmp/chrome-data \ | |
--disable-background-networking \ | |
--disable-background-timer-throttling \ | |
--disable-backgrounding-occluded-windows \ |
#include <SPI.h> | |
#include <Ethernet.h> | |
#define REDPIN 5 | |
#define GREENPIN 3 | |
#define BLUEPIN 6 | |
#define WHITEPIN 10 | |
byte mac[] = { | |
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED |