Skip to content

Instantly share code, notes, and snippets.

@lrvick
lrvick / github-troll.md
Last active May 24, 2025 01:11
Trolling Github's DMCA repo with their own security flaws.
@LWSS
LWSS / gist:9d2cd3205d197545d64fd27ee897fd53
Created April 29, 2020 18:37
wip cstrike building instructions
####################### INSTALLING GCC 4.6.3( OPTIONAL AND NOT RECOMMENDED! SKIP THIS ) #######################
mkdir -p /opt/gcc-4.6/
cd /opt/gcc-4.6/
wget http://ftp.gnu.org/gnu/gcc/gcc-4.6.3/gcc-4.6.3.tar.gz
tar -xvf gcc*
cd gcc-4.6.3/
# we need to make some changes to get this running on new linux
# I have conveniently made some patches for you
# https://gist.github.com/LWSS/fae2d3c34205dc0074ddd9ed767e7e99
@JeffBrownTech
JeffBrownTech / PromptMethod-dotNET.ps1
Created March 26, 2020 12:41
Create a PowerShell prompt using .NET classes
function Remove-MyItem {
[CmdletBinding()]
param(
[Parameter(Mandatory, Position = 1)]
[string]
$Path
)
$item = Get-Item -Path $Path
@NeKzor
NeKzor / sixense_patch.js
Created November 29, 2019 21:28
Play Portal 2 Sixense Perceptual Pack without Senz3D camera.
const fs = require('fs');
const client_sixense = process.argv[2] || './portal2_sixense/bin/client_sixense.dll';
const module = fs.readFileSync(client_sixense);
const patch = [
[
// Fix crash in init
// cmp ecx 69
<html>
<head> </head>
<body>
<script src="object.keys.js"></script>
<script src="xRegistry.js"></script>
<script>
// Change ip here to reflect you PS3 ip
// Navigate this page in the browser to see the result in the console
// (WORKS ON PS3) Desktop used only to access to the console
console.log(
@Sanix-Darker
Sanix-Darker / [PYTHON]checkIfProcessRunning.py
Last active June 15, 2025 20:22
[PYTHON] Check if a process is running by it's name
# By Sanix darker
# With this script you can check if a process is running by it's name
#
# Install dependencies by hiting : pip install psutil
#
# Then launch the script : python checkIfProcessRunning.py
import psutil
@fabianfett
fabianfett / Change Xcode version in GitHub Actions
Created August 21, 2019 09:37
How to change the Xcode version in GitHub Actions
# Change Xcode version in GitHub Actions
As of today (2019-08-21) I haven't found any documentation on changing Xcode versions when
using GitHub actions. So I checked the applications folder and everything we need is
already there. 🤩
```
> ls -n /Applications/ | grep Xcode*
lrwxr-xr-x 1 0 80 30 Aug 2 19:31 Xcode.app -> /Applications/Xcode_10.2.1.app
drwxr-xr-x 3 501 20 96 Oct 20 2018 Xcode_10.1.app
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#define FUSE_IMAGE_SIZE 0x400
#define ROM_BASE 0x100000
#define FUSE_BOOTROM_PATCH_SIZE_T210_START_BIT 13
@douglascayers
douglascayers / github-copy-labels.sh
Last active February 23, 2025 20:35
Export and import GitHub labels between projects by running bash script with jq and curl. Uses GitHub REST API. Requires personal access token.
# This script uses the GitHub Labels REST API
# https://developer.github.com/v3/issues/labels/
# Provide a personal access token that can
# access the source and target repositories.
# This is how you authorize with the GitHub API.
# https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line
GH_TOKEN="YOUR_TOKEN"
# If you use GitHub Enterprise, change this to "https://<your_domain>/api/v3"
@SciresM
SciresM / __patcher.py
Last active December 5, 2022 08:58
quick and dirty pokemon masters patcher
from struct import unpack as up, pack as pk
import arm64, os, sys
TEXT_START_OFFSET = 0x507300
TEXT_END_OFFSET = 0x32FEBF0
RWDATA_START = 0x3A9F000
ENCTABLE_START = 0x3F2C238
ENCTABLE_END = 0x3F957B8