Skip to content

Instantly share code, notes, and snippets.

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

@judge2020
judge2020 / change.ps1
Last active May 6, 2018 20:04
Powershell change background
Function Update-Wallpaper {
Param(
[Parameter(Mandatory=$true)]
$Path,
[ValidateSet('Center','Stretch','Fill','Tile','Fit')]
$Style
)
Try {
if (-not ([System.Management.Automation.PSTypeName]'Wallpaper.Setter').Type) {
@judge2020
judge2020 / FileUnblock.cs
Last active January 20, 2017 14:57
unblock file
public class FileUnblocker {
[DllImport("kernel32", CharSet = CharSet.Unicode, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool DeleteFile(string name );
public bool Unblock(string fileName) {
return DeleteFile(fileName+ ":Zone.Identifier");
}
}
@judge2020
judge2020 / ImagesOnly.py
Created February 19, 2017 19:17
Delete non-image attachments discord - discord.py
#!/usr/bin/python
# python 3
# requires https://github.com/Rapptz/discord.py / "pip install discord.py"
# licensed under the MIT license. For more information view LICENSE.md
import discord
import asyncio
import os.path
import re
import sys
@judge2020
judge2020 / duckyscript.txt
Created March 31, 2017 22:52
Ducky: turnoff windows defender, download and execute a file
REM Windows 10: Disable Windows Defender with Powershell
REM Author: Judge2020
REM author website: Judge2020.com
REM video: https://youtu.be/XQyB_bKjbgU
REM
REM let the HID enumerate
DELAY 2000
GUI r
DELAY 300
REM my best attempt at a elevated powershell instance

Starting to look really good for the most part! :)

Haven't looked at the code yet but here are some UI/UX changes I would like to see:

Installed

  • Updating plugins freezes the app
  • "Updating" and "Update installed" still look like hyperlinks
  • "Update installed" is clickable and causes the update to run again
  • "Update installed" should probably say "Restart required" and restart the app when clicked (Maybe "Installed. Restart now"? not entirely sure on wording, something like that though)
@judge2020
judge2020 / crash logs.md
Last active June 10, 2017 21:59
Posting Crash logs in Altis

How to find a crash log

  1. open launcher
  2. click options
  3. click logs folder
  4. find latest log using modified date.

Launcher: launcher_log.txt

game: project-altis-****.log

@judge2020
judge2020 / readme.md
Last active September 21, 2022 01:58
Premium card hacks in Hearthstone

This is the result of a afternoon editing code in Hearthstone's assembly-csharp.dll using DLSpy.

This is not meant to be a how-to or tutorial, meerly my findings. If you're smart enough to figure out what's in here you know that whatever you do isn't because of me. IF you do think that, you're stupid so turn back.

I fired up DLSpy and searched for premium. At first, I just set everything I could to TAG_PREMIUM.golden. This was also in collection manager methods so things started to break.

https://youtu.be/tzxruiqFoXQ

I then used Battle.net's scan and repair tool fix things up and start over. I wanted to get in-game with all golden cards and see how cool they all work.

@judge2020
judge2020 / explorer.sh
Last active May 26, 2019 14:38
Open explorer at folder - bash script for Bash on Ubuntu On Windows
#!/bin/bash
#
# START CONFIG
#
# Change driveletter below if windows is installed on something other than the C drive
driveletter=c
#
# END CONFIG
#
#
@judge2020
judge2020 / keybase.md
Created October 4, 2017 23:15
keybase.md

Keybase proof

I hereby claim:

  • I am judge2020 on github.
  • I am judge2020 (https://keybase.io/judge2020) on keybase.
  • I have a public key ASCvSL6rMQk3mT_v2_SN751QzumxPMJSBpAOMzOk1fWsrgo

To claim this, I am signing this object: