Skip to content

Instantly share code, notes, and snippets.


Rahul V Ramesh rahulvramesh

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 (
View nthprime.go
package main
import "fmt"
func main() {
var (
nthNumber, count, num int
rahulvramesh /
Created Apr 13, 2019 — forked from superseb/
Cleanup host added as custom to Rancher 2.0
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
View wp-config.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 / class-wp-customize-manager.php
Last active Apr 8, 2019
View class-wp-customize-manager.php
* WordPress Customize Manager classes
* @package WordPress
* @subpackage Customize
* @since 3.4.0
View default-filters.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
#--------- Docker Install -------------
sudo apt-get update
sudo apt-get install curl apt-transport-https ca-certificates software-properties-common
curl -fsSL | sudo apt-key add
sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
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.