Skip to content

Instantly share code, notes, and snippets.

View eusonlito's full-sized avatar
🤗

Lito eusonlito

🤗
View GitHub Profile
<?php
//
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio)
//
// https://gist.github.com/levelsio/6ee6c47283ee414ef3aace1d81986717
//
// File: twitterFollowerCuratorBot.php
//
// Created: May 2021
@eusonlito
eusonlito / 01-docker-iptables.txt
Created June 13, 2019 19:30 — forked from bborysenko/01-docker-iptables.txt
Default Iptables rules after starting Docker servuce
```
[root@node-01 ~]# iptables-save
# Generated by iptables-save v1.4.21 on Thu May 3 20:27:51 2018
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:DOCKER - [0:0]
-A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
@eusonlito
eusonlito / basecamp-classic-files.php
Last active May 7, 2019 04:53 — forked from stelabouras/downloadFromBasecamp.php
Download all your file from Basecamp Classic
<?php
define('BASE', './basecamp'); // Folder to store files (must be writable)
define('BASECAMP_URL', '[YOUR BASECAMP URL HERE]'); // e.g. https://stelabouras.basecamphq.com/ (Don't forget the trailing slash!)
define('BASECAMP_KEY', '[YOUR API KEY HERE]'); // e.g. one huge string (found in 'My info' in the Authentication tokens section)
define('COOKIE', tempnam(sys_get_temp_dir(), uniqid()));
function curl($url, $prefix = true)
{
$url = ($prefix ? BASECAMP_URL : '').$url;
@eusonlito
eusonlito / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
;(function ($, window, document, undefined) {
var pluginName = 'name', defaults = {};
function Plugin (element, options) {
this.element = element;
this.settings = $.extend({}, defaults, options);
this.init();
}