Skip to content

Instantly share code, notes, and snippets.

View gen0cide's full-sized avatar
🇺🇦
Slava Ukraini

Alex Levinson gen0cide

🇺🇦
Slava Ukraini
View GitHub Profile
@gen0cide
gen0cide / golangci-lint.yml
Created September 1, 2019 00:38
GolangCI Config
run:
deadline: 30s
skip-dirs:
- "vendor"
- "go-build"
- "\\.gen"
- ".*/\\.tmp/.*$"
- ".*/go-build/\\.go/.*$"
- ".*/go-build/\\.tmp/.*$"
- ".*/vendor/.*$"
@gen0cide
gen0cide / TheBestRandomWeighted.java
Created May 16, 2019 01:24
Interview Question: Explain this.
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;
@gen0cide
gen0cide / reclaimWindows10.ps1
Created July 28, 2018 20:30 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> 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 ...

Keybase proof

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:

$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 {}
@gen0cide
gen0cide / README.md
Created September 16, 2016 19:01 — forked from davehughes/README.md
.mfa

Setup:

  • 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.
@gen0cide
gen0cide / .pgpass
Created June 3, 2016 00:43 — forked from davehughes/.pgpass
psql connection aliasing/management
# alias:northwind
db1.example.com:5432:northwind:postgres:hunter2
# alias:mainframe
db1.example.com:5432:mainframe:dave:password123
db1.example.com:5432:unaliased:postgres:
@gen0cide
gen0cide / keybase.md
Created December 24, 2014 01:07
keybase.md

Keybase proof

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:

Keybase proof

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: