Skip to content

Instantly share code, notes, and snippets.

View raminv80's full-sized avatar

Ramin Vakilian raminv80

  • Amazon
  • Canada
View GitHub Profile
//
// main.cpp
// test
//
// Created by Them Advertising on 26/2/19.
// Copyright © 2019 Them Advertising. All rights reserved.
//
#include <iostream>
#include <vector>
@raminv80
raminv80 / gulpfile.js
Created September 6, 2016 00:08
Gulp-sass pipe line with support for neat-burbon, autoprefixer, cleanCss, sourcemaps
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);
}
@raminv80
raminv80 / View-papertrail-log-archive.sh
Created July 24, 2015 07:40
Easily view paper trail log files
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) {
@raminv80
raminv80 / monit.conf
Created July 24, 2015 05:24
PPTP auto reconnect with Monit
...
#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"