Skip to content

Instantly share code, notes, and snippets.

@phondanai
phondanai / sysctl.conf
Created October 21, 2025 08:04 — forked from maprangzth/sysctl.conf
ubuntu sysctl performance tuning
# Kernel sysctl configuration file for Linux
#
# Version 1.12 - 2015-09-30
# Michiel Klaver - IT Professional
# http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant
#
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
@phondanai
phondanai / clojure-beginner.md
Created November 14, 2023 06:38 — forked from yogthos/clojure-beginner.md
Clojure beginner resources

Introductory resources

@phondanai
phondanai / forti-fix.sh
Created September 13, 2023 07:37 — forked from SydoxX/forti-fix.sh
Fixes Forticlient 7.0.7
#!/bin/bash
# version 2 thanks to @dhx-mike-palandra
echo "Creating /etc/NetworkManager/conf.d/99-forticlient.conf..."
sudo cat > /etc/NetworkManager/conf.d/99-forticlient.conf << 'EOF'
[keyfile]
unmanaged-devices=interface-name:~vpn*,type:tun
EOF
if [ $? -eq 0 ]
@phondanai
phondanai / encrypt_openssl.md
Last active May 24, 2021 06:18 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -pbkdf2 -e -in audio.wav -out audio.wav.encrypted

To decrypt:

@phondanai
phondanai / audio_tools.py
Created December 9, 2017 10:39
Audio tools for numpy/python. Constant work in progress.
# License: BSD 3-clause
# Authors: Kyle Kastner
# Harvest, Cheaptrick, D4C, WORLD routines based on MATLAB code from M. Morise
# http://ml.cs.yamanashi.ac.jp/world/english/
# MGC code based on r9y9 (Ryuichi Yamamoto) MelGeneralizedCepstrums.jl
# Pieces also adapted from SPTK
from __future__ import division
import numpy as np
import scipy as sp
from numpy.lib.stride_tricks import as_strided