Skip to content

Instantly share code, notes, and snippets.

View kbbgl's full-sized avatar

Ko Ga kbbgl

View GitHub Profile
@kbbgl
kbbgl / heketiCheatSheet.md
Created June 4, 2020 16:41
[heketi cheatsheet] #storage #heketi #glusterfs #gluster

heketi-cli

Get list of clusters

heketi-cli cluster list

Get nodes and volumes for specific cluster

heketi-cli cluster info 87558546442e5cb969384ccd4dda7b2d

Get information about the node (state, size used/free)

@kbbgl
kbbgl / pt.bat
Created June 3, 2020 21:07
[powertoys important keys] #windows #powertoys
Win + '`' => launch layout manager
Alt + Space => launch spotlight search
@kbbgl
kbbgl / windbg_init.bat
Created June 3, 2020 18:53
[initialize windbg and retrieve dump of memory with objects] #memorydump #windbg #windows
# load symbols
.loadby sos clr
# command will give you a list of all of your objects, how many of each type, and how much memory each is using
!dumpheap –stat
@kbbgl
kbbgl / logoutAll.ps1
Created May 25, 2020 06:40
[logout all users in Windows] #windows #powershell #admininistration
quser
# Response
USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME
>administrator console 2 Active none 9/22/2020 11:04 AM
# logs out user session
logout 2
@kbbgl
kbbgl / scale.sh
Created May 20, 2020 09:31
[scale down deployment/rs] #kubectl #kubernetes
kubectl -n sisense scale deployment backup-debug --replicas 0
@kbbgl
kbbgl / listTarFiles.sh
Last active May 19, 2020 12:16
[list files in tar] #tar #bash #files
tar -tvf file.tar.gz
@kbbgl
kbbgl / discover.sh
Created May 18, 2020 22:25
[get devices on network] #hacking #network #enumeration
sudo netdiscover 192.168.1.0/24
@kbbgl
kbbgl / modTimeout.sh
Created May 18, 2020 09:04
[Modify default 40 minute finalization timeout] #build #sisense #si
si config set -key base.serviceCallTimeout -new-value TIMEOUT_IN_MS
@kbbgl
kbbgl / listZipFiles.sh
Created May 18, 2020 08:44
[list files in zip (without unzipping)] #bash #zip
unzip -l FILENAME.zip
@kbbgl
kbbgl / scanPorts.md
Last active May 24, 2020 17:19
[scan for open ports] #enumeration #hacking #nmap #masscan

Either use nmap:

nmap -T4 -p- 192.168.1.1 -A`

Or masscan:

masscan -p1-65535 192.68.1.1