Skip to content

Instantly share code, notes, and snippets.

@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