Skip to content

Instantly share code, notes, and snippets.


Zak zakgrant

Block or report user

Report or block zakgrant

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mdecorte / createUsefulAssetManifest.js
Last active Jul 17, 2019
Script to create a useful asset-manifest file for CRA-2 that only contains paths to assets needed on page load
View createUsefulAssetManifest.js
const fs = require('fs')
const path = require('path')
// for CRA-2 un-comment line 5 and comment line 6
// const assetManifest = require('./build/asset-manifest.json')
const assetManifest = require('./build/asset-manifest.json')[files]
const indexFilePath = path.join(__dirname, 'build/index.html')
const BUILD_PATH = path.join(__dirname, 'build/useful-asset-manifest.json')
tzapu / docker-compose.yml
Last active Nov 15, 2019
docker compose file for local server, plex, transmission, sonarr, radarr, ombi, netdata, nextcloud
View docker-compose.yml
version: '2.1'
container_name: transmission
image: dperson/transmission
restart: unless-stopped
- plex
network_mode: host
martinwicke / automobile.ipynb
Last active Apr 19, 2020
Estimator demo using Automobile dataset
View automobile.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
martinwoodward / PInvokeSamples.cs
Created Jun 28, 2016
Example of PInvoke from Linux with .NET Core
View PInvokeSamples.cs
using System.Runtime.InteropServices;
namespace PInvokeSamples {
public static class Program {
// Import the libc and define the method corresponding to the native function.
private static extern int getpid();
public static void Main(string[] args){
mirague / CustomComponent-test.js
Last active Mar 17, 2020
Testing React-Intl components with Enzyme's mount() and shallow() methods. This is a helper function which wraps the `intl` context around your component tests in an easy and efficient way.
View CustomComponent-test.js
import { mountWithIntl } from 'helpers/intl-enzyme-test-helper.js';
const wrapper = mountWithIntl(
<CustomComponent />
expect(wrapper.state('foo')).to.equal('bar'); // OK
expect(wrapper.text()).to.equal('Hello World!'); // OK
ralphcrisostomo /
Last active May 6, 2020
Batch convert videos with HandBrake CLI
# Batch convert videos with HandBrake CLI
# By Ralph Crisostomo - 2016.04.17
# Usage :
# 'sudo ./ /source /destination'
# Reference :
bentheax /
Created Jan 22, 2016
How to manage dotfiles with YADM


Solutions I've tried

  • Git repo directly checked out in home directory

    • Noisy
    • Have to ignore *, everything is a --force
    • Juggling machine variations is a pain
  • Homesick / Homeshick

NicholasTD07 /
Last active May 29, 2020
How to Download iOS Simulator (Xcode) in Command Line and Install it

How to Download iOS Simulator (Xcode) in Command Line and Install it

For faster connection speed and more flexibility.


  1. Start Xcode in command line by running this in commandline /Applications/
  2. Start downloading of the simulator
  3. Cancel it. YES CANCEL IT!
  4. You will get a message like this:
amercier /
Last active Apr 23, 2020
Turn leds on/off on Synology DiskStation

Synology scheduled tasks


Go to Control Panel / Task Scheduler and add the content of these scripts as root scripts.


You can’t perform that action at this time.