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
| # This file has been auto-generated by i3-config-wizard(1). | |
| # It will not be overwritten, so edit it as you like. | |
| # | |
| # Should you change your keyboard layout some time, delete | |
| # this file and re-run i3-config-wizard(1). | |
| # | |
| # i3 config file (v4) | |
| # | |
| # Please see https://i3wm.org/docs/userguide.html for a complete reference! |
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
| #!/bin/bash | |
| if [ ! -f "$1" ]; then | |
| echo 'Usage: find_tabbers FILE' | |
| exit 1 | |
| fi | |
| grep -P -n '\t' "$1" | awk -F ':' '{print $1;}' | xargs -L 1 -I NUMLINE git blame -L NUMLINE,NUMLINE "$1" | bash -c 'cat -' |
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
| #!/bin/bash | |
| cd /sys/fs/cgroup/cpuset | |
| for pname in wineserver LeagueClientUx.exe LeagueClientUxRender.exe; do | |
| pid=$(pidof "$pname") | |
| echo "pidof $pname = $pid" | |
| echo $pid >> cgroup.procs | |
| done |
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/env python3 | |
| import subprocess | |
| db_prochot_loc = '0x1fc' | |
| def main(): | |
| p = subprocess.run(['rdmsr', db_prochot_loc], stdout=subprocess.PIPE, encoding='utf8') | |
| orig_str = p.stdout.rstrip() | |
| v = int('0x' + orig_str, 16) ^ 0b1 |
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
| #![feature(nonzero)] | |
| extern crate core; | |
| use core::nonzero::NonZero; | |
| use std::ffi::CStr; | |
| use std::os::raw::*; | |
| use std::slice; | |
| const GLX_CONTEXT_PROFILE_MASK_ARB: c_int = 0x9126; |
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
| #!/bin/bash | |
| set -e | |
| league_dir=$(dirname $0) | |
| export MESA_GL_VERSION_OVERRIDE=4.5COMPAT | |
| export VBLANK_MODE=0 | |
| export MESA_GLTHREAD=true | |
| resolution=$(xrandr | grep ' connected ' | awk '{print $4}' | egrep -o '^[0-9]+x[0-9]+') | |
| width=$(echo $resolution | awk -F 'x' '{print $1}') | |
| height=$(echo $resolution | awk -F 'x' '{print $2}') |
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
| import com.dabsquared.gitlabjenkins.cause.GitLabWebHookCause; | |
| import com.dabsquared.gitlabjenkins.cause.CauseData; | |
| GitLabWebHookCause cause = build.getCause(GitLabWebHookCause.class); | |
| return cause.getData().getActionType().equals(CauseData.ActionType.PUSH); |
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
| module Util.Stream where | |
| import Prelude | |
| import Control.Monad.Aff (Aff, makeAff) | |
| import Control.Monad.Eff (Eff) | |
| import Control.Monad.Eff.Exception (EXCEPTION, Error) | |
| import Control.Monad.ST (ST, newSTRef, modifySTRef, readSTRef, runST) | |
| import Data.Monoid (class Monoid) | |
| import Node.Encoding (Encoding(..)) | |
| import Node.Stream (Read, Readable, Stream, onData, onError, onEnd, onDataString) |
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
| [package] | |
| name = "playground" | |
| version = "0.1.0" | |
| authors = ["Matt Coffin <mcoffin13@gmail.com>"] | |
| [dependencies.inner] | |
| path = "./inner" |
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
| joystickIndex = 1 | |
| pedalsIndex = 2 | |
| vJoyIndex = 0 | |
| x = joystick[joystickIndex].x | |
| y = joystick[joystickIndex].y | |
| leftPedal = -((joystick[pedalsIndex].zRotation - 1000.0) / 2.0) | |
| rightPedal = -joystick[pedalsIndex].y | |
| z = rightPedal - leftPedal | |
| throttle = joystick[joystickIndex].sliders[0] |