Skip to content

Instantly share code, notes, and snippets.

const path = require('path')
const fs = require('fs')
const [script, name] = process.argv.slice(2)
switch (script) {
case undefined:
case '-h':
case '--help':
console.log(`
nodejs port of appify v3.0.1 - http://mths.be/appify
/**
* Flowtype definitions for index
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.2.0
* Author: [Joar Wilk](http://twitter.com/joarwilk)
* Repo: http://github.com/joarwilk/flowgen
*/
declare module 'mithril' {
const fs = require('fs')
const path = require('path')
const matcher = /xlink:href="data:(img|image)\/([a-z]+);base64,([^"]+)"/gi
const file = process.argv.pop()
const noop = function() {}
fs.readFile(file, 'utf-8', function (err, data) {
if (err) return console.error(err)
const name = path.basename(file, '.svg')
let newData = data
Windows Registry Editor Version 5.00
; Disable Bing search in start menu
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer]
"DisableSearchBoxSuggestions"=dword:00000001
; Remove Quick Access
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"HubMode"=dword:00000001