Skip to content

Instantly share code, notes, and snippets.

View stalkerg's full-sized avatar
🎯
Focusing

Yury Zhuravlev stalkerg

🎯
Focusing
View GitHub Profile
@hydren
hydren / custom_mix_pitch_func.h
Last active April 26, 2023 08:22
SDL_mixer chunk pitching C example
/*
* custom_mix_pitch_func.h
*
* Created on: 10 de jan de 2018
* Author: carlosfaruolo
*/
// Mix_EffectFunc_t callback that redirects to handler method (handler passed via user_data)
// Processing function to be able to change chunk speed/pitch.
// AUDIO_FORMAT_TYPE depends on the current audio format (queryable via Mix_QuerySpec)
@CTurt
CTurt / gist:27fe7f3c241f69be19e5
Created December 14, 2015 19:24
PS4 kernel exploit tease (root FS dump, and list of PIDs)
[+] Entered shellcode
[+] UID: 0, GID: 0
[DIR]: .
[DIR]: ..
[DIR]: adm
[DIR]: app_tmp
[DIR]: data
[DIR]: dev
[DIR]: eap_user
[DIR]: eap_vsh
@guillaumepiot
guillaumepiot / weeks_in_month.coffee
Last active May 24, 2024 06:13
Get all the weeks in a given month and year using Moment.js
# year and month are variables
year = 2015
month = 7 # August (0 indexed)
startDate = moment([year, month])
# Get the first and last day of the month
firstDay = moment(startDate).startOf('month')
endDay = moment(startDate).endOf('month')
# Create a range for the month we can iterate through