Skip to content

Instantly share code, notes, and snippets.

exts / custom_post_types.php
Created August 11, 2023 01:50
Custom Wordpress Post Types Plugin Free
Plugin Name: Beginner Grower: Custom Post Types
Plugin URI:
Description: Add's a 'articles' post type
Author: Lamonte Harris
Version: 1.0.0
Author URI:
nikhita /
Created June 19, 2017 19:00 — forked from robertpainsi/
How to reopen a pull-request after a force-push?

You need the rights to reopen pull requests on the repository.

  1. Write down the current commit hash of your PR-branch git log --oneline -1 <PR-BRANCH>
  2. Write down the latest commit hash on github before the PR has been closed.
  3. git push -f origin <GITHUB-HASH-FROM-STEP-2>:<PR-BRANCH>
  4. Reopen the PR.
  5. git push -f origin <HASH-FROM-STEP-1>:<PR-BRANCH>


You've a PR branch my-feature currently at 1234567. Looking at the the PRs page, we see that the PR was closed when my-feature pointed at 0abcdef.

exts / fresh-php7-nginx-server.txt
Last active November 30, 2023 06:02
Fresh PHP 8.0 LEMP setup info/Ubuntu 16
## Requires newer versions of ubuntu, I'm using Ubuntu 20
# install nginx
sudo apt install nginx
# add php8.X repository
sudo add-apt-repository ppa:ondrej/php
sudo apt update
# search libraries
vinzenz / dial-mysql-via-ssh.go
Created November 7, 2016 10:27
Using MySQL / MariaDB via SSH in Golang
package main
import (
josephspurrier / etc-init.d-hello-world
Last active May 15, 2021 17:14
/etc/init.d Script for Go Application
# chkconfig: 35 95 05
# description: Hello world application.
# Run at startup: sudo chkconfig hello-world on
# Load functions from library
. /etc/init.d/functions
lukehedger / ffmpeg-compress-mp4
Last active June 11, 2024 00:52
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4