Installation and advanced config: https://help.ubuntu.com/14.04/serverguide/openvpn.html#openvpn-simple-server-configuration
iptables setup: http://allanmcrae.com/2013/09/routing-traffic-with-openvpn/
client for mac : tunnelblick
UPDATE:
if (typeof console === "undefined" || typeof console.log === "undefined") { | |
console = {}; | |
console.log = function() {}; | |
} |
Installation and advanced config: https://help.ubuntu.com/14.04/serverguide/openvpn.html#openvpn-simple-server-configuration
iptables setup: http://allanmcrae.com/2013/09/routing-traffic-with-openvpn/
client for mac : tunnelblick
UPDATE:
0 2 * * * cd /home/git/gitlab && PATH=/usr/local/bin:/usr/bin:/bin bundle exec rake gitlab:backup:create RAILS_ENV=production | |
0 4 * * * s3cmd sync --skip-existing --delete-removed /home/git/gitlab/tmp/backups/ s3://<backup-bucket-name>/gitlab/ |
.findhere.com | |
.freeservers.com | |
.zzn.com | |
0-mail.com | |
001.igg.biz | |
0039.cf | |
0039.ga | |
0039.gq | |
0039.ml | |
00b2bcr51qv59xst2.cf |
import csv | |
list_of_dict = [.....] | |
keys = list_of_dict[0].keys() | |
f = open('file.csv', 'wb') | |
dict_writer = csv.DictWriter(f, keys) | |
dict_writer.writer.writerow(keys) | |
dict_writer.writerows(list_of_dict) |
rsync -pvr --delete --exclude-from=file_with_excludes folder1/ userB@hostB:folder2/ |
gitlab-rake gitlab:backup:create | |
find /var/opt/gitlab/backups -mtime +7 -exec rm {} \; | |
s3cmd sync --skip-existing --delete-removed /var/opt/gitlab/backups/ s3://<s3-bucket-name>/gitlab/backups/ |
# Usage: python google_contacts_cleaner.py input.vcf output.vcf | |
import sys | |
input_file = sys.argv[1] | |
output_file = sys.argv[2] | |
total_card_count = 0 | |
final_card_count = 0 | |
with open(input_file,'r') as f: |
#!/bin/bash | |
# Slightly modified version from https://raw.githubusercontent.com/Nyr/openvpn-install/master/openvpn-install.sh | |
# Run with sudo ./openvpn-install.sh and not sudo sh ./openvpn-install.sh as read command has issues with external triggering of scripts | |
# OpenVPN road warrior installer for Debian, Ubuntu and CentOS | |
# This script will work on Debian, Ubuntu, CentOS and probably other distros | |
# of the same families, although no support is offered for them. It isn't | |
# bulletproof but it will probably work if you simply want to setup a VPN on | |
# your Debian/Ubuntu/CentOS box. It has been designed to be as unobtrusive and | |
# universal as possible. |
--- | |
- hosts: all | |
sudo: yes | |
tasks: | |
- name: set hostname using hostname command | |
command: hostname {{ inventory_hostname }} | |
- name: set hostname in /etc/hostname | |
shell: echo {{ inventory_hostname }} > /etc/hostname | |
- name: Set ip_forward (ipv4) | |
sysctl: name="net.ipv4.ip_forward" value=1 sysctl_set=yes state=present reload=yes |