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
var net = require("net"); | |
var events = require("events"); | |
var sys = require("sys"); | |
var fs = require("fs"); | |
function _cutFromRight(str) { | |
if (str.charAt(str.length-1)=="\n") { | |
return [str.substr(0,str.length-1), '']; | |
} | |
var li = str.lastIndexOf("\n"); |
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
/* | |
Usage: | |
FixMysqlBigint = require('FixMysqlBigint'); | |
mysqlConnection.query("SELECT a,b,c FROM z", function(err, results, fieldInfo) { | |
if (err) { | |
... | |
} |
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
# first cleanup | |
apt -y purge --auto-remove systemd-timesyncd python3-systemd lxd-installer snapd systemd-resolved multipath-tools \ | |
polkitd libpolkit-gobject-1-0 udisks2 open-iscsi systemd-hwe-hwdb update-notifier-common ubuntu-release-upgrader-core \ | |
landscape-common unattended-upgrades apport uuid-runtime apparmor \ | |
plymouth | |
# we need network-synced time | |
apt -y install chrony | |
# at this point there should be no packages in "uninstalled not purged" state, but let's keep the command line here for refs |