Skip to content

Instantly share code, notes, and snippets.

View tclancy's full-sized avatar

Tom Clancy tclancy

View GitHub Profile
jinnabaalu / elasticsearch-6.6.0-cors-and-xpack-disabled-activated.yaml
Created February 26, 2019 02:03
Elasticsearch docker-compose file with CORS activated and XPack disabled
version: '3.3'
ES_JAVA_OPTS: '-Xms256m -Xmx256m' es-cluster es1
discovery.zen.minimum_master_nodes: 1
gcavalcante8808 /
Created January 17, 2019 13:44
Bjoern Django Final
import bjoern
import os, signal
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
app = get_wsgi_application()
livcarman /
Created October 3, 2018 17:24
Docker Cleanup/Purge
# This cleans out absolutely EVERYTHING, unlike `docker system prune`
# Stop all running containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
steven2358 /
Last active May 10, 2024 20:57
FFmpeg cheat sheet
  • Run a project-wide search for 'todo' / 'TODO' / 'to do' / 'TO DO' and make sure they’re resolved
  • Write any and all necessary project documentation (in /_docs/project)
  • Ensure the following items have good values:
    • Anything/everything in <head> … </head>
    • (Craft CMS only) Anything/everything generated by SEOmatic
  • Confirm 404 is reached when expected
  • Confirm robots.txt has the desired values
  • Confirm analytics script is in-place when in production
marpontes /
Created October 5, 2017 12:40
Pass --disable-gpu down to Electron apps on mac (Slack, Whatsapp, Trello, ...)

On my Macbook Pro (OS X El Capitan) I was having issues on Electron based apps. These apps had visual issues/glitches like blank screens, visual components showing only when hovering or transparent menus.

By opening with these comands, the problems disappeared.

open /Applications/ --args --disable-gpu
open /Applications/ --args --disable-gpu
open /Applications/ --args --disable-gpu
leggomuhgreggo / grep.text
Last active February 29, 2020 18:34
Command to grep spoofed package names from hacktask npm user
find . -name "package.json" -exec grep -nwE 'babelcli|crossenv|cross-env.js|d3.js|fabric-js|ffmepg|gruntcli|http-proxy.js|jquery.js|mariadb|mongose|mssql.js|nodecaffe|nodefabric|node-fabric|nodeffmpeg|nodemailer-js|nodemailer.js|nodemssql|node-opencv|node-opensl|node-openssl|noderequest|nodesass|nodesqlite|node-sqlite|node-tkinter|opencv.js|openssl.js|proxy.js|shadowsock|smb|sqlite.js|sqliter|sqlserver|tkinter' {} +
shettayyy / pre-commit-eslint
Last active December 10, 2021 05:27
Pre-commit hook for Linting JS with ESLint before commit.
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$")
ESLINT="$(git rev-parse --show-toplevel)/node_modules/.bin/eslint"
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
var org_str = "j8ck72di";
var session_str = "4734a9fc27f7fee1aa58f66046af6c49";
var base_str = "";
var page_id = "1";
var ip_addr_str = "820139e7306525d7";
var tarpitting_param = "";
var carrier_id_enabled = "false";
var flash_tags = "true";
// these are breakpoints made with Neat grids.
$medium-screen: new-breakpoint(min-width 640px 12);
$bigger-screen: new-breakpoint(min-width 910px 12);
$hugest-screen: new-breakpoint(min-width 1200px 12);
// to use: put this div at the top of your page
// <div id="sizer"></div>
#sizer {
font-size: 0.5em;