Skip to content

Instantly share code, notes, and snippets.

@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 
@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
@thejmazz
thejmazz / .babelrc
Created February 16, 2016 18:17
async/await with webpack+babel
{
"presets": ["es2015"],
"plugins": ["transform-async-to-generator"]
}
@parmentf
parmentf / GitCommitEmoji.md
Last active May 21, 2024 12:34
Git Commit message Emoji
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 21, 2024 08: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

@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
  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
@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
@IMDagger
IMDagger / seamless_admin.py
Last active August 29, 2015 13:56
This should be used with care, it's not very deep smoked for all tests and combinations, because is a proof of concept.
# -*- coding: utf-8 -*-
'''
Tricky admin -> xadmin merger.
Alex Moiseenko aka IMDagger.
'''
import logging
import types
from functools import wraps, update_wrapper
from django.http import HttpRequest
from django.contrib.admin import ModelAdmin
@danharper
danharper / background.js
Last active May 21, 2024 01:49
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});