cp /etc/vim/vimrc ~/.vimrc
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
| PLATFORMS := windows/386 windows/amd64 linux/386 linux/amd64 linux/arm linux/arm64 | |
| export CGO_ENABLED = 0 | |
| export GO386 = softfloat | |
| parts = $(subst /, ,$@) | |
| export GOOS = $(word 1,$(parts)) | |
| export GOARCH = $(word 2,$(parts)) | |
| export EXT = $(if $(filter windows,$(GOOS)),exe,bin) |
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 main | |
| import ( | |
| "os" | |
| "strconv" | |
| "syscall" | |
| "unsafe" | |
| ) | |
| var mm []uint32 |
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
| if __name__ == "__main__": | |
| from datetime import datetime, timedelta | |
| from smbus import SMBus | |
| from sys import argv | |
| from time import sleep | |
| argc = len(argv) | |
| bus = SMBus(1 if argc < 2 else int(argv[1])) | |
| rop = "r" if argc < 3 else argv[2].lower()[0: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 main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "errors" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |
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
| @echo off | |
| pushd "%~dp0" | |
| rem enable gpedit on windows home (tested windows 10) | |
| dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum > pkgs.txt | |
| dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >> pkgs.txt | |
| for /f %%i in ('findstr /i . pkgs.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
| del pkgs.txt | |
| pause |
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 main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
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
| -- Get SMS summary from Gammu SMSD | |
| -- from almost all content tables. | |
| CREATE VIEW summary | |
| AS | |
| ( | |
| SELECT | |
| 'inbox' AS kind, | |
| ID AS id, | |
| ReceivingDateTime AS created, |
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
| aria2.server.lan { | |
| file_server | |
| encode gzip zstd | |
| root * /home/myself/Projects/aria2/docs | |
| @jsonrpc { | |
| path /jsonrpc | |
| header Upgrade websocket | |
| header Connection *Upgrade* | |
| } | |
| route { |
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
| """Downloads and extract the Visual C++ Redistributables. | |
| This is useful when working with minidump files as the user may be running | |
| with a new different version of the runtime. This script aims to maintain | |
| a copy of the various versions. | |
| Versions are normally added once I encounter them. | |
| This requires dark.exe from Wix (http://wixtoolset.org/releases/) and | |
| expand.exe (File Expansion Utility - this comes with Microsoft Windows). |