I hereby claim:
- I am mciverza on github.
- I am maclsd (https://keybase.io/maclsd) on keybase.
- I have a public key ASDZokDPdQ-CMuF0R0S8a7tJET7tFePTvS2NqnJ1LZJktgo
To claim this, I am signing this object:
#EXTM3U | |
#EXTINF:-1,Digitally Imported - Ambient | |
http://pub1.diforfree.org:8000/di_ambient_hi | |
#EXTINF:-1,Digitally Imported - Big Room House | |
http://pub1.diforfree.org:8000/di_bigroomhouse_hi | |
#EXTINF:-1,Digitally Imported - Breaks | |
http://pub1.diforfree.org:8000/di_breaks_hi |
I hereby claim:
To claim this, I am signing this object:
sudo su - zimbra | |
# list all accounts and print out account name and aliases | |
for i in `zmprov -l gaa` ; do zmprov ga $i zimbraMailAlias ; done | |
# list all distribution lists and any members and/or aliases | |
for i in `zmprov gadl` ; do zmprov gdl $i zimbraMailAlias zimbraMailForwardingAddress ; done |
Downloading only part of a git repo, e.g one subfolder, is called a sparse checkout, or sparse clone
The steps to do a sparse checkout are as follows:
git init <repo_name>
cd <repo_name>
git remote add -f origin <url_of_remote_repo>
git config core.sparsecheckout true
mkdir temp && cd temp | |
# for linux 'amd64' architecture install those packages: | |
sudo apt-get install libx11-6:i386 libpam0g:i386 libstdc++5:i386 lib32z1 lib32ncurses5 lib32bz2-1.0 | |
wget https://vpnportal.aktifbank.com.tr/SNX/INSTALL/snx_install.sh | |
sudo ./snx_install.sh | |
cd .. && rm -rf temp/ |
// modify these configurations to work with your environment | |
var server = "https://sso.example.com"; | |
var realm = "realm"; | |
var resource = "client"; | |
var username = "username"; | |
var password = "url encoded password"; | |
var url = `${server}/auth/realms/${realm}/protocol/openid-connect/token`; | |
var data = `grant_type=password&client_id=${resource}&username=${username}&password=${password}`; |
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
The steps in this guide are available as an autobuild shell script
Because the OpenConnect package from Ubuntu is a bit outdated, and if you have a recent AnyConnect server, you need a newer OpenConnect to play with it.
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)I run several K8S cluster on EKS and by default do not setup inbound SSH to the nodes. Sometimes I need to get into each node to check things or run a one-off tool.
Rather than update my terraform, rebuild the launch templates and redeploy brand new nodes, I decided to use kubernetes to access each node directly.