Skip to content

Instantly share code, notes, and snippets.

View davidschlachter's full-sized avatar

David Schlachter davidschlachter

View GitHub Profile
@KristerV
KristerV / ExpandAllFacebookGroup.js
Last active August 31, 2018 12:53
Scrape Facebook Group
/*
This will expand all of the posts and comments that is in the view. It will take a lot of time!
To use just paste this in your console (F12).
*/
var previousScrollheight = 0
scrollDown = function() {
var currentScrollheight = document.body.scrollHeight
var canScroll = currentScrollheight - previousScrollheight
previousScrollheight = document.body.scrollHeight
@reyk
reyk / vmctl start ubuntu -d ubuntu-16.10-server-cloudimg-amd64.raw -n nat -c
Last active July 8, 2021 04:09
OpenBSD vmm and meta-data running ubuntu-16.10-server-cloudimg-amd64.raw
- Get OpenBSD from http://www.openbsd.org/ ;)
- Find an Ubuntu cloud image on https://cloud-images.ubuntu.com/
- Get https://github.com/reyk/meta-data and configure it for cloud-init
- Run the VM ...
Script started on Thu Mar 30 01:53:50 2017
# qemu-img convert ubuntu-16.10-server-cloudimg-amd64.img ubuntu-16.10-server-cloudimg-amd64.raw
# vmctl start ubuntu -d ubuntu-16.10-server-cloudimg-amd64.raw -n nat -c
Connected to /dev/ttyp6 (speed 9600)
Changing serial settings was 0/0 now 3/0
@mkuron
mkuron / Makefile
Last active March 21, 2021 21:39
Flash Player Update Script for Mac OS X
install:
cp de.kuron-germany.flash-update.plist /Library/LaunchDaemons/
mkdir -p /usr/local/bin
cp flash_check.sh /usr/local/bin/
launchctl load /Library/LaunchDaemons/de.kuron-germany.flash-update.plist
@mgedmin
mgedmin / StartSSL.md
Last active October 22, 2023 07:52
Free StartSSL.com SSL certificate HOWTO

How to get a free StartSSL.com SSL certificate

I'm writing this up from memory, so errors may appear.

This has been updated to use SHA256 certificates.

Start

  1. Go to http://www.startssl.com/
  2. Click on 'Control Panel'