Skip to content

Instantly share code, notes, and snippets.

@XeiZ
XeiZ / Win10AU MJPEG
Created October 10, 2016 14:01
How to reactivate MJPEG on Windows 10 AU
Open regedit from the Start menu. (or windows key+r - type regedit)
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\MicrosoftWindows Media Foundation\Platform
Right click the Platform folder and select New > DWORD. Name it “EnableFrameServerMode” without the quotation marks.
Right-click the new value and select “Modify”.
Enter “0" in the “Value data” field.
@schnell18
schnell18 / macosx_remove_java9.sh
Created October 8, 2016 13:26
MacOS X remove Java 9
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
DISM commands to prepare thumbdrive for applying Pre-Staged media:
* tested with ADK Win 10
copype amd64 \PEx64
dism /mount-wim /wimfile:\PEx64\media\sources\boot.wim /index:1 /mountdir:\PEx64\mount
explorer \PEx64\mount\Windows\System32
- copy/overwrite custom startnet.cmd
dism /unmount-wim /mountdir:\PEx64\mount /commit
- copy PreStagedMedia.swm, PreStagedMedia2.swm, and PreStagedMedia3.swm to root of thumbdrive.
@ikasty
ikasty / README.md
Last active June 18, 2024 06:46
'Cat' solution for colorized logs in docker-compose

When you use docker-compose, logs are not colorized like: before

However, you can get colorized logs using really-cute-'cat' solution. Instead of

docker-compose up

using

docker-compose up | cat
@culots
culots / gpt_parser.py
Created September 2, 2016 07:19
Feed this your GPT.bin, and out it shoots a partition.xml
#!/usr/bin/python
# Author : n0fate
# E-Mail [email protected], [email protected]
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
@epixoip
epixoip / 8x1080.md
Last active November 3, 2024 15:42
8x Nvidia GTX 1080 Hashcat Benchmarks
@vincent99
vincent99 / README.md
Created May 24, 2016 18:57
Rancher on docker-for-mac with xhyve

Install Docker for Mac (http://beta.docker.com)

Install docker-machine-driver-xhyve (https://github.com/zchee/docker-machine-driver-xhyve)

brew install docker-machine-driver-xhyve sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

Deploy the latest release

docker run -d --privileged -p 8080:8080 --name=rancher-server rancher/server:latest

or a build-master

var npm = require("npm");
var fs = require("fs-extra");
var chokidar = require("chokidar");
var packagePaths = [
"../mobile-app/node_modules/shared-package/lib",
"../web-app/node_modules/shared-package/lib",
];
var noop = () => {};
[ 0.000000] Linux version 4.6.0-rc3 (kas@kshutemo-desk) (gcc version 5.3.0 (Gentoo 5.3.0 p1.0, pie-0.6.5) ) #37 SMP PREEMPT Mon Apr 11 18:18:13 MSK 2016
[ 0.000000] Command line: BOOT_IMAGE=../vmlinuz dolvm rw root=UUID=dc179bdb-77c0-4166-8d43-f828994c99a0 rootdelay=1 intel_mmu=igfx_off iommu=pt drm.debug=0xe initrd=../initramfs
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] x86/fpu: Using 'eager' FPU context switches.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009d7ff] usable
@ocombe
ocombe / translateUniversalLoader.ts
Last active May 11, 2023 07:01
ng2-translate file loader for Angular Universal (server side)
import {TranslateLoader} from "ng2-translate/ng2-translate";
import {Observable} from "rxjs/Observable";
import fs = require('fs');
export class TranslateUniversalLoader implements TranslateLoader {
constructor(private prefix: string = 'i18n', private suffix: string = '.json') {}
/**
* Gets the translations from the server
* @param lang