Skip to content

Instantly share code, notes, and snippets.

Avatar
🚰
purging 19

Fahmi Akbar Wildana DrSensor

🚰
purging 19
View GitHub Profile
@DrSensor
DrSensor / package.jsonc
Last active Jun 25, 2021
Useful dependencies for GameDev
View package.jsonc
{
"dependencies": {
"canvas-recorder": "*", // record <canvas> then bundle as .zip
"cannon-es": "*", // tree-shakable physics engine! (finally😂)
},
"devDependencies": {
"madge": "*", // visualize your dependencies graph
},
}
@DrSensor
DrSensor / desktop.nix
Last active Sep 18, 2021
My plan for full migration into NixOS and Wayland
View desktop.nix
{ pkgs ? import <nixpkgs>
, lib ? pkgs.lib
, desktopEnvironment
}: with pkgs;
desktopEnvironment {
session-manager = emptty;
window-manager = [ sway labwc ];
screen-display = {
use = kanshi; # autorandr
gui = wlay;
View gist:d42a4d2c9a4dba5cc1033ea05570e262
# with sound and file
gst-launch-1.0 uridecodebin uri=file:///home/dirk/Videos/Clouds_67_Timelapse.mp4 ! video/x-raw,width=1280,height=720 ! queue ! x264enc threads=0 bitrate=400 tune=zerolatency key-int-max=30 ! queue ! flvmux name=flvmux ! queue ! rtmpsink location=rtmp://live-fra.twitch.tv/app/$APIKEY audiotestsrc ! faac ! flvmux.
View glitch-screen.sh
#!bin/sh
maim -x $1 \
| convert png:- bmp:- \
| sox -r 48k -c 1 -e u-law -t raw /dev/stdin -t raw /dev/stdout trim 0 100s \
: treble -30 1k \
| convert bmp:- rgb:- \
| i3lock --image /dev/stdin --raw 1920x1080:rgb
# Other terms: Glitchart, Databender, Obfuscate Image
View nu.toml
edit_mode = "emacs"
use_starship = false
rm_always_trash = true
history_size = 100000
completion_mode = "circular"
disable_table_indexes = false
header_align = "l"
header_color = "c"
header_bold = true
pivot_mode = "auto"
View keybase.md

Keybase proof

I hereby claim:

  • I am drsensor on github.
  • I am drsensor (https://keybase.io/drsensor) on keybase.
  • I have a public key ASDvtxSiUu0YOZr4V4IxnJd-33IA4SawWjw-F6oAh1Yx6Ao

To claim this, I am signing this object:

View hacktoberfest-raspistrate.md

Cross compiling notes

1st attempt 2019-10-15

$ cross build --target x86_64-unknown-linux-gnu --release --package substrate
.
.
error: failed to run custom build command for `librocksdb-sys v5.18.3`
Caused by:
  process didn't exit successfully: `/target/release/build/librocksdb-sys-e17ed1a83908e9ac/build-script-build` (exit code: 101)
@DrSensor
DrSensor / test.md
Last active Jun 2, 2019
Advanced HTML tags in Markdown
View test.md

H2O

mc2

collapsible
const working = burnout
@DrSensor
DrSensor / bug.py
Last active Feb 19, 2019
Bug In Programming language
View bug.py
# Expression in Literal String Interpolation (pep-0498/#supporting-full-python-expressions)
fixtures = []
a1 = f"'{'\' \''.join(fixtures)}'"
a2 = f"'{"' '".join(fixtures)}'"
# only on Python 3.5.3
a3 = f"({'|'.join(fixtures)})"
a4 = f'" "{f} '.join(fixtures)