Skip to content

Instantly share code, notes, and snippets.

View questsin's full-sized avatar

Nicholas Manolakos questsin

View GitHub Profile
docker run -ti busybox sh
whoami
apk update
apk add parallel
docker run -ti alpine sh
whoami
apk update
apk add parallel
.bash_profile
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
export PATH=~/.local/bin:$PATH
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
//bash //Perl //Python
#!/bin/bash 
//.sh
awe-shell ???
aws configure //attach an account
aws s3 ls
aws iam list-users --output table
#!/bin/bash
mencoder S03E04.rmvb -oac mp3lame -ovc lavc -o 04.avi
mencoder S03E08.rmvb -oac mp3lame -ovc lavc -o 08.avi
mencoder S03E12.rmvb -oac mp3lame -ovc lavc -o 12.avi
mencoder S03E16.rmvb -oac mp3lame -ovc lavc -o 16.avi
mencoder S03E20.rmvb -oac mp3lame -ovc lavc -o 20.avi
mencoder S03E05.rmvb -oac mp3lame -ovc lavc -o 05.avi
mencoder S03E09.rmvb -oac mp3lame -ovc lavc -o 09.avi
mencoder S03E13.rmvb -oac mp3lame -ovc lavc -o 13.avi
const WebSocket = require('ws');
const ws = new WebSocket('wss://127.0.0.1');
ws.on('open', function open() {
ws.send('something');
});
ws.on('message', function incoming(data) {
console.log(data);
<script>
//(c)2010 Oscar Toledo G.
var B, i, y, u, b, I = [],
G = 120,
x = 10,
z = 15,
M = 1e4,
l = [5, 3, 4, 6, 2, 4, 3, 5, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 13, 11, 12, 14, 10, 12, 11, 13, 0, 99, 0, 306, 297, 495, 846, -1, 0, 1, 2, 2, 1, 0, -1, -
1, 1, -10, 10, -11, -9, 9, 11, 10, 20, -9, -11, -10, -20, -21, -19, -12, -8, 8, 12, 19, 21
];
const spawn = require('threads').spawn;
const thread = spawn(function(input, done) {
// Everything we do here will be run in parallel in another execution context.
// Remember that this function will be executed in the thread's context,
// so you cannot reference any value of the surrounding code.
done({ string : input.string, integer : parseInt(input.string) });
});
thread
// Load the net module to create a tcp server.
var net = require('net');
// Creates a new TCP server. The handler argument is automatically set as a listener for the 'connection' event
var server = net.createServer(function (socket) {
// Every time someone connects, tell them hello and then close the connection.
console.log("Connection from " + socket.remoteAddress);
socket.end("Hello World\n");
<!DOCTYPE html>
<html>
<head><title>blank</title></head>
<body>
<svg width="400" height="110" >
<rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" />
</svg>
<svg height="60" width="200" >
<text x="0" y="15" fill="red" transform="rotate(30 20,40)">I love SVG</text>