# Install version 6 of imagemagick to comply with Magick.xs
brew install imagemagick@6 --with-perl
# Create links so make can find C libraries.
# imagemagick@6 is keg-only and must be linked with --force
This file contains 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; | |
foreach my $red ( 0..5 ) { | |
foreach my $green ( 0..5 ) { | |
foreach my $blue ( 0..5 ) { | |
printf( | |
"\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\", |
This file contains 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
import OpenSSL.crypto | |
def main(): | |
cert_file = '/Users/Simon/combined.pem' | |
certificates = {} | |
certificate_id = 0 | |
with open(cert_file, 'r') as f: | |
for line in f: |
This file contains 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 -e | |
# Set a default port | |
SSH_PORT=${1:-998} | |
# Disable password login | |
sudo sed -i "/PasswordAuthentication/s/yes/no/g" /etc/ssh/sshd_config |
This file contains 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 | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=2.7 |
This file contains 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 -o errexit | |
set -o pipefail | |
set -o nounset | |
if [[ -n $(docker ps -a -q -f status=exited) ]]; then | |
docker rm $(docker ps -a -q -f status=exited) | |
fi |
This file contains 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 ExtUtils::Installed; | |
use warnings; | |
use strict; | |
use feature qw( say ); | |
my $inst = ExtUtils::Installed->new(); | |
foreach my $module ( $inst->modules ) { |
This file contains 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 | |
sudo yum groups install -y Development\ tools | |
sudo yum install -y cmake python36-{devel,pip} | |
sudo pip-3.6 install neovim --upgrade | |
( | |
cd $HOME | |
tmpdir="$(mktemp -d)" | |
cd $tmpdir | |
git clone https://github.com/neovim/neovim.git |
This file contains 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; |
This file contains 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" |
OlderNewer