Skip to content

Instantly share code, notes, and snippets.

@hironaeee
hironaeee / setup.sh
Created January 3, 2021 03:59
ubuntu setup
#!/usr/bin/env bash
# this script save my setup steps
# tested on Ubuntu 20.04
if [ "$UID" -ne 0 ]; then
echo "you are not root, you cannot execute this script!!!"
exit 1
fi
// Lib.js
(function() {	
	var Lib = {};
	var edt = Editor;
	var NORMAL = 'Normal';
	var VISUAL = 'Visual';
	var SELECT = 'Select';
	var INSERT = 'Insert';
	var CMDLINE = 'Cmdline';
@hironaeee
hironaeee / NoWindowWrapper.js
Last active December 5, 2020 15:46
Add .exe
"use strict";
// Objects
wsh = WScript.createObject("WScript.Shell");
// Variables
var shellPath, opt, arg;
var extension;
arg = WScript.Arguments.Item(0);
extension = arg.split(".").slice(-1);