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
#!/usr/bin/env bash | |
# Command to run on dedicated GPU (optirun, primusrun, DRI_PRIME=1) | |
#OPTIMUS_CMD="optirun" | |
# Array of PlayOnLinux shortcut names | |
POL_SHORTCUT[0]='eqgame (takp_64_1)' | |
POL_SHORTCUT[1]='eqgame (takp_64_2)' | |
POL_SHORTCUT[2]='eqgame (takp_64_3)' |
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
#!/usr/bin/env bash | |
# Also requires perl | |
# This is especially useful to launch automatically when you run CS:GO | |
# by adding it to CS:GO's "Launch Options" in Steam. | |
# (Right-click the game in the library list, click "Properties", | |
# click "Set Launch Options...". eg: | |
# $HOME/bin/csgo_tweaks.sh start; %command%; $HOME/bin/csgo_tweaks.sh stop | |
# (make sure to chmod +x csgo_tweaks.sh before you try that) |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use 5.024; | |
use Mojo::UserAgent; | |
use Data::Dumper; | |
die 'Need port name as argument' |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use 5.024; | |
use Mojo::UserAgent; | |
use DateTime; | |
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
" vim-plug stuff | |
call plug#begin('~/.local/share/nvim/plugged') | |
"Plug 'VundleVim/Vundle.vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'tommcdo/vim-lion' |
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
const express = require('express'); | |
const puppeteer = require('puppeteer'); | |
const app = express(); | |
app.get('/:id', async (req, res) => { | |
const itemId = req.params.id; | |
console.log('Request itemId: ' + itemId); | |
const browser = await puppeteer.launch({args:['--no-sandbox']}); |
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
#!/usr/bin/env perl | |
use 5.024; | |
use Mojo::Base -strict; | |
use Mojo::UserAgent; | |
use Mojo::Util 'dumper'; | |
binmode STDOUT, ':encoding(UTF-8)'; | |
say '[[ ', scalar localtime, ' ]]'; |
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/sh | |
# This has some OpenBSD specifics in it ("ftp" and the unbound paths). | |
# Run the download and convert as a non-privileged user (in a cron job) | |
BLACKLIST_PATH_TEMP="/tmp/blacklist.conf" | |
# Change "ftp" to whichever HTTP client you prefer | |
/usr/bin/ftp -o - https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | \ | |
awk '{if (/^0\.0\.0\.0/) print "local-zone: \""$2"\" redirect\nlocal-data: \""$2" A 0.0.0.0\""}' \ | |
> "$BLACKLIST_PATH_TEMP" \ |
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/sh | |
curl -O https://cpan.metacpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz \ | |
&& tar xzvf Net-SSLeay-1.92.tar.gz \ | |
&& cd Net-SSLeay-1.92 \ | |
&& curl -O https://raw.githubusercontent.com/openbsd/ports/master/security/p5-Net-SSLeay/patches/patch-SSLeay_xs \ | |
&& patch < patch-SSLeay_xs \ | |
&& perl Makefile.PL \ | |
&& make install |
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
# /etc/pacman.d/hooks/zen_kernel_version_pin.hook | |
[Trigger] | |
Operation = Upgrade | |
Type = Package | |
Target = linux-zen | |
Target = linux-zen-headers | |
[Action] | |
Description = Prevent zen kernel from upgrading past X.Y major.minor version | |
When = PreTransaction |