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
docker run -ti busybox sh | |
whoami | |
apk update | |
apk add parallel |
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
docker run -ti alpine sh | |
whoami | |
apk update | |
apk add parallel |
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
.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 |
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
awe-shell ??? | |
aws configure //attach an account | |
aws s3 ls | |
aws iam list-users --output table |
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
#!/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 |
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
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); |
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
<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 | |
]; |
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
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 |
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
// 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"); |
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
<!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> |