Skip to content

Instantly share code, notes, and snippets.

:octocat:

Rahul V Ramesh rahulvramesh

:octocat:
Block or report user

Report or block rahulvramesh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View main.go
package main
import (
"io/ioutil"
"net"
"time"
"github.com/Sirupsen/logrus"
"github.com/davecgh/go-spew/spew"
View nthprime.go
package main
import "fmt"
func main() {
var (
nthNumber, count, num int
)
@rahulvramesh
rahulvramesh / cleanup.sh
Created Apr 13, 2019 — forked from superseb/cleanup.sh
Cleanup host added as custom to Rancher 2.0
View cleanup.sh
#!/bin/sh
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done
View wp-config.php
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
@rahulvramesh
rahulvramesh / class-wp-customize-manager.php
Last active Apr 8, 2019
class-wp-customize-manager.php
View class-wp-customize-manager.php
<?php
/**
* WordPress Customize Manager classes
*
* @package WordPress
* @subpackage Customize
* @since 3.4.0
*/
/**
View default-filters.php
<?php
/**
* Sets up the default filters and actions for most
* of the WordPress hooks.
*
* If you need to remove a default hook, this file will
* give you the priority for which to use to remove the
* hook.
*
* Not all of the default hooks are found in default-filters.php
View open-vpn-docker-full.sh
#--------- Docker Install -------------
sudo apt-get update
sudo apt-get install curl apt-transport-https ca-certificates software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
View openvpn-step-2.sh
docker run -v $OVPN_DATA:/etc/openvpn -d -p 1194:1194/udp - cap-add=NET_ADMIN kylemanna/openvpn
#Here replace **CLIENTNAME** with your name, in my case lets say `dotlogger`.
docker run -v $OVPN_DATA:/etc/openvpn - log-driver=none - rm -it kylemanna/openvpn easyrsa build-client-full CLIENTNAME nopass
docker run -v $OVPN_DATA:/etc/openvpn - log-driver=none - rm -it kylemanna/openvpn easyrsa build-client-full dotlogger nopass
docker run -v $OVPN_DATA:/etc/openvpn - log-driver=none - rm kylemanna/openvpn ovpn_getclient CLIENTNAME > CLIENTNAME.ovpn
You can’t perform that action at this time.