Skip to content

Instantly share code, notes, and snippets.

View kutata's full-sized avatar
🌴
On vacation

kutata kutata

🌴
On vacation
View GitHub Profile
@kutata
kutata / generate-dropbear-key
Created January 27, 2021 10:20 — forked from hongkongkiwi/generate-dropbear-key
Generate SSH Key in Dropbear
#!/bin/bash
KEY_DIR="/mnt/sda1/.ssh"
# Make directories
mkdir -p "$KEY_DIR"
# Generate an RSA key using dropbear
dropbearkey -t rsa -f "${KEY_DIR}/id_rsa"
@kutata
kutata / md
Last active May 20, 2019 08:12
testing
In short, you're running out of ports.
The default ephemeral port range on osx is 49152-65535, which is only 16,383 ports.
Since each ab request is http/1.0 (without keepalive in your first examples), each
new request takes another port.
As each port is used, it get's put into a queue where it waits for the tcp
"Maximum Segment Lifetime", which is configured to be 15 seconds on osx. So if you
@kutata
kutata / index.html
Last active February 2, 2018 19:07
a bootstrap base front-end pagination demo. online -> : https://kutata.github.io/my-gists/pagination
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>pagination</title>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<link href="https://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
<style>
/* pagination */
.container { text-align: center; }
@kutata
kutata / editor.css
Last active February 2, 2018 19:05
a editor demo with line number support. 💻 online -> : https://kutata.github.io/my-gists/editor/
* { font-family: 'Courier New', Courier, monospace; }
.no-select {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome and Opera */