Skip to content

Instantly share code, notes, and snippets.

@Douile
Douile / stack_trace.md
Created March 1, 2021 15:53
CSGO 6296735 SIGSEGV stack trace

System: arch 5.11.2-zen1-1-zen fully up to date

Thread 1 "csgo_linux64" received signal SIGSEGV, Segmentation fault.
0x00007fffe24d4b50 in ?? ()
   from /mnt/s/SteamLibraryLinux/steamapps/common/Counter-Strike Global Offensive/bin/linux64/panorama_client.so
(gdb) info stack
#0  0x00007fffe24d4b50 in ?? ()
   from /mnt/s/SteamLibraryLinux/steamapps/common/Counter-Strike Global Offensive/bin/linux64/panorama_client.so
#1  0x00007fffe24c28d2 in ?? ()
   from /mnt/s/SteamLibraryLinux/steamapps/common/Counter-Strike Global Offensive/bin/linux64/panorama_client.so
@Douile
Douile / pollution.md
Last active November 6, 2020 13:32
Prototype pollution

A brief overview on prototype pollution

What is a prototype

Javascript is a prototypal language this means that all objects within it have a prototype that is shared between objects of the same type. The prototype contains methods and properties that are useful for all objects of that type. This prototype is accesible from objects via the __proto__ property.

For example: Number.prototype contains the method toFixed which converts the number to a fixed string. All numbers have this method

(1).toFixed === (-10.5).toFixed // true
@Douile
Douile / croc-send.sh
Created October 12, 2020 16:49
A simple bash function that reads from stdin then sends the input with croc
#!/bin/bash
# https://github.com/schollz/croc
croc-send() {
read -sp ">" tmp;
croc send --text "$tmp";
tmp="";
}
@Douile
Douile / USAGE.md
Last active July 4, 2020 14:16
A simple bash function to generate a sha512 integrity for any web content

Example usage

# Install dependencies (arch only)
sudo pacman -Ss openssl curl
# Download script
curl "https://gist.githubusercontent.com/Douile/44dc412992f31d28c9bb9ed0964623fa/raw/integrity.sh" -o "integrity.sh" && chmod u+x integrity.sh && source integrity.sh
# Run function
integrity https://github.com/Douile sha512
@Douile
Douile / clean_csgo_maps.ps1
Created June 3, 2019 20:01
Delete latent community server maps
$prefixes = @("surf_","bhop_","am_")
$csgodir = 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\maps'
foreach($prefix in $prefixes) {
Write-Output "Deleting $prefix maps..."
Get-ChildItem $csgodir -Filter ([regex]::escape($prefix) + "*") -File | Remove-Item
}
Write-Output "Done"
@Douile
Douile / add_multi_monitor.sh
Last active May 20, 2019 14:03
Add multi-monitor keybinds fast
#!/bin/sh
# wget -O - -o /dev/null https://gist.githubusercontent.com/Douile/2930b48298dfb7e0e32f97174fa4d5c8/raw/add_multi_monitor.sh | /bin/sh
i3_config=~/.i3/config
# Add i3 config bindsyms
echo "Adding keybinds"
if grep -q "bindsym \$mod+Shift+greater" $i3_config; then
echo "Greater than bind already exists"
else
@Douile
Douile / fix_dp.sh
Last active May 20, 2019 13:36
Fix my DP monitor
#!/bin/sh
# wget -O - -o /dev/null https://gist.githubusercontent.com/Douile/f807d2155b0bdd8caf1c7b2a855b7815/raw/fix_dp.sh | /bin/sh
# Make sure xrandr is installed
echo "Installing xrandr..."
sudo pacman -S arandr --needed
# Turn display off-and-on
# This is specific to my setup
echo "Toggling DP monitor..."
@Douile
Douile / README.md
Last active February 1, 2024 19:24
Toggle keys using logitech gaming software

Toggle buttons using Logitech gaming software

Version 8.97.88

LUA API Version 8.45


The code below can be used in the script section of profiles in logitech gaming software to toggle pressing keys.

@Douile
Douile / tokens.md
Last active March 3, 2024 02:26
Getting epic games tokens (fortnite)

A guide on how to packet sniff launcher and fortnite tokens

With images

Step by step

  1. Install and run Fiddler 4
  2. Enable Https capture and decryption
  • Open tools menu image
  • Open options
@Douile
Douile / Plane9.md
Last active February 10, 2023 15:33
My plane9 playlist

Plane9 logo

Plane 9

Plane 9 is a openGL audio Visualization program for windows. You can download it from their website. It will visualize any audio playing out of your system, I recommend it. Above is a playlist I created using my favorite default scenes.

How to use

You can launch the Plane9 editor and preview playlist or set them as screensavers. However I recommend creating a batch file to run a windowed preview of the playlist. Mine looks like this: