Skip to content

Instantly share code, notes, and snippets.

View alexanderadam's full-sized avatar
⌨️
⌨️

Alexander ADAM alexanderadam

⌨️
⌨️
View GitHub Profile
@alexanderadam
alexanderadam / dns_debug.rb
Created February 12, 2025 12:30
Simple Ruby script to check DNS visibility with `dig` on various DNS servers
#!/usr/bin/env ruby
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'resolv'
gem 'logger'
gem 'colorize'
gem 'optparse'
@alexanderadam
alexanderadam / s3_last_access_date.rb
Created February 12, 2025 09:59
Simple Ruby script to check when the data in an Exoscale S3 bucket was last modified
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'aws-sdk-s3', '~> 1.0'
gem 'terminal-table', '~> 3.0'
@alexanderadam
alexanderadam / mailserver_test.rb
Created January 28, 2025 15:34
Small script to check the health of a mailserver (IMAP and SMTP ports, SPF, etc)
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'net-smtp'
gem 'net-imap'
gem 'resolv'
@alexanderadam
alexanderadam / SCSS.md
Created March 6, 2022 19:46 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

Draw Numbers Complementary #
1979-03-31 [2, 8, 17, 19, 21, 40] 1
1979-03-24 [3, 0, 5, 16, 35, 36] 37
1979-03-17 [0, 5, 6, 12, 19, 29] 39
1979-03-10 [12, 18, 2, 0, 25, 35] 38
1979-03-03 [3, 4, 11, 21, 27, 32] 37
1979-02-24 [5, 6, 14, 24, 34, 36] 26
1979-02-17 [5, 9, 17, 18, 20, 28] 29
1979-02-10 [6, 11, 18, 27, 32, 40] 13
1979-02-03 [6, 13, 23, 32, 36, 39] 9
@alexanderadam
alexanderadam / docker-on-android.md
Created October 23, 2020 14:59 — forked from arno01/docker-on-android.md
Docker on Android

WORK IN PROGRESS

Docker on Android

Setup:

Samsung Galaxy Tab S5e SM-T720
Android Pie on Linux 4.9.112 (not rooted)
Termux
@alexanderadam
alexanderadam / macOS_launcher.sh
Created August 14, 2020 13:07 — forked from StefanoBelli/macOS_launcher.sh
Fast OS X launch on QEMU with KVM support enabled. Credits to: https://github.com/kholia, original repository: https://github.com/kholia/OSX-KVM
#!/bin/sh
# qemu-img create -f qcow2 mac_hdd.img 64G
# echo 1 > /sys/module/kvm/parameters/ignore_msrs
#
# Type the following after boot,
# -v "KernelBooter_kexts"="Yes" "CsrActiveConfig"="103"
#
# printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))
#
@alexanderadam
alexanderadam / debug.md.html
Last active July 8, 2020 10:08
Properly debug Jekyll variables
---
layout: page
title: debug
permalink: /debug
---
<div id="jekyll-debug"></div>
<script>
var debugDiv = document.getElementById('jekyll-debug');
@alexanderadam
alexanderadam / unsubscribe_from_github_issue_notifications.rb
Last active December 24, 2020 20:28
Script to unsubscribe from all issue notifications on GitHub
#!/usr/bin/env ruby
# set env variables GITHUB_USER and GITHUB_PASS
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'ferrum'
end
@alexanderadam
alexanderadam / Dockerfile
Created March 11, 2020 12:41 — forked from blacksheep--/Dockerfile
Traefik Catch-All to return HTTP421 for unresolved routes
FROM golang:1.14-alpine
COPY . /go/src/app
WORKDIR /go/src/app
RUN go get -v -d
RUN go install
CMD ["app"]