Notes and useful commands and configuration for a minimal setup of CFSSL using root CA issued by mkcert.
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
| #!/usr/bin/env python | |
| """ Plot a circle with """ | |
| import math | |
| import matplotlib.pyplot as plt | |
| def main(): | |
| """ Plot """ | |
| radius = 120 |
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
| require "yaml" | |
| # This Vagrantfile was made to run docker-compose inside Vagrant with AWS | |
| # access via `awscli` and support to fetch docker containers from AWS ECR. | |
| # Because of this the personal aws credentials on the host machine will be | |
| # copied upon provisioning. The provisioning also assumes that there's a `.env` | |
| # file used for some variables set in docker-compose. | |
| # | |
| # During the provisioning all ports exposed in the docker-compose file will be | |
| # fetcehd and forwarded to the host from the guest to allow access on that port. |
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
| #!/usr/bin/env perl | |
| use warnings; | |
| use strict; | |
| use feature qw( say ); | |
| use threads; | |
| use threads::shared; | |
| my $is_running :shared: = 1; |
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
| #!/usr/bin/bash | |
| autocutsel -fork & | |
| autocutsel -selection PRIMARY -fork & |
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 | |
| set -eu | |
| for ws in {1..5}; do | |
| i3-msg workspace $ws | |
| i3-msg move workspace to output primary | |
| done | |
| # Mark #1 as active |
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 | |
| LVDS="eDP-1" | |
| PRIMARY="DP-2-1" | |
| function get_displays() { | |
| xrandr -q | grep connected | awk '{print $1}' | |
| } | |
| function get_resolution() { |
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
| package main | |
| import ( | |
| "bytes" | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" | |
| "crypto/x509/pkix" | |
| "encoding/asn1" | |
| "encoding/pem" |
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
| $_ = "wftedskaebjgdpjgidbsmnjgc"; | |
| tr/a-z/oh, turtleneck Phrase Jar!/; print; |