Skip to content

Instantly share code, notes, and snippets.

View ejancorp's full-sized avatar

Ej Corpuz ejancorp

  • Philippines
View GitHub Profile
@ejancorp
ejancorp / reset.sh
Last active November 24, 2019 10:06 — forked from carlosedp/gist:5040f4a1b2c97c1fa260a3409b5f14f9
Reset Kubernetes cluster with Weave
# 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 July 25, 2018 13:04
Facebook visit counter
// ==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 November 22, 2017 18:04
Basic Chikka API Usage
var settings = {
"async": true,
"crossDomain": true,
"url": "https://post.chikka.com/smsapi/request",
"method": "POST",
"data": {
"message_type": "SEND",
"mobile_number": "",
"shortcode": "",
"message_id": "",
<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>
@ejancorp
ejancorp / atom-config.js
Created July 1, 2016 04:19
atom-config.js backup
config