Skip to content

Instantly share code, notes, and snippets.

View fentas's full-sized avatar
🐷
Oink.

Jan Guth fentas

🐷
Oink.
View GitHub Profile
.style-2 input[type="text"] {
padding: 10px;
border: solid 5px #c9c9c9;
transition: border 0.3s;
}
.style-2 input[type="text"]:focus,
.style-2 input[type="text"].focus {
border: solid 5px #969696;
}
$ openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
...
$ openssl rsa -passin pass:x -in server.pass.key -out server.key
writing RSA key
$ rm server.pass.key
$ openssl req -new -key server.key -out server.csr
...
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:California
...
@fentas
fentas / lc-tlscert.go
Created August 26, 2015 15:21
generate certs easily
/*
* Copyright 2014 Jason Woods.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@fentas
fentas / app.js
Created September 28, 2015 09:46 — forked from andrewdeandrade/app.js
Node.js ('child_process').spawn bug with SSH
var spawn = require('child_process').spawn
var instance = {
ipAddress: "0.0.0.0"
};
var awsPreSharedKeyPath = '~/.ssh/aws-preshared-key.pem'; // make sure key has permissions 600 with chmod
var spawnArgs = [ '-tt', // force teletype since ssh uses a psuedo-terminal
@fentas
fentas / bash.generate.random.alphanumeric.string.sh
Created April 29, 2017 19:09 — forked from earthgecko/bash.generate.random.alphanumeric.string.sh
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
Commit Type Emoji Code UTF-8
Initial Commit 🎉 :tada:
Version Tag 🔖 :bookmark:
New Feature :sparkles:
Bugfix 🐛 :bug:
Metadata 📇 :card_index:
Refactoring ♻️ :recycle:
Documentation 📚 :books:
Internationalization 🌐 `:globe_with_merid
@fentas
fentas / curl-websocket.sh
Created June 28, 2017 14:10 — forked from htp/curl-websocket.sh
Test a WebSocket using curl.
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/
# use this to try: http://eosrei.github.io/emojione-color-font/full-demo.html
#
# first try
sudo apt-get update
sudo apt-get install ttf-ancient-fonts
# if not working
# http://gschoppe.com/uncategorized/fixing-unicode-support-in-google-chrome/
#
# alternatively: https://github.com/eosrei/emojione-color-font
https://github.com/jaagr/dots/tree/master/.local/etc/themer/themes/space
https://github.com/ryanoasis/nerd-fonts/releases/tag/v1.0.0
http://ftp.openbsd.dk/pub/getdeb/ubuntu/pool/apps/p/polybar/