Skip to content

Instantly share code, notes, and snippets.

View valentinbreiz's full-sized avatar

valentinbreiz valentinbreiz

View GitHub Profile
@paullaffitte
paullaffitte / install-csfml.sh
Last active June 4, 2023 08:46
CSFML installer for Ubuntu
#!/usr/bin/env bash
set -e
SFML_VERSION='2.2'
GLEW_VERSION='1.10.0'
get_file()
{
local file_to_get="$1"
@2much4u
2much4u / PS4_405_System_Notification_Types.txt
Created February 7, 2018 03:49
Message types for sceSysUtilSendSystemNotification functions on PS4 version 4.05
0: -Blank-
1: Unknown USB device connected.
2: Too many USB hubs connected.
3: Connect this device using a USB cable, or connect it again.
4: %s battery level low.
5: %s disconnected.
6: Too many USB devices connected.
7: Cannot connect another Bluetooth device.
8: -Blank-
9: Cannot connect another controller.
@Cryptogenic
Cryptogenic / js_shellcode.py
Created May 27, 2018 21:52
A script to convert payloads into JS shellcode
#!/usr/bin/python
import sys
import struct
import argparse
def swap32(i):
return struct.unpack("<I", struct.pack(">I", i))[0]
filename = None
@Fire30
Fire30 / poc.c
Created December 29, 2019 21:39
#include <cstring>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/cdefs.h>
#include <sys/mman.h>
#include <sys/uio.h>
#include <unistd.h>
unsigned long find_stackbase()
@meuchel
meuchel / sdlx11.cpp
Last active July 14, 2024 01:52
Create transparent native linux x11 xlib openGL window and use it with SDL2 or SDL_GPU. All events are handled by SDL_PollEvent
#include "sdlx11.hpp"
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/extensions/Xrender.h>
#include <GL/glx.h>
#include <SDL2/SDL.h>
SDL_Window*
SDLx11::SDL_CreateWindowEx(const char *title, int x, int y, int w, int h, bool fullscreen, double frame_alpha)
{
@hieplpvip
hieplpvip / elsaid.sh
Created September 5, 2020 06:20
Converting an EISAID number to text/EISAID string (and back)
#!/bin/bash
if [[ "$1" == "" ]]; then
echo "usage: eisaid.sh 0x[eisa-number], or eisaid.sh [eisaid-string]"
exit 0
fi
if [[ "$1" == 0x* ]]; then
let vendor="$1 & 0xFFFF"
let device="$1 >> 16"