Start up a container (whichever Linux flavour takes your fancy):
docker run -it ubuntu /bin/bash
docker run -it centos /bin/bash| defaults write com.apple.Dock appswitcher-all-displays -bool true | |
| killall Dock |
| # path on linux /usr/share/dbeaver/dbeaver.ini | |
| # path on macos /Applications/DBeaverEE.app/Contents/Eclipse/dbeaver.ini | |
| -vm | |
| /usr/bin/java | |
| -startup | |
| plugins/org.eclipse.equinox.launcher_1.5.600.v20191014-2022.jar | |
| --launcher.library | |
| plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1100.v20190907-0426 | |
| -vmargs | |
| -javaagent:/home/tunknown/.apps/dbeaver/dbeaver-agent.jar |
| #!/bin/sh | |
| timezone="Europe/Zurich" | |
| # List of valid timezones: wikipedia.org/wiki/List_of_tz_database_time_zones | |
| script="${0##*/}" | |
| rootdir=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd) | |
| logfile="$script.log" | |
| log="$rootdir/$logfile" | |
| now=$(TZ=":$timezone" date) | |
| # Uncomment 'mailto=' (remove #) to enable emailing the log upon completion | |
| #mailto="your@email.com" |
| 'use strict'; | |
| module.exports = function CustomError(message, extra) { | |
| Error.captureStackTrace(this, this.constructor); | |
| this.name = this.constructor.name; | |
| this.message = message; | |
| this.extra = extra; | |
| }; | |
| require('util').inherits(module.exports, Error); |
| // socket io | |
| var app = require('http').createServer(handler), | |
| io = require('socket.io').listen(app), | |
| fs = require('fs'); | |
| app.listen(3000, function() { | |
| console.log('Socket IO Server is listening on port 3000'); | |
| }); | |
| function handler(req, res) { |
| #!/bin/sh | |
| # Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264 | |
| if [ "`/usr/bin/whoami`" != "root" ]; then | |
| echo "You need to execute this script as root." | |
| exit 1 | |
| fi | |
| cat > /etc/yum.repos.d/centos.repo<<EOF |
| <!DOCTYPE html> | |
| <html ng-app> | |
| <head> | |
| <title>Add / List Data (AngularJS)</title> | |
| <style> | |
| .list_data { margin-bottom: 2rem } | |
| table, th, td { border: 1px solid #AAA } | |
| th { cursor: pointer } | |
| </style> | |
| </head> |
| # source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide | |
| yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel | |
| mkdir ~/ffmpeg_sources | |
| cd ~/ffmpeg_sources | |
| curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
| tar xzvf yasm-1.2.0.tar.gz | |
| cd yasm-1.2.0 |
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |