Skip to content

Instantly share code, notes, and snippets.

Avatar

Ej Corpuz ejancorp

  • Philippines
View GitHub Profile
@ejancorp
ejancorp / reset.sh
Last active Nov 24, 2019 — forked from carlosedp/gist:5040f4a1b2c97c1fa260a3409b5f14f9
Reset Kubernetes cluster with Weave
View reset.sh
# Drain and delete the nodes (for each node you have)
kubectl drain kubenode1 --delete-local-data --force --ignore-daemonsets
kubectl delete node kubenode1
# Reset the deployment
sudo kubeadm reset
# On each node
## Reset the nodes and weave
@ejancorp
ejancorp / script.js
Created Jul 25, 2018
Facebook visit counter
View script.js
// ==UserScript==
// @name Facebook visit counter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://local-hub.com/abu-dhabi-golf-courses/yas-links
// @grant none
// ==/UserScript==
@ejancorp
ejancorp / chikka.jquery.js
Last active Nov 22, 2017
Basic Chikka API Usage
View chikka.jquery.js
var settings = {
"async": true,
"crossDomain": true,
"url": "https://post.chikka.com/smsapi/request",
"method": "POST",
"data": {
"message_type": "SEND",
"mobile_number": "",
"shortcode": "",
"message_id": "",
View wfwfw
<VirtualHost local.management.topbet.eu:80>
ServerName local.management.topbet.eu
ServerAlias www.local.management.topbet.eu
DocumentRoot /var/www/management/web
<Directory /var/www/management/web>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>