This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get Endpoint: | |
curl -H "Authorization: Bearer <AUTHCODE>" https://api.hubic.com/1.0/account/credentials | |
returns: | |
{"token":"<AUTHTOKEN>","endpoint":"https://lb1.hubic.ovh.net/v1/<AUTHURL>","expires":"2015-04-01T23:01:08+02:00"} | |
Get List of files: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inserting routes in the adsl1 table | |
ip route add 192.168.1.0/24 dev eth0 scope link table adsl1 | |
ip route add default via 192.168.1.1 dev eth0 table adsl1 | |
# Inserting routes in the adsl2 table | |
ip route add 192.168.2.0/24 dev eth0 scope link table adsl2 | |
ip route add default via 192.168.2.1 dev eth0 table adsl2 | |
# ip rule is the source routing magic. This will redirect | |
# packets coming from source "X" to table "adsl1", "adsl2" or "default". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cli53 = '/usr/bin/cli53' | |
zones_on_aws = `#{cli53} list`.lines.select{|e| e =~ /Name/ }.map{|e| e.split(":").last.strip.sub(/\.$/, '') } | |
zones_on_aws.each do | zone | | |
puts "#{zone}..." | |
system("#{cli53} export #{zone} > #{zone}.bind") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hubic] | |
email = <hubicemailaddress> | |
password = <hubicpassword> | |
client_id = <hubicclientid> | |
client_secret = <hubicclientsecret> | |
redirect_uri = http://localhost/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache_peer 127.0.0.1 parent 3300 0 no-query no-digest | |
never_direct allow all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: netdata | |
vars: | |
repo: https://github.com/firehol/netdata.git | |
tmpdir: /tmp/netdata | |
ndbin: /usr/local/sbin/netdata | |
ndinstaller: ./netdata-installer.sh --dont-wait | |
remote_user: root | |
tasks: | |
- name: install prereqs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables -t nat -A POSTROUTING -o eth0 -s <internalIP> -j SNAT --to-source <externalip> | |
iptables -t nat -A PREROUTING -i eth0 -d <externalip> -j DNAT --to-destination <internalip? | |
iptables -A FORWARD -s <externalip> -j ACCEPT | |
iptables -A FORWARD -d <internalip> -j ACCEPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Local server settings | |
// Local Database | |
define('DB_NAME', 'client'); | |
define('DB_USER', 'root'); | |
define('DB_PASSWORD', 'root'); | |
define('DB_HOST', 'localhost'); | |
// Overwrites the database to save keep edeting the DB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<extensions> | |
<add assembly="LogglyTarget"/> | |
</extensions> | |
<targets> | |
<target name="Loggly" xsi:type="Loggly" URL="<EnterYourLogglyURLHere>" bufferNumber="5" shouldBuffer="true"/> | |
</targets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off |