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
package main | |
const ( | |
sshKey string = "/Users/myuser/.ssh/id_rsa_mykey" | |
hostname string = "myhost.com" | |
) |
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
<?php | |
class base { | |
static function whoami_static() { | |
echo('__CLASS__: ' . __CLASS__ . "\n"); | |
echo('get_class(): ' . get_class() . "\n"); | |
echo('get_called_class(): ' . get_called_class() . "\n"); | |
echo('static::class: ' . static::class . "\n"); | |
} |
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
# Even easier than making a function and subshells and all of that, just set the values in your RC! Other things that use | |
# TERMCAP can now take advantage of these values. | |
export LESS_TERMCAP_md=$'\e[1;31m' | |
export LESS_TERMCAP_me=$'\e[0m' | |
export LESS_TERMCAP_se=$'\e[0m' | |
export LESS_TERMCAP_so=$'\e[1;36m' | |
export LESS_TERMCAP_ue=$'\e[0m' | |
export LESS_TERMCAP_us=$'\e[4;32m' |
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
package main | |
// #cgo pkg-config: lua | |
/* | |
#include "lua.h" | |
#include "lauxlib.h" | |
#include "lualib.h" | |
#include <string.h> | |
#include <stdio.h> |
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
// :execute "normal" "mAj^W\"nyEW\"ayEW\"byEk" | execute "normal" @n . "k" | execute ".,.+" . @n . "s/" . @a . "/" . @b | execute "normal" "'A" | |
// 25 FooApi BarApi | |
// Explanation: | |
// mark line as A mA | |
// down one line j | |
// beginning of content ^ | |
// next Word W | |
// Copy Word to n, continue \"nyEW |
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
package main | |
// #cgo pkg-config: lua | |
/* | |
#cgo pkg-config: lua | |
#include "lua.h" | |
#include "lauxlib.h" | |
#include "lualib.h" | |
int my_luaL_loadbuffer(lua_State* L, const char* s, size_t sz, const char* m) { |
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
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"myGame/replay" | |
) | |
func main() { |
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 | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
WINHOME="/mnt/c/Users/atg" | |
NPROCS=10 | |
# NOTE: nothing in the ls arg can have spaces or this doesn't work | |
ls $WINHOME/Documents/Overwatch/videos/overwatch/*.mp4 | xargs -n 1 -l -P $NPROCS -i{} bash -c 'ffmpeg -hide_banner -loglevel debug -ss 00:00:04.800 -i "{}" -t 00:00:12.500 -c copy "/mnt/f/Shortened OW Highlights/$(basename "{}")" && rm "{}"' |
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
Size 13 bold Trajan Pro | |
## Non-Kingdom / Non-Supply Cards (I keep these in their own collection, not alphabetized like the rest) | |
Copper | |
Silver | |
Gold | |
Platinum | |
Estate | |
Duchy |
OlderNewer