Skip to content

Instantly share code, notes, and snippets.

View tinybug's full-sized avatar

tinybug tinybug

View GitHub Profile
@gaearon
gaearon / reducers.js
Last active December 11, 2020 14:56
How I'd do code splitting in Redux (pseudo code, not tested!)
import { combineReducers } from 'redux';
import users from './reducers/users';
import posts from './reducers/posts';
export default function createReducer(asyncReducers) {
return combineReducers({
users,
posts,
...asyncReducers
});
@dhrrgn
dhrrgn / cmd.py
Last active May 17, 2021 18:41
Running a command in Python and optionally processing the output in realtime.
import shlex
import subprocess
import sys
def run_cmd(cmd, callback=None, watch=False):
"""Runs the given command and gathers the output.
If a callback is provided, then the output is sent to it, otherwise it
is just returned.
@shundhammer
shundhammer / qt-hidpi.md
Last active May 31, 2021 04:35
Qt HiDPI

Qt and HiDPI

Information Resources

Qt Reference Documentation

Qt Source Code (Qt 5.15.2)

@TotallyNotNero
TotallyNotNero / iCloudBypass.sh
Created November 13, 2019 20:40
iOS iCloud Bypass
echo "==> Installing dependencies..."
brew install libusbmuxd
clear
echo "********* Checkra1n iCloud Bypass **********"
echo
echo "=> By Nero, et al"
echo "=> - @TotallyNotNero"
echo
echo "==> DISCLAIMER: I can not be held accountable if you decided to use this tool for illegal purposes. That is on you. DO NOT use this for illegal purposes."
@robvanoostenrijk
robvanoostenrijk / Instructions.md
Last active September 15, 2021 21:55
Install Mac OS X 10.6 SDK on newer Xcode
@ctf0
ctf0 / invisible recaptcha.md
Last active October 31, 2022 09:37
invisible recaptcha with vuejs & laravel

Frontend "https://github.com/DanSnow/vue-recaptcha"

  • npm install --save vue-recaptcha

  • form

<my-form inline-template>
    <form action="{{ route('...') }}" @submit.prevent="FormSubmit($event)">
        // other inputs
@fasterthanlime
fasterthanlime / windows.sh
Created April 25, 2019 12:48
Building ffmpeg & libx264 with MSVC from msys2
#!/bin/bash
set -e
if [[ -z "${FFRUST_VC_PATH}" ]]; then
if [[ -n "${FFRUST_RECURSING}" ]]; then
echo "Something went terribly wrong with our MVSC/msys2 magic"
exit 1
fi
@UKNC
UKNC / Install headless Firefox on CentOS 6 for Selenium automation.md
Last active May 5, 2023 15:06
Install headless Firefox on CentOS 6 for Selenium automation

Abstract

In the manual the steps required to install headless Firefox on CentOS 6 are described. Headless Firefox may be needed to perform GUI automated testing.

All steps of this manual have been validated on CentOS 6.8. It should not be a problem to adapt the solution to other distros.

Steps

Upgrade yum

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links

@cnicodeme
cnicodeme / fixes.md
Last active November 17, 2023 15:31
List of 5,000 Most Frequently Used Domain Name Prefixes and Suffixes - Ordered By Length