Skip to content

Instantly share code, notes, and snippets.

@hollance
hollance / StateVariableFilter.h
Created August 26, 2023 16:26
Cytomic SVF implementation in C++
#pragma once
#include <cmath>
/**
State variable filter (SVF), designed by Andrew Simper of Cytomic.
http://cytomic.com/files/dsp/SvfLinearTrapOptimised2.pdf
The frequency response of this filter is the same as of BZT filters.
@portal7
portal7 / ConvertNumberToString.cs
Created November 9, 2016 13:43
Convierte Numero a Texto en Español / Convert Number to Text in Spanish (could be English tooo....)
using System;
/// <summary>
/// Convierte un Numero en Letras
/// </summary>
public class ConvertToNumber
{
public string EnLetras(string num)
{
string res, dec = "";
@sundowndev
sundowndev / GoogleDorking.md
Last active April 16, 2024 15:38
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"
@wojteklu
wojteklu / clean_code.md
Last active April 16, 2024 15:37
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@wandernauta
wandernauta / sp
Last active April 16, 2024 15:37
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@rjescobar
rjescobar / extend-trial-jetbrains-windows.bat
Created August 31, 2021 02:53
JetBrains IDE trial reset windows
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
@Meltwin
Meltwin / Noetic-Ubuntu22.04.md
Last active April 16, 2024 15:33
Installing ROS1 Noetic on Ubuntu 22.04

The process is pretty similar to the standard installation from source except for some fixes that you will have to make during the installation. I will keep the same header so you can keep a track on both guide at the same time (follow the official website for more explication, I will only write the steps to make).

1 - Prerequisites

1.1 - Installing bootstrap dependencies

To install bootstrap dependencies

@sergeyzenchenko
sergeyzenchenko / russia-ddos.md
Last active April 16, 2024 15:32
Russia DDOS list
@savegame
savegame / pulse_sreaming.md
Last active April 16, 2024 15:32
PulseAudio / PipeWire streaming audio from Client to remote PulseAudio / PipeWire Server

We have Server machine, this computer with Headphones, and we have Client computer, this is remote PC with music =) On Server we should first open port for listening connections from Client :

# on ubuntu 
sudo ufw allow from <Client_IP> to any port 4656 proto tcp
# on fedora ( with firewalld ) 
sudo firewall-ctl --add-port 4656/tcp

note: port 4656 just for sample. you can use any port you want
than on Server, from current user add listening for connections

@Nando98
Nando98 / comandos-basicos-cmd.md
Last active April 16, 2024 15:30
Comandos básicos en la consola de Windows o CMD, para el uso posterior de Git

Comandos básicos en la consola de Windows o CMD

Los comandos necesarios que debes aprender para poder clonar o subir tu proyecto desde la consola de Windows son los siguientes:

  • dir : Este comando nos sirve para poder listar todos los archivos y carpetas existentes en el directorio donde estamos posicionados, por ejemplo:

    D:\miProyecto>DIR
    Directorio de D:\miProyecto
    

10/10/2017 14:00 < DIR > tutorioal_ionic