Skip to content

Instantly share code, notes, and snippets.

@avovsya
avovsya / how-to-find-the-pid-of-a-process-using-a-given-port.md
Created January 4, 2017 12:16 — forked from nepsilon/how-to-find-the-pid-of-a-process-using-a-given-port.md
How to find the PID of a process using a given port? — First published in fullweb.io issue #80

How to find the PID of a process using a given port?

Sometimes you have a process you lost the PID, and would like to kill it.

You can use top (or better htop) to search for your process name and press k to kill it. But this isn’t optimal when you aren’t sure of its name. A better alternative is to search by the port opened, for example port 80:

sudo lsof -i :80
function readAllNumbers(input) {
var number = "";
var numbers = [];
for (var i = 0; i < input.length; i++) {
if (input[i] === ' ' || input[i] === '\n') {
numbers.push(parseInt(number));
number = "";
continue;
} else {
number += input[i];
Verifying my Blockstack ID is secured with the address 13mmWSf2GZJuEhSW1bUNSTSpkRKqyuRzyn https://explorer.blockstack.org/address/13mmWSf2GZJuEhSW1bUNSTSpkRKqyuRzyn
@avovsya
avovsya / .svimrc
Last active June 25, 2019 10:33
Safari Vim plugin configuration
" map "f" createTabbedHint
" map "shift+f" createHint
map "ctrl+l" nextTab
map "ctrl+h" previousTab
map "ctrl+u" scrollPageUp
map "ctrl+d" scrollPageDown
@avovsya
avovsya / README.md
Created August 23, 2019 11:26 — forked from xavriley/README.md
Arpeggiator in Sonic Pi

Arpeggiator in Sonic Pi

This is a work in progress

@avovsya
avovsya / .cvimrc
Created February 25, 2020 13:29
.cvimrc
set smoothscroll
" alias ':g' to ':tabnew google'
command g tabnew google
map <C-l> nextTab
map <C-h> previousTab
map <C-u> scrollPageUp
map <C-d> scrollPageDown
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