Skip to content

Instantly share code, notes, and snippets.

View aus's full-sized avatar

aus aus

  • Amazon Web Services
  • Texas
View GitHub Profile
@aus
aus / main.cpp
Created February 21, 2020 17:01 — forked from monoxgas/main.cpp
Adaptive DLL Hijacking - Patching LoadLibrary Return
#include <Windows.h>
#include <intrin.h>
#include <string>
#include <TlHelp32.h>
#include <psapi.h>
BOOL PatchTheRet(HMODULE realModule) {
// Get primary module info
@aus
aus / keybase.md
Created October 4, 2017 19:15
keybase proof

Keybase proof

I hereby claim:

  • I am aus on github.
  • I am aus (https://keybase.io/aus) on keybase.
  • I have a public key ASBEuFWYNv-w_3MQrfS8qS9ylFyTm_CD9sDJELR50Cxqlwo

To claim this, I am signing this object:

@aus
aus / RDP-Disconnect.ps1
Created September 10, 2017 00:43
Disconnect from a RDP session without locking the screen
# RDP-Disconnect.ps1
# Disconnect from a RDP session without locking the screen. Useful for headless gaming machines.
# Tested with Windows 10 only
# Elevate to Admin
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
# Find active session and switch to console
$session = query session | sls 'Active'
$sessionId = $session.toString().Split(" ",[System.StringSplitOptions]::RemoveEmptyEntries)[2]
@aus
aus / rclone_install_beta.sh
Last active January 19, 2023 03:57
lastest beta rclone install script
#!/bin/bash
mkdir /tmp/rclone_install
cd /tmp/rclone_install
curl -s -O https://beta.rclone.org/rclone-beta-latest-linux-amd64.zip
unzip -q rclone-beta-latest-linux-amd64.zip
cd rclone-*-linux-amd64
@aus
aus / production.log
Created March 22, 2013 18:28
Log file showing gitlab looking for the charlock_holmes gem in the wrong place.
Started GET "/aus/hello-world/commit/43572c69b452b91eb0ce0d2ffbde9df2490f918b" for 127.0.0.1 at 2013-03-22 13:21:23 -0400
Processing by CommitController#show as HTML
Parameters: {"project_id"=>"aus/hello-world", "id"=>"43572c69b452b91eb0ce0d2ffbde9df2490f918b"}
Rendered commits/_commit_box.html.haml (4.6ms)
Rendered commits/_diff_head.html.haml (0.2ms)
Rendered commits/_diffs.html.haml (2.4ms)
Rendered commit/show.html.haml within layouts/project_resource (17.4ms)
Completed 500 Internal Server Error in 60ms
ActionView::Template::Error (cannot read magic file `/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.9/ext/charlock_holmes/dst/share/misc/magic' (Permission denied)):