Skip to content

Instantly share code, notes, and snippets.

@fricative
fricative / openconnect.sh
Created January 30, 2021 11:49 — forked from alirezaomidi/openconnect.sh
Script to connect and disconnect to/from openconnect without pain
View openconnect.sh
#!/bin/bash
# This script connects the computer to a vpn server using openconnect without pain
prog_name=$(basename $0)
# CHANGE YOUR_VPN_SERVER_DOMAIN to the VPN server you know like example.com
domain=YOUR_VPN_SERVER_DOMAIN
function help {
@fricative
fricative / mirror_remote_directory_to_local_directory
Created September 4, 2020 02:38 — forked from pixeline/mirror_remote_directory_to_local_directory
Bash script using lftp to mirror remote directory to local directory, thus keeping the local directory synchronized with the remote one.
View mirror_remote_directory_to_local_directory
#!/bin/sh
# @author: Alexandre Plennevaux
# @description: MIRROR DISTANT FOLDER TO LOCAL FOLDER VIA FTP
#
# FTP LOGIN
HOST='sftp://ftp.domain.com'
USER='ftpusername'
PASSWORD='ftppassword'
# DISTANT DIRECTORY
@fricative
fricative / install-psycopg2.sh
Created October 14, 2019 07:19 — forked from whyvez/install-psycopg2.sh
install psycopg2 on aws linux
View install-psycopg2.sh
sudo yum install gcc python27 python27-devel postgresql-devel
sudo curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python27
sudo /usr/bin/easy_install-2.7 pip
sudo pip2.7 install psycopg2