Skip to content

Instantly share code, notes, and snippets.

View ctrl-freak's full-sized avatar

Bryce Sheehan ctrl-freak

View GitHub Profile
@ctrl-freak
ctrl-freak / nethunter_grouper-talapia.md
Last active October 26, 2023 20:25
Install Kali Nethunter on Nexus 7 (2012) (grouper, talapia)

Unsupported

The Nexus 7 (2012) tablet is no longer supported by Offensive Security; I didn't have any luck with kernel/kali distributions, so attempted upgrading.

Problems

  • Installing Open GApps slows the device to a crawl, haven't been able to install an app without the device freezing (though may need to let it sort itself out for longer)
  • Attempted to avoid GApps by installing a browser from APK (via adb)
@ctrl-freak
ctrl-freak / oracle_n8n_postgres.sh
Last active January 13, 2022 10:15
Install n8n.io and PostgreSQL on Docker on Oracle Cloud Ubuntu, protected by Auth0
# This is a string of commands, not a developed script.
# Set a password to be used for the PostgreSQL authentication
POSTGRES_USER='n8n'
POSTGRES_PASSWORD=''
# Create Instance
# Attach Block Storage
# Add a public IP to the NIC
# Edit the Instance > Virtual Cloud Network > Security Lists > Default Security Lists
@ctrl-freak
ctrl-freak / gist:d0cef2cc0d88cb3ed64bd6fc0d08fb0d
Created August 30, 2019 01:11
Disable Adobe Reader XI Protected Mode at Startup Keyboard Shortcuts
Alt+E,N
Home,S,S,S
Alt+M,Y
Preferences
Security (Enhanced)
Enable Protected Mode at startup
http://www.efferen.nl/2012/03/solved-adobe-reader-x-hangs-after-opening-a-pdf-file/
https://www.adobe.com/devnet-docs/acrobatetk/tools/VirtualizationGuide/citrix.html
@ctrl-freak
ctrl-freak / homelab.txt
Last active December 23, 2020 02:01
Homelab Software
Greenplum (Massively Parallel Postgres for Analytics)
https://greenplum.org/download/
Vagrant (Development Environments Made Easy)
https://www.vagrantup.com/
Odoo (Open Source ERP and CRM)
https://www.odoo.com/
Apache Hadoop
@ctrl-freak
ctrl-freak / removesophos.ps1
Created August 1, 2019 00:31
Sophos Endpoint Removal Script
# https://www.reddit.com/r/sysadmin/comments/ck677f/sophos_removal_script/
# https://pastebin.com/4eRc5WpA
#Sophos Endpoint Removal Script
#Usage examples:
# .\removesophos.ps1 # Just logs all messages to screen and file.
# .\removesophos.ps1 -Remove YES # Removes all Sophos components and logs all messages to screen and file.
# .\removesophos.ps1 -Password 1234567 -Remove YES # Password will be provided to SEDCli.exe if TP is on and SEDCLi.exe exists.
# .\removesophos.ps1 -ErrorOnly YES # Only print items that exist (errors) on screen. Still logs all to file.
@ctrl-freak
ctrl-freak / procura-hacc-mds-letters-of-name.sql
Created January 16, 2018 02:21
Procura HACC MDS Statistical Linkage Key SQL SELECT
-- Government of Western Australia
-- Department of Health
-- HACC – Minimum Data Set
-- http://ww2.health.wa.gov.au/Articles/F_I/HACC-minimum-data-set
-- http://ww2.health.wa.gov.au/~/media/Files/Corporate/general%20documents/HACC/PDF/WA_MDS_User_Guide2014.pdf
SELECT
UPPER(CONCAT(
SUBSTRING(
LEFT(CONCAT(
@ctrl-freak
ctrl-freak / fizzbuzz.php
Created August 3, 2017 10:15
FizzBuzz.php
<?php
$check = array(
3 => 'Fizz',
5 => 'Buzz',
);
for ($i = 1; $i <= 100; $i++) {
$output = '';
@ctrl-freak
ctrl-freak / screenshot.bat
Created August 2, 2017 01:00
Pull Screenshot from Android through ADB with DateTime Filename
@echo off
rem https://stackoverflow.com/questions/7727114/batch-command-date-and-time-in-file-name
rem %I if running in Command Prompt, %%I is for batch
for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do @set datetime=%%I
set datetime=%datetime:~0,8%-%datetime:~8,6%
set filename=screen_%datetime%.png
rem https://blog.shvetsov.com/2013/02/grab-android-screenshot-to-computer-via.html
@ctrl-freak
ctrl-freak / elevate.ps1
Created July 10, 2017 01:56
Elevate PowerShell
# Ask for elevated permissions if required
# https://github.com/Scine/Powershell/blob/master/ReclaimWindows10.ps1
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
}
@ctrl-freak
ctrl-freak / ExtractHL.vbs
Created May 22, 2017 00:20
Extract URLs from Hyperlinked cells in Excel
'http://howtouseexcel.net/how-to-extract-a-url-from-a-hyperlink-on-excel
Sub ExtractHL()
Dim HL As Hyperlink
For Each HL In ActiveSheet.Hyperlinks
HL.Range.Offset(0, 1).Value = HL.Address
Next
End Sub