Skip to content

Instantly share code, notes, and snippets.

View twitterFollowerCuratorBot.php
<?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 Jun 13, 2019 — forked from bborysenko/01-docker-iptables.txt
Default Iptables rules after starting Docker servuce
View 01-docker-iptables.txt
```
[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 — forked from stelabouras/downloadFromBasecamp.php
Download all your file from Basecamp Classic
View basecamp-classic-files.php
<?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 Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View jquery.plugin.js
;(function ($, window, document, undefined) {
var pluginName = 'name', defaults = {};
function Plugin (element, options) {
this.element = element;
this.settings = $.extend({}, defaults, options);
this.init();
}