Skip to content

Instantly share code, notes, and snippets.


David B. Bitton davidbitton

View GitHub Profile
View matek-h743-wing_rover.param
kencarino / Delete facebook group members (all the one visible on a given page)
Last active August 12, 2020 19:21 — forked from nirgeier/Delete all facebook members (all the one visible on a given page)
Delete all facebook group members on a given page. Usage: Copy this script, open developers console (F12) in chrome (win) and paste this script. The script will delete all the members that you can see in the given page. Once the script is done you should see a group with no members.
View Delete facebook group members (all the one visible on a given page)
* This script will remove all group members displayed on group page except admins.
* @author: Nir Geier
* @modified: Ken Carino
* Updated May 29, 2019 - Tested on Chrome Version 74.0.3729.169
* Requirements:
a7madgamal /
Last active February 23, 2023 16:09
Dark mode for Slack on MacOS
Kovrinic / .gitconfig
Last active March 8, 2023 14:35
git global url insteadOf setup
View .gitconfig
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url ""]
insteadOf = git://github
jpierson /
Last active December 26, 2022 21:48 — forked from jagregory/gist:710671
How to move to a fork after cloning

If you are like me you find yourself cloning a repo, making some proposed changes and then deciding to later contributing back using the GitHub Flow convention. Below is a set of instructions I've developed for myself on how to deal with this scenario and an explanation of why it matters based on jagregory's gist.

To follow GitHub flow you should really have created a fork initially as a public representation of the forked repository and the clone that instead. My understanding is that the typical setup would have your local repository pointing to your fork as origin and the original forked repository as upstream so that you can use these keywords in other git commands.

  1. Clone some repo (you've probably already done this step)

    git clone git@github...some-repo.git
MrRoyce / gist:097edc0de2fe001288be2e8633f4b22a
Last active October 7, 2019 09:18
AWS CodeDeploy Lamda formatter for Slack messages - node.js
View gist:097edc0de2fe001288be2e8633f4b22a
var services = '/services/...'; // Update this with your Slack service...
var channel = "#aws-deployments" // And this with the Slack channel
var https = require('https');
var util = require('util');
var formatFields = function(string) {
message = JSON.parse(string),
fields = [],
matthewjackowski / wordpress.vcl
Last active December 27, 2022 02:56
Varnish 4 VCL configuration for WordPress. Also allows purging
View wordpress.vcl
# A heavily customized VCL to support WordPress
# Some items of note:
# Supports https
# Supports admin cookies for wp-admin
# Caches everything
# Support for custom error html page
vcl 4.0;
import directors;
import std;
terranware / snsToSlack.js
Last active September 14, 2022 11:29
AWS Lambda function to Slack Channel hookup
View snsToSlack.js
var https = require('https');
var util = require('util');
exports.handler = function(event, context) {
console.log(JSON.stringify(event, null, 2));
console.log('From SNS:', event.Records[0].Sns.Message);
var postData = {
"channel": "#aws-sns",
"username": "AWS SNS via Lamda :: DevQa Cloud",
kopepasah / delete-cache.bash
Last active June 7, 2017 15:44
A command to clear the content cache for Nginx.
View delete-cache.bash
find /path/to/cache -type f -delete
ck-on / hhvminfo.php
Last active September 18, 2022 05:44
HHVMinfo - phpinfo for HHVM HipHop Virtual Machine
View hhvminfo.php
HHVMinfo - phpinfo page for HHVM HipHop Virtual Machine
Author: _ck_
License: WTFPL, free for any kind of use or modification, I am not responsible for anything, please share your improvements
Version: 0.0.6
* revision history
0.0.6 2014-08-02 display fix for empty vs zero
0.0.5 2014-07-31 try to determine config file from process command line (may not always work), style improvements