Skip to content

Instantly share code, notes, and snippets.

@Garland-g
Garland-g / RAKUDO_EXCEPTIONS_HANDLER.log
Created Nov 14, 2017
Bug with RAKUDO_EXCEPTIONS_HANDLER='JSON'
View RAKUDO_EXCEPTIONS_HANDLER.log
$ echo 'my Var $var' | RAKUDO_EXCEPTIONS_HANDLER='JSON' perl6
No exception handler located for catch
at SETTING::src/core/Exception.pm:57 (C:\rakudo\share/perl6/runtime/CORE.setting.moarvm:throw)
from SETTING::src/core/control.pm:178 (C:\rakudo\share/perl6/runtime/CORE.setting.moarvm:die)
from SETTING::src/core/control.pm:166 (C:\rakudo\share/perl6/runtime/CORE.setting.moarvm:die)
from SETTING::src/core/Rakudo/Internals/JSON.pm:124 (C:\rakudo\share/perl6/runtime/CORE.setting.moarvm:to-json)
from SETTING::src/core/Rakudo/Internals/JSON.pm:100 (C:\rakudo\share/perl6/runtime/CORE.setting.moarvm:to-json)
from SETTING::src/core/Rakudo/Internals/JSON.pm:114 (C:\rakudo\share/perl6/runtime/CORE.setting.moarvm:)
from SETTING::src/core/Any-iterable-methods.pm:369 (C:\rakudo\share/perl6/runtime/CORE.setting.moarvm:pull-one)
from SETTING::src/core/Seq.pm:116 (C:\rakudo\share/perl6/runtime/CORE.setting.moarvm:join)
@Garland-g
Garland-g / Res.sh
Last active Nov 26, 2019
This is a script that will change the resolution in Linux on a Macbook Pro Retina computer. Nvidia-current is required for the script to function properly. Tested in Ubuntu 13.04 (alpha).
View Res.sh
#!/bin/bash
#Author: Travis Gibson
#This script requires an argument for the resolution width
#Thanks go out to eCharles for a patch in the comments of this link here: http://blog.echarles.net/2013/10/01/Ubuntu-13.04-On-MacbookPro-Retina
if [ -z "$1" ]; then
echo "Usage: Res.sh <resolution_width>";
exit 1;
fi
erg=$( echo "$1")
check=$(xrandr -q | grep DP-2 | cut -d " " -f 4 | cut -d "x" -f 1)