Skip to content

Instantly share code, notes, and snippets.

@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(
@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
@denizssch
denizssch / XpSerials.txt
Created July 21, 2019 00:13
Windows XP ALL Serial Keys :) (For testing purpose [Ex: VM or PenTest])
FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8
Windows XP PRO Corporate serial number S/N: Key: MQPWW-PGVKX-YPMKG-8DH3G-KC8PW
windows xp home edition serial number S/N: 034634-262024-171505-828316-729010-413531-800424-400442
Windows XP 64 serial number S/N: B2RBK-7KPT9-4JP6X-QQFWM-PJD6G
Windows XP serial number S/N: K6C2K-KY62K-DQR84-RD4QV-QB74Q
Windows XP Professional 64-bit Corporate Edition 5.2.3790.1830 serial number S/N: VCFQD-V9FX9-46WVH-K3CD4-4J3JM
Microsoft Windows XP Professional SP2 serial number S/N: YY8F2-3CKVQ-RKTRG-6JMDR-9DTG6
Windows XP Professional Service Pack 1 sp1 serial number S/N: F46YY - 2R8VQ - R8GMY - 926VK - 6BQ73
Windows XP Pro serial number S/N: KBWR7-76BD8-J7MDQ-KKG&C-V9Q2J
Windows:
i> 00003380 Build: linux / 88b5899952eeca6021c59ce390637e122635841f on Jul 19 2019
i> 00003380 Content root: XXXXX
i> 00003380 Initializing Vulkan 1.1.0...
i> 00003380 Found 4 global layers:
i> 00003380 - VK_LAYER_NV_optimus (spec: 1.1.70, impl: 0.0.1)
i> 00003380 NVIDIA Optimus layer
i> 00003380 - VK_LAYER_VALVE_steam_overlay (spec: 1.1.73, impl: 0.0.1)
i> 00003380 Steam Overlay Layer
i> 00003380 - VK_LAYER_VALVE_steam_fossilize (spec: 1.1.73, impl: 0.0.1)