Skip to content

Instantly share code, notes, and snippets.

We're going to create a preset patch using this guide.
Technical Specification for OP-XY Patch JSON File Format
1. Introduction
1.1 Purpose
The purpose of this document is to provide a comprehensive technical specification for the JSON file format used to store and exchange patch data on the OP-XY device. This specification aims to standardize the structure and content of patch files, ensuring compatibility and consistency across different patches, whether they are synth presets, drum kits, or sample-based instruments. By adhering to this format, developers, sound designers, and users can create, modify, and share patches efficiently and reliably.
1.2 Overview
#!/bin/bash
# Define the VMDK headers in ASCII and their corresponding hexadecimal values
thick_header="4B 44 4D 56" # "KDMV" in hex (for thick provisioned VMDK)
thin_header="23 20 44 69 73 6B" # "# Disk DescriptorFile" in hex (for thin provisioned VMDK)
# Function to convert hex string to a format that `grep` can match
function hex_to_grep_pattern() {
echo "$1" | sed 's/ /\\x/g'
}
@aliosa27
aliosa27 / GoogleDorking.md
Created December 21, 2023 18:25 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
mknod dev/console c 5 1
mknod dev/full c 1 7
mknod dev/kmem c 1 2
mknod dev/kmsg c 1 11
mknod dev/mem c 1 1
mknod dev/null c 1 3
mknod dev/port c 1 4
mknod dev/ptmx c 5 2
mknod dev/random c 1 8
mknod dev/tty c 5 0
@aliosa27
aliosa27 / OSX-vpn.md
Last active January 9, 2018 01:41 — forked from holms/OSX-vpn.md
Working Debian PPTP VPN for OSX client

PPTP VPN Server setup on Debian, for OSX/iOS clients.

sudo aptitude install pptpd 

sudo cat > /etc/pptpd.conf << EOF
localip 192.168.240.1
remoteip 192.168.240.2-9
EOF
@aliosa27
aliosa27 / OSX-vpn.md
Created January 9, 2018 01:38 — forked from holms/OSX-vpn.md
Working Debian PPTP VPN for OSX client

PPTP VPN Server setup on Debian, for OSX/iOS clients.

sudo aptitude install pptpd 

sudo cat > /etc/pptpd.conf << EOF
localip 192.168.240.1
remoteip 192.168.240.2-9
EOF
@aliosa27
aliosa27 / resize
Created November 26, 2017 21:35
resize
#!/bin/bash
{
#check packages are installed
if (( ! $(dpkg -l | grep -ci -m1 'gparted') )); then
apt-get install gparted zerofree -y
fi
#-------------------------------------------------------------------------------
#MUST LEAVE 40MB+ space or automation autologin may fail due to 0 free space!!!
@aliosa27
aliosa27 / fpm-spreader.sh
Created January 24, 2017 20:46
assign processes to cores
#!/bin/bash
CPU=$((`grep -c processor /proc/cpuinfo` -1))
COUNTER=1
# PHP-FPM
for i in `ps auxw | grep php-fpm | grep -v grep | awk ' { print $2; } '`;
do echo $i;
if [ "$COUNTER" -lt "$CPU" ]
then