Skip to content

Instantly share code, notes, and snippets.

View magik6k's full-sized avatar

Łukasz Magiera magik6k

View GitHub Profile

Keybase proof

I hereby claim:

  • I am magik6k on github.
  • I am magik6k (https://keybase.io/magik6k) on keybase.
  • I have a public key whose fingerprint is 2C45 2F9A B9C5 ACDD 8DB0 2970 DAF1 D53B BD4D 4790

To claim this, I am signing this object:

#!/bin/bash
# FastDL for Garrys Mod setup script - linux
# If you don't have $GMODROOT/bin/gmad_linux get it from gmod client installation(At least linux one)
#
# <!!!> Before use set config varibles <!!!>
#
# After running this script append following to the server.cfg
#
# sv_downloadurl "http://example.com/fastdl"
# sv_allowdownload 0
ip link add name br0 type bridge
ip link set up dev br0
ip addr add 172.16.212.1/30 dev br0
echo 1 > /proc/sys/net/ipv4/ip_forward
ip r add 51.254.25.16/28 via 172.16.212.2
echo "allow br0" >> /etc/qemu/bridge.conf
qemu-system-x86_64 -cpu host -enable-kvm -m 28000 -smp 6 -hda /dev/sda -hdb /dev/sdb -net nic -net bridge,br=br0 -vnc :1,password -k en-us -monitor stdio
# na vnc
@magik6k
magik6k / Acceleradiant.colors.hocon
Created February 8, 2017 23:17
Example Hexagons! maps
color {
background: [
{ r: 0, g: 0, b: 0, a: 1, dynamicDarkness: 8.7, pulse: {r: 0.1764, g: 0.098, b: 0.0039, a: 0}, hue: { min: 0, max: 360, increment: 0.5, pingPong: false } }
{ r: 0, g: 0, b: 0, a: 1, dynamicDarkness: 9.5, pulse: {r: 0.0039, g: 0.098, b: 0.1764, a: 0}, hue: { min: 0, max: 360, increment: 0.5, pingPong: false } }
]
walls: { r: 1, g: 0.6078, b: 0.6078, a: 0.9019, main: true, pulse: {r: 0.1960, g: -0.2941, b: 0.4901, a: 0}, hue: { min: 0, max: 360, increment: 0.5, pingPong: false } }
pulseMax: 1.5
pulseIncrement: 0.025
#!/bin/bash
# ls command printing status/branch of git subdirectories
# WTFNMFPL
if [ "$#" = 1 ]; then
cd $1
fi
for repo in $(ls); do
cd $repo 2>/dev/null || continue
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=16465320k,nr_inodes=4116330,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=3294660k,mode=755)
/dev/xvda1 on / type ext4 (rw,relatime,discard,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
Ram gate
Memory is split into 32-byte segments, accessible with 1-byte granularity
One gate up to 1MiB (32768 segments), little endian
C I O
T N U
L T
0 0 0 - idle
package gctest
import (
"fmt"
"io"
"io/ioutil"
"math/rand"
"os"
"path/filepath"
"syscall"
/*
ccs811basic.ino - Demo sketch printing results of the CCS811 digital gas sensor for monitoring indoor air quality from ams.
Created by Maarten Pennings 2017 Dec 11
*/
#include <Wire.h> // I2C library
#include <ESP8266WiFi.h>
#include <InfluxDb.h>
#include "ccs811.h" // CCS811 library
From 602e68878b8d02a9006a14bf792accc4d65712f2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Magiera?= <[email protected]>
Date: Mon, 2 Dec 2019 14:05:26 +0100
Subject: [PATCH] custom bellman
---
rust/Cargo.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/rust/Cargo.toml b/rust/Cargo.toml