Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View vansoest's full-sized avatar

Sophie van Soest vansoest

View GitHub Profile
@vansoest
vansoest / FXAA.tscn
Created April 9, 2020 20:14 — forked from cart/FXAA.tscn
Godot Nvidia FXAA 3.11 Port
[gd_scene load_steps=3 format=2]
[sub_resource type="Shader" id=1]
code = "shader_type canvas_item;
// Godot Nvidia FXAA 3.11 Port
// Usage: Drop this in to any 3D scene for FXAA! This is a port of the \"PC High Quality Preset 39\". However the medium quality
// parameters are also included. For medium quality, just comment out sections \"PS 6\" and above and uncomment the \"med 13\" variables.
@vansoest
vansoest / space_view3d_move_origin.py
Last active April 5, 2020 14:38 — forked from zeffii/space_view3d_move_origin.py
Updated to Blender 2.8
'''
BEGIN GPL LICENSE BLOCK
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of

Keybase proof

I hereby claim:

To claim this, I am signing this object:

#!/bin/bash
WINDOWMANAGER=i3
if [[ -z "$DBUS_SESSION_BUS_ADDRESS" ]]; then # Looks like we are outside X
eval $(tr '\0' '\n' < /proc/$(pgrep $WINDOWMANAGER | head -1 )/environ | sed -e 's/^/export /') #export all environment variables
fi
$@
@vansoest
vansoest / gist:61796966d0ec1453cfc3
Created January 28, 2016 12:11
Open by the absolute path of a binary/shellscript with vim.
function vim-which() {
if [ "$1" != "" ]; then
vim $(which $1)
fi
}
@vansoest
vansoest / gist:efa6f008662d4105b111
Created January 28, 2016 12:10
zsh: generate sudo aliases. :)
# Sudo aliases.
sudo_aliases=(pacman htop)
for c in $sudo_aliases; do; alias $c="sudo $c"; done
@vansoest
vansoest / cloudSettings
Last active July 23, 2019 12:10
Useful journalctl helper-function for systemd.
{"lastUpload":"2019-07-23T12:10:31.883Z","extensionVersion":"v3.4.1"}
@vansoest
vansoest / gist:fb29a45446292519817a
Created January 28, 2016 12:08
Starts pavucontrol for an external pulseaudio-service(tank) and sets the window-title.
#/bin/bash
export PULSE_SERVER=tank
exec pavucontrol &
pid=$!
sleep 1
xdotool search --all --pid $pid --class "pavucontrol" set_window --name "[tank] pavucontrol"
#!/bin/bash
CARD=`aplay -l | grep -i "ALC889 Analog" | cut -d ":" -f 1 | cut -d " " -f 2`
AMIXER="amixer --card $CARD"
$AMIXER set Master 100%
$AMIXER set Master unmute
$AMIXER set Headphone 70%
$AMIXER set Headphone unmute
$AMIXER set PCM 100%
[Unit]
Description=After resume restarts the fancontrol service
After=suspend.target
[Service]
Type=simple
ExecStart=/usr/bin/systemctl restart fancontrol
[Install]
WantedBy=suspend.target