Here's a set of links I've curated that have helped me learn more about Golang.
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
run: | |
deadline: 30s | |
skip-dirs: | |
- "vendor" | |
- "go-build" | |
- "\\.gen" | |
- ".*/\\.tmp/.*$" | |
- ".*/go-build/\\.go/.*$" | |
- ".*/go-build/\\.tmp/.*$" | |
- ".*/vendor/.*$" |
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
import java.util.Random; | |
import java.util.Arrays; | |
public class TheBestRandomWeighted { | |
private static final Random rand = new Random(); | |
public static void main(String[] argv) { | |
int low = 0; | |
int dip = 12; | |
int peak = 88; |
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
########## | |
# Tweaked Win10 Initial Setup Script | |
# Primary Author: Disassembler <[email protected]> | |
# Modified by: alirobe <[email protected]> based on my personal preferences. | |
# Version: 2.20.1, 2018-07-23 | |
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
# Tweak difference: | |
# | |
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ... |
I hereby claim:
- I am gen0cide on github.
- I am alexlevinson (https://keybase.io/alexlevinson) on keybase.
- I have a public key ASDtinyE_oBpdPNH-kzSWv3fshnW1QYX8gVNE8BBTw2oJQo
To claim this, I am signing this object:
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
$Searcher = New-Object -ComObject Microsoft.Update.Searcher | |
$RemoveCollection = New-Object -ComObject Microsoft.Update.UpdateColl | |
$SearchResult = $Searcher.Search("IsInstalled=1") | |
$SearchResult.Updates | % { $RemoveCollection.Add($_) } | |
if ($RemoveCollection.Count -gt 0) { | |
$Installer = New-Object -ComObject Microsoft.Update.Installer | |
$Installer.Updates = $RemoveCollection | |
$Installer.Uninstall() | |
} else {} |
- Add TOTP keys to a yaml file in
~/.mfa
. For example:
aws: k4ur lrri br6f mbzo l6dv gyx5 u2yg cd7n
google: 25gq xtax hzoz wsxe c7pd 34pf 44dq abzl
- Copy the
mfa.py
script to~/bin
(or elsewhere, adjusting your alias appropriately). - Create the alias
alias mfa="~/bin/mfa.py --config=~/.mfa"
in~/.bashrc
,~/.zshrc
, or wherever it can be sourced conveniently.
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
# alias:northwind | |
db1.example.com:5432:northwind:postgres:hunter2 | |
# alias:mainframe | |
db1.example.com:5432:mainframe:dave:password123 | |
db1.example.com:5432:unaliased:postgres: |
I hereby claim:
- I am gen0cide- on github.
- I am alexlevinson (https://keybase.io/alexlevinson) on keybase.
- I have a public key whose fingerprint is 393F E95C 9B6E 8DFE 5932 281D B95C 2373 45F0 3362
To claim this, I am signing this object:
I hereby claim:
- I am gen0cide- on github.
- I am alexlevinson (https://keybase.io/alexlevinson) on keybase.
- I have a public key whose fingerprint is 2A7C A2F5 13C7 4BEB D027 DD7A EC13 29EE 5C34 7828
To claim this, I am signing this object:
NewerOlder