Skip to content

Instantly share code, notes, and snippets.

@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
  1. download OpenEmu-Experimental
  2. download BIOS package
  3. unarchive bios package
  4.  duplicate `SCPH5552.BIN` and rename it to `SCPH5501.BIN`
    
  5. open Finder and press CMD + SHIFT + G
  6. fill in with ~/Library/Application Support/OpenEmu and hit Enter
  7. open the BIOS folder, if it's not, create it.
  8. copy SCPH5500.BIN, SCPH5501.BIN, SCPH5502.BIN from the BIOS package folder you downloaded earlier.
  9. open OpenEmu.
  10. select Sony PlayStation from the left pane
@cbracco
cbracco / gist:7ec99d9da5e2a8ac8ed8
Created March 11, 2015 02:43
Convert MP4 to WEBM & OGV using ffmpeg on OSX
ffmpeg -i app/_assets/videos/bg-home-team.mp4 -an -qmax 25 -threads 2 app/_assets/videos/bg-home-team.webm
ffmpeg -i app/_assets/videos/bg-home-team.mp4 -an -c:v libtheora -q:v 7 -threads 2 app/_assets/videos/bg-home-team.ogv
@PurpleBooth
PurpleBooth / README-Template.md
Last active June 2, 2024 14:24
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@parmentf
parmentf / GitCommitEmoji.md
Last active June 2, 2024 01:20
Git Commit message Emoji
@thejmazz
thejmazz / .babelrc
Created February 16, 2016 18:17
async/await with webpack+babel
{
"presets": ["es2015"],
"plugins": ["transform-async-to-generator"]
}
@SuperPaintman
SuperPaintman / npm-f3-install.sh
Last active April 21, 2024 23:41
NPM install for low RAM machins. And "npm install ... killed" problem
#!/bin/bash
#
# Author: SuperPaintman <SuperPaintmanDeveloper@gmail.com>
#
###
# Constants
###
RETVAL=0
@pongstr
pongstr / _readme.md
Last active October 26, 2023 05:57
HTTP/2 Recipe: Nginx + Node.js

Imgur

Recipe

Install homebrew/services, this will be helpful, you'll see later. :D

$ brew tap homebrew/services 
@mdonkers
mdonkers / server.py
Last active May 31, 2024 02:22
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@romainl
romainl / colorscheme-override.md
Last active May 27, 2024 00:17
The right way to override any highlighting if you don't want to edit the colorscheme file directly

The right way to override any highlighting if you don't want to edit the colorscheme file directly

Generalities first

Suppose you have weird taste and you absolutely want:

  • your visual selection to always have a green background and black foreground,
  • your active statusline to always have a white background and red foreground,
  • your very own deep blue background.