Skip to content

Instantly share code, notes, and snippets.

View alrayyes's full-sized avatar

Ryan Kes alrayyes

View GitHub Profile
@alrayyes
alrayyes / arch-linux-install.md
Created October 3, 2022 16:06 — forked from kylemanna/arch-linux-install.md
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
stages:
- setup
- test
- compile
- build
services:
- docker:dind
setup:test:
@alrayyes
alrayyes / ssh-dmenu
Created June 1, 2019 11:42
A little dmenu script I made to handle ssh connections
#!/bin/bash
# get hostnames from ~/.ssh/known_hosts
ssh_host="$(awk -F "[ ,]+" '{print $1}' ~/.ssh/known_hosts | tr -d '[]' | uniq | sort -n | dmenu)"
# split hostnames into array { hostname, port }
mapfile -t params < <(echo "$ssh_host" | awk -F ":" '{print $1} {if ($2) print $2}')
if [ -n "$ssh_host" ]; then
# If array size is two then second parameter is port number
if [ ${#params[@]} -eq 2 ]; then
@alrayyes
alrayyes / cf.sh
Created August 27, 2017 19:27 — forked from jaytaylor/cf.sh
CloudFlare command-line DNS management shell script, now with CloudFlare v4 API support!
#!/usr/bin/env bash
##
# @author Jay Taylor [@jtaylor]
# @date 2013-08-15
#
# @description CloudFlare management script.
#
# Path ENV VAR override.

Keybase proof

I hereby claim:

  • I am alrayyes on github.
  • I am alrayyes (https://keybase.io/alrayyes) on keybase.
  • I have a public key ASBbJnrEWvMPvAKoZrw-c8xvEBL2VOeu89wKoykocCqP7wo

To claim this, I am signing this object:

@alrayyes
alrayyes / Remove all containers based on Docker image name.md
Last active October 6, 2018 07:40
Remove all containers based on Docker image name
@alrayyes
alrayyes / LICENSE
Last active May 2, 2016 11:33 — forked from msqr/LICENSE
d3 gauge
This code is released under the MIT license.
Copyright (C) 2012 Matt Magoffin
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
@alrayyes
alrayyes / gist:a2a8fa7ad0747d5c8b2b
Created October 3, 2015 16:09
vbox.log docker-machine
00:00:00.335393   SMEP - Supervisor Mode Execution Prevention             = 0 (0)
00:00:00.335395   BMI2 - Advanced Bit Manipulation extension 2            = 0 (0)
00:00:00.335396   ERMS - Enhanced REP MOVSB/STOSB instructions            = 0 (0)
00:00:00.335397   INVPCID - INVPCID instruction                           = 0 (0)
00:00:00.335399   RTM - Restricted Transactional Memory                   = 0 (0)
00:00:00.335400   PQM - Platform Quality of Service Monitoring            = 0 (0)
00:00:00.335401   DEPFPU_CS_DS - Deprecates FPU CS, FPU DS values if set  = 0 (0)
00:00:00.335402   MPE - Intel Memory Protection Extensions                = 0 (0)
00:00:00.335403   PQE - Platform Quality of Service Enforcement           = 0 (0)
@alrayyes
alrayyes / gist:79bfc9bfc51d44c505cf
Last active October 3, 2015 15:53
docker-machine --debug ls
executing: /usr/local/bin/VBoxManage showvminfo default --machinereadable
STDOUT: name="default"
groups="/"
ostype="Linux 2.6 / 3.x / 4.x (64-bit)"
UUID="b010cf27-762c-4387-9716-0a896d6ada0d"
CfgFile="/Users/l0rd/.docker/machine/machines/default/default/default.vbox"
SnapFldr="/Users/l0rd/.docker/machine/machines/default/default/Snapshots"
LogFldr="/Users/l0rd/.docker/machine/machines/default/default/Logs"
hardwareuuid="b010cf27-762c-4387-9716-0a896d6ada0d"