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
[includeIf "gitdir/i:~/p/ns/"] | |
path = ~/p/ns/.gitconfig |
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
# example docker-compose configuration for Northstar | |
# - Docker Compose v1.29.0+ | |
# - Northstar v1.13.0+ | |
# this name is used as a prefix for containers | |
name: nsdedi | |
# common configuration | |
x-ns: &ns |
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
<# :: | |
@@ setlocal disabledelayedexpansion | |
@@ powershell -NoProfile -ExecutionPolicy Bypass -Command "Invoke-Expression (Get-Content -Raw '%~f0')" | |
@@ if errorlevel 1 pause | |
@@ exit /b %errorlevel% | |
#> | |
$tf2 = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Respawn\Titanfall2")."Install Dir" | |
Get-ChildItem $tf2 -Filter "*.starpak" -Recurse | | |
Where-Object Length -GT 1mb | |
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
<# :: | |
@@ setlocal disabledelayedexpansion | |
@@ powershell -NoProfile -ExecutionPolicy Bypass -Command "Invoke-Expression (Get-Content -Raw '%~f0')" | |
@@ if errorlevel 1 pause | |
@@ exit /b %errorlevel% | |
#> | |
echo test | |
exit 1 |
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 synx | |
import ( | |
"bytes" | |
"errors" | |
"fmt" | |
"runtime/debug" | |
) | |
// Use errors.Is to test for these errors. |
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 wm provides utilities for working with Web Mercator slippy map | |
// projections. | |
// | |
// See: | |
// - https://developers.google.com/maps/documentation/javascript/examples/map-coordinates | |
// - https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames | |
// - https://basemaps.cartocdn.com | |
package wm | |
import ( |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <winuser.h> | |
int main() { | |
HWND w = FindWindowA("vwr::CDesktopWin", NULL); | |
if (!w) { |
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 pdef parses Titanfall 2 player data definitions. | |
package pdef | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"regexp" | |
"strconv" | |
"strings" |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <winuser.h> | |
int main() { | |
char cmd[4096]; | |
while (fgets(cmd, sizeof(cmd), stdin)) { |
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 tf2vpk manipulates Titanfall 2 VPKs. | |
package tf2vpk | |
import ( | |
"bufio" | |
"encoding/binary" | |
"fmt" | |
"io" | |
"sort" | |
"strings" |
NewerOlder