Skip to content

Instantly share code, notes, and snippets.

View unstppbl's full-sized avatar
🐯

unstppbl

🐯
View GitHub Profile
@unstppbl
unstppbl / unstppbl.cfg
Last active June 13, 2021 08:11
ma_csgo_config
viewmodel_fov 68; viewmodel_offset_x 2.5; viewmodel_offset_y 0; viewmodel_offset_z -1.5; viewmodel_presetpos 3; cl_viewmodel_shift_left_amt 1.5; cl_viewmodel_shift_right_amt 0.75; viewmodel_recoil 0; cl_righthand 1;
cl_bob_lower_amt 21; cl_bobamt_lat 0.33; cl_bobamt_vert 0.14; cl_bobcycle 0.98;
-tickrate 128 +fps_max 0 -novid -nojoy -high +cl_showfps 1 +cl_forcepreload 1 -forcenovsync -freq 240 -refresh 240 -noforcemaccel -noforcemspd -noforcemparms +cl_interp 0 +cl_interp_ratio 1 +cl_updaterate 128 +mp_do_warmup_offine 1
alias "+jumpthrow" "+jump;-attack"; alias "-jumpthrow" "-jump"; bind c "+jumpthrow"
bind "MOUSE4" "use weapon_smokegrenade"
bind "MOUSE5" "use weapon_molotov;use weapon_incgrenade"
@unstppbl
unstppbl / snx_instruction.md
Last active August 15, 2021 13:54
Fedora 34 snx installation
@unstppbl
unstppbl / kubectl.sh
Created March 24, 2020 12:55
Kubectl cmds
# list all pods
kubectl -n dev get pods
# list all config maps (CM) for env vars etc.
kubectl -n dev get cm
# get logs of pod
kubectl -n dev logs -f <pod name>
# get content of CM
@unstppbl
unstppbl / go_time_parsing.md
Last active May 7, 2024 22:06
Parsing custom time layout in Golang

There are some key values that the time.Parse is looking for.

By changing:

test, err := time.Parse("10/15/1983", "10/15/1983")

to

@unstppbl
unstppbl / struct.go
Created January 22, 2020 09:52
Helpers to convert from pb.Struct to map[string]interface
// Copyright 2017 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,

Keybase proof

I hereby claim:

  • I am unstppbl on github.
  • I am unstppbl (https://keybase.io/unstppbl) on keybase.
  • I have a public key ASAJVwJ_h7cEOGQQ1jgb3IML0juqUSulxsn0_z-WXjsjXgo

To claim this, I am signing this object:

@unstppbl
unstppbl / netstat.sh
Created October 25, 2019 18:22
shell command to print tcp connections status
while true; do netstat -ant | awk '{print $6}' | sort | uniq -c | sort -n; sleep 1; clear; done
@unstppbl
unstppbl / formatter.go
Created February 25, 2019 10:39
Basic text files formatter
package main
import (
"bufio"
"log"
"os"
"strings"
)
func checkErr(err error) {
@unstppbl
unstppbl / emailExtract.go
Created October 30, 2018 09:13
Script to extract unique emails from file, assuming there is only one per line
package main
import (
"bufio"
"os"
"regexp"
)
func checkErr(err error) {
if err != nil {
@unstppbl
unstppbl / cleaner.go
Created September 8, 2018 06:33
Script to clear Yara rules (remove duplicates, move files with syntax errors, etc.)
package main
import (
"bufio"
"bytes"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"