bonus tip: for more darkness > https://darkreader.org/
gem "lograge" | |
gem "logstash-event" | |
gem "logstash-logger" |
#! /usr/bin/env ruby | |
# NOTE: Requires Ruby 2.1 or greater. | |
# This script can be used to parse and dump the information from | |
# the 'html/contact_info.htm' file in a Facebook user data ZIP download. | |
# | |
# It prints all cell phone call + SMS message + MMS records, plus a summary of each. | |
# | |
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created |
# Use hyper.is or iTerm2 as terminal emulators | |
# Install ohmyzsh | |
# https://github.com/robbyrussell/oh-my-zsh | |
# Copy over configs from ~/.bash_profile | |
# For example, it may have the nvm setup or any aliases like exa=ls and cat=bat | |
# ~/.hyper.js configuration: | |
copyOnSelect: true |
You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
-
Kinesis Freestyle (Terrible key switches. Mushy and un-lovable)
-
Kinesis Freestyle Edge (Traditional layout with too many keys, mech switches, proably too big to be tented easily/properly)
-
Matias Ergo Pro (Looks pretty great. Have not tried.)
-
ErgoDox Kit (Currently, my everyday keyboard. Can buy pre-assembled on eBay.)
-
ErgoDox EZ (Prolly the best option for most people.)
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
# Add the "https://github.com/jwt/ruby-jwt" gem to your "Gemfile" | |
gem 'jwt' |
require 'openssl' | |
# Generate X509 CSR (certificate signing request) with SAN (Subject Alternative Name) extension and sign it with the RSA key | |
def generate_csr(common_name, organization, country, state_name, locality, domain_list) | |
# create signing key | |
signing_key = OpenSSL::PKey::RSA.new 2048 | |
# create certificate subject | |
subject = OpenSSL::X509::Name.new [ | |
['CN', common_name], |
Suppose we want to wrap a container running a Redis instance as a service.
We must override the service unit file that ships with docker (under /lib/systemd/system
) in order to pass some
cgroup-related options to the docker daemon. So, following the usual method to override parts of a unit file, we
create the file /etc/systemd/system/docker.service.d/10-service.conf
with contents: