Skip to content

Instantly share code, notes, and snippets.

View CanadianJeff's full-sized avatar

Jeffery Wilkins CanadianJeff

  • Vancouver BC CANADA
View GitHub Profile
@CanadianJeff
CanadianJeff / scan_profile.usp
Created May 4, 2019 13:22
Zenmap Scan Profile
[All TCP ports scan]
command = nmap -sS -p 1-65535 -Pn
description = Scan all ports on a host.
[Common TCP connect scan]
command = nmap -sT -p 17,19,21,22,23,25,26,37,53,80,88,110,113,123,135,137,138,139,143,443,444,445,548,554,843,993,995,1027,1030,1064,1080,1194,1221,1433,2082,2083,2084,2086,2087,2095,2096,3074,3306,3333,3389,3784,4899,5631,5800,5900,6665-6669,6697,8000,8080,8088,10000,17500,32764 -n -Pn -r
description = Scan Common Used Ports
[Common TCP syn scan]
command = nmap -sS -p 17,19,21,22,23,25,26,37,53,80,88,110,113,123,135,137,138,139,143,443,444,445,548,554,843,993,995,1027,1030,1064,1080,1194,1221,1433,2082,2083,2084,2086,2087,2095,2096,3074,3306,3333,3389,3784,4899,5631,5800,5900,6665-6669,6697,8000,8080,8088,10000,17500,32764 -n -Pn -r
// Left 4 No More Room In Hell 2 CFG (Version 0.9.1 BETA)
motdfile "l4nmrih2_motd.txt"
hostfile "l4nmrih2_banner.txt"
hostname "Left 4 No More Room In Hell 2"
// Extra Tweaks
sm_cvar sv_noclipaccelerate 9.5 // Needed For Noclip
// Director Tweaks
sm_cvar director_no_bosses 0 // Disables Director Tanks (Final Maps Need Tanks!!!!)
@CanadianJeff
CanadianJeff / firewall.user
Last active March 7, 2022 03:42
NEW FIREWALL
#!/bin/sh
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.
# Internal uci firewall chains are flushed and recreated on reload, so
# put custom rules into the root chains e.g. INPUT or FORWARD or into the
# special user chains, e.g. input_wan_rule or postrouting_lan_rule.
. /lib/functions/network.sh
@CanadianJeff
CanadianJeff / scan.sh
Created February 27, 2022 06:30
Lakka TV Playlist Scanner /storage/playlists
#!/bin/bash
#
# Libretro playlist builder
#
# Usage:
# scan.sh "Files path" "Core" "Core name" "Playlist filename" ["Playlists path"]
#
# Example:
#./scan.sh "/storage/roms/arcade/*.zip" "/tmp/cores/fba_libretro.so" "Arcade (FB Alpha - SVN)" "FB Alpha - Arcade Games.lpl" "/storage/playlists/"
function OnGameEvent_player_connect(params){
if(!params.bot){
local log = "Player " + params.name + " connected from " + params.address + " with SteamID: " + params.networkid
printl(log)
local file = FileToString("connect_log.txt")
if(file == null){
StringToFile("connect_log.txt", log)
} else {
#!/bin/bash
while read -r a b; do
echo "\"$a\",\"$b\"" >> RESOURCE_OFFSETS.TXT # dump offest and length into file
if [ ! -f "$a.AUD" ] ; then # check if the file does not already exist
dd if=../RESOURCE.AUD of="$a".AUD bs=1 count="$b" skip="$a" iflag=skip_bytes,count_bytes # extract the raw audio
ffmpeg -nostdin -loglevel fatal -i "$a".AUD "$a".ogg # convert into modern format
else
echo "File $a.AUD Already Exists Skipping........"
fi
done < <(awk -F'[^0-9]*' '{if (NR!=1) {print $1$2$3$4" "$5$6}}' Logfile.CSV); # parse procmon csv logs
-- garrysmod/addons/ulx_cheat/lua/ulx/modules/sh/hl2cheat.lua
FCVAR_DEVELOPMENTONLY = bit.lshift(1,1)
local function undev(name)
local cvar = GetConVar(name)
if cvar and cvar.SetFlags then
cvar:SetFlags (bit. band (cvar:GetF1ags(), bit.bnot(FCVAR_DEVELOPMENTONLY)))
end
end
undev("anim_showstate")
undev("anim_showstatelog")
If (!A_IsAdmin){
Run *RunAs "%A_AhkPath%" "%A_ScriptFullPath%"
}
262MACenterLayout()
{
MyCenterWindow(2064, 1288, 2048, 1280) ; Client Size Should Be 2048x1280 8:5 1:1
}
QWXGACenterLayout()
//-----------------------------------------------------
Msg("Activating Mutation 16 Extra Hunters\n");
::mapName <- Director.GetMapName().tolower()
::survivorSet <- Director.GetSurvivorSet()
::ghostModeEnabled <- false
::Debug <- true
::devs <- {}
@CanadianJeff
CanadianJeff / l4d2_autobunnyhop.c
Created November 7, 2021 05:22
l4d2_autobunnyhop.c
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;