Skip to content

Instantly share code, notes, and snippets.

View tclancy's full-sized avatar

Tom Clancy tclancy

View GitHub Profile
@jinnabaalu
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'
services:
elasticsearch1:
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0
environment:
ES_JAVA_OPTS: '-Xms256m -Xmx256m'
cluster.name: es-cluster
node.name: es1
network.bind_host: 0.0.0.0
discovery.zen.minimum_master_nodes: 1
@gcavalcante8808
gcavalcante8808 / wsgi_bjoern.py
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()
NUM_WORKERS = 8
@livcarman
livcarman / docker-cleanup.sh
Created October 3, 2018 17:24
Docker Cleanup/Purge
#!/bin/bash
# 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
steven2358 / ffmpeg.md
Last active March 26, 2024 17:50
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)
  • realfavicongenerator.net
  • Ensure the following items have good values:
    • Anything/everything in <head> … </head>
    • humanstxt.org
    • (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
marpontes / disable-gpu-mac.md
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/Slack.app/ --args --disable-gpu
open /Applications/Trello.app/ --args --disable-gpu
open /Applications/Whatsapp.app/ --args --disable-gpu
@leggomuhgreggo
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
shettayyy / pre-commit-eslint
Last active December 10, 2021 05:27
Pre-commit hook for Linting JS with ESLint before commit.
#!/bin/sh
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
fi
PASS=true
var org_str = "j8ck72di";
var session_str = "4734a9fc27f7fee1aa58f66046af6c49";
var base_str = "https://ct-m-fbx.fbsbx.com/fp";
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;