Skip to content

Instantly share code, notes, and snippets.

View amkisko's full-sized avatar
😺
Hymyillen suora selkä!

Andrei GitHub Makarov amkisko

😺
Hymyillen suora selkä!
  • Kisko Labs
  • Helsinki, Finland
View GitHub Profile
@amkisko
amkisko / aws_sec_tools.md
Created February 7, 2023 05:24 — forked from andreajparker/aws_sec_tools.md
AWS security tools

Defensive (Hardening, Security Assessment, Inventory)

@amkisko
amkisko / list_rails_models.rb
Created September 9, 2022 10:14 — forked from lightyrs/list_rails_models.rb
Rails List All Models
ActiveRecord::Base.connection.tables.map do |model|
model.capitalize.singularize.camelize
end
# returns ["Activity", "Article", "User", "Video", "Vote"]

Getting X11 GUI applications to work on OS X with Docker

Install depedent packages via Brew (one-time setup)

$ brew install socat
$ brew cask install xquartz

Setup XQuartz

So, you want to be able to work from anywhere. You want to be on a mountain somewhere, two bars of 3G signal, and you forward that to your laptop with a WiFi hotspot. Open your laptop and your shell on remote is already open and as responsive as possible. Work/life balance? With power like this, who cares?

Problem Scenario

Often, in academic institutions at least, you have the following situation:

@amkisko
amkisko / README.md
Created September 9, 2020 09:31 — forked from qdm12/README.md
Wireguard and iptables restrictions for multiple users

Wireguard and iptables restrictions for multiple users

If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.

Assumptions

This should fit most setups (not mine though 😉)