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
// | |
// main.cpp | |
// test | |
// | |
// Created by Them Advertising on 26/2/19. | |
// Copyright © 2019 Them Advertising. All rights reserved. | |
// | |
#include <iostream> | |
#include <vector> |
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
var gulp = require('gulp'), | |
plugins = require('gulp-load-plugins')(); | |
var bourbon = require('node-bourbon').includePaths, | |
neat = require('node-neat').includePaths; | |
function getTask(task) { | |
return require('./gulp/tasks/' + task)(gulp, plugins, site); | |
} |
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
GNU nano 2.3.1 File: search.sh | |
#!/bin/sh | |
# Linux users have to change $8 to $9 | |
awk '\ | |
function red(s) { | |
printf "\033[1;31m" s "\033[0m " | |
} | |
function green(s) { |
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
... | |
#assuming the host behind vpn has local ip of 192.168.1.2 | |
check host my_host_behind_vpn with address 192.168.1.2 | |
# create a shell script at /usr/local/bin/start_pppd.sh | |
# Add your vpn connection setup there | |
# example conect of this file can be: | |
# pppd call my-vpn #to connect to pptp client | |
# sleep 5 #wait few seconds for connection to start | |
# route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 dev ppp0 # route your traffic | |
start program "/usr/local/bin/start_pppd.sh" |