-
FAR (Fix (NieR) Automata Resolution) -- Required by HD Texture Pack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FFMPEG '-i', file, '-c:v', 'libopenjpeg', "jpeg2000\\" + name + ".jp2"\ | |
Convert image to jpeg2000 | |
ffmpeg -i in.png -c:v libopenjpeg out.jp2 | |
Hex Edit out.jp2 | |
ffmpeg -i in.jp2 -c:v png out.png | |
General Edit | |
ffmpeg -i input.avi -c:v mpeg2video -g 999 -q:v 1 output.avi | |
*edit in avidemux/whatever* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RSA with node-forge | |
"use strict"; | |
// npm install node-forge | |
const forge = require("node-forge"); | |
new Promise((f, r) => forge.pki.rsa.generateKeyPair( | |
2048, (err, pair) => err ? r(err) : f(pair))) | |
.then(keypair => { | |
const priv = keypair.privateKey; |
Follow the below steps to install chrome webdrivers on Ubuntu
- Install Unzip
sudo apt-get install unzip
- Assuming you're running a 64-bit OS, download the latest version of chromedriver from their website
wget -N http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip -P ~/Downloads unzip ~/Downloads/chromedriver_linux64.zip -d ~/Downloads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Services.factory("LawnchairFactory", function($window, $log, $parse) { | |
return function(name, config) { | |
var collection = {}; | |
var array = []; | |
var isArray = config && config.isArray; | |
var idGetter = $parse((config && config.entryKey) ? config.entryKey : "id"); | |
var transformSave = (config && config.transformSave) ? config.transformSave : angular.identity; | |
var transformLoad = (config && config.transformLoad) ? config.transformLoad : angular.identity; | |
function getEntryId(entry){ |