This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/bash | |
# Set kernel parameter `amdgpu.vm_update_mode=3` to fix crash caused by bugs comes with amdgpu | |
#sane bash environment | |
set -euo pipefail | |
echo "setting kernel parameter amdgpu.vm_update_mode=3..." | |
if [ -z ${GRUB_DEFAULT+x} ]; then | |
GRUB_DEFAULT="/etc/default/grub" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by newuser for 5.6.2 | |
function nix_shell_prompt () { | |
REPLY=${IN_NIX_SHELL+(nix) } | |
} | |
function py_virtual_env_prompt () { | |
REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) } | |
} | |
grml_theme_add_token nix-shell -f nix_shell_prompt '%F{megenta}' '%f' | |
grml_theme_add_token py-virtual-env -f py_virtual_env_prompt '%F{magenta}' '%f' | |
autoload -U colors && colors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const join = async <T>(p: Promise<Promise<T>>) => { | |
return await p; | |
}; | |
const unify = async<T>(p: Promise<T>) => { | |
const v = await p; | |
if (v instanceof Promise) { | |
unify(join(v)); | |
} | |
return v; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:def pretty \_ -> return ("import qualified Text.Show.Pretty as ShowPretty__\n:set -interactive-print ShowPretty__.pPrint") | |
:def cpretty \_ -> return ("import qualified Text.Show.Pretty as ShowPretty__\nimport qualified Language.Haskell.HsColour as HSC__\nimport qualified Language.Haskell.HsColour.Colourise as HSCR__\nlet _colorPrint_ = Prelude.putStrLn . HSC__.hscolour HSC__.TTY HSCR__.defaultColourPrefs False False \"\" False . ShowPretty__.ppShow\n:set -interactive-print _colorPrint_") | |
:def unpretty \_ -> return (":set -interactive-print Prelude.print") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": { | |
"CPPDefault": { | |
"adapter": "vscode-cpptools", | |
"configuration": { | |
"request": "launch", | |
"program": "${workspaceRoot}/<executable>", | |
"cwd": "${workspaceRoot}/", | |
"externalConsole": true, | |
"stopAtEntry": true, |