This file contains 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
function Install-LinuxToolChain { | |
<# | |
.SYNOPSIS | |
Downloads and installs the UE4 linux toolchain components. | |
.DESCRIPTION | |
Downloads the clang compiler to $ToolChainDestination and creates a | |
system-wide environment variable pointing to it. | |
Afterwards you have to regenerate the UE4 engine project files and |
This file contains 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
local function _W(f) local e=setmetatable({}, {__index = _ENV or getfenv()}) if setfenv then setfenv(f, e) end return f(e) or e end | |
local bit=_W(function(_ENV, ...) | |
--[[ | |
This bit API is designed to cope with unsigned integers instead of normal integers | |
To do this we add checks for overflows: (x > 2^31 ? x - 2 ^ 32 : x) | |
These are written in long form because no constant folding. | |
]] | |
local floor = math.floor |
This file contains 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
#!/bin/bash | |
# export DBUS_SESSION_BUS_ADDRESS environment variable because cron hates me | |
PID=$(pgrep -u USER gnome-session-b) | |
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-) | |
/usr/bin/gsettings set org.gnome.shell.extensions.user-theme name 'Flat-Plat' | |
/usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Flat-Plat' | |
/usr/bin/gsettings set org.gnome.desktop.background picture-uri 'file://WALLPAPER-PATH' | |
/usr/bin/gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected] set org.zzrough.gs-extensions.drop-down-terminal background-color 'rgb(69,90,100)' |
This file contains 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
local red = Color(255,0,0) | |
local green = Color(0,255,0) | |
local function log(color,s) | |
MsgC(color,s .. "\n") | |
end | |
function mdmp(out) | |
local files,_ = file.Find("*.mdmp","BASE_PATH") | |
if out then log(red,"Found " .. #files .. " files!") end |