Skip to content

Instantly share code, notes, and snippets.

@mpalet
mpalet / bw_export_kp.py
Last active March 31, 2020 18:18 — forked from mohamedadaly/bw_export_kp.py
Export Bitwarden to KeePass 2 XML format
#!python
"""
Exports a Bitwarden database into a KeePass file (kdbx) including file attachments, custom fields and folder structure.
It can also export an unencrypted XML KeePass file conforming to KeePass 2 XML format.
It requires keepassxc-cli, if not available it can still export KeePass 2 XML
- https://github.com/keepassxreboot/keepassxc
Usage: bw_export_kp.py [-h] [-x] [-d] [-bw-password None] [-kee-password None]
@mpalet
mpalet / setup-shadowsocks-on-debian.sh
Last active August 4, 2017 19:46 — forked from vincentbel/setup-shadowsocks-on-debian.sh
Setup shadowsocks on debian
#!/bin/bash
########## Install Shadowsocks ##########
# https://github.com/shadowsocks/shadowsocks-libev#debian--ubuntu
sh -c 'printf "deb http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list'
apt update
apt -t jessie-backports install shadowsocks-libev
@mpalet
mpalet / androidconfiggen.sh
Last active May 15, 2019 15:29 — forked from andrewlkho/debian-strongswan.md
Setting up a secure VPN with strongSwan on debian
#!/bin/zsh
CLIENT="client"
SERVER="server.org"
FQDN="server.org"
CA="ca"
cat << EOF
{
@mpalet
mpalet / 0_reuse_code.js
Created December 8, 2016 14:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console