Skip to content

Instantly share code, notes, and snippets.

View nbouliol's full-sized avatar
🏠
Working from home

Nicolas Bouliol nbouliol

🏠
Working from home
View GitHub Profile
open ~/Library/Preferences/com.apple.dock.plist
killall Dock
@sezgi
sezgi / facebook-delete-all-group-members.js
Last active January 11, 2019 08:15
Deletes all group members from a facebook group except yourself. Leaving the group after running this in the javascript console will delete the group. Tested on Chrome May 29, 2017. If your network is super slow, you might want to increase the timeout delay.
// removes your box from the page so you don't get removed from the group
$$('[data-name=GroupProfileGridItem]')[0].remove();
// member action dropdowns
const actions = $$('.adminActions');
// open all dropdowns so they're added to the DOM
for (var i = 0; i < actions.length; i++) {
$$('.adminActions a')[i] && $$('.adminActions a')[i].click();
}
@soheilhy
soheilhy / nginxproxy.md
Last active March 22, 2024 08:54
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers