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
# ~/src/non-oss-container/build.sh | |
#!/bin/bash | |
set -euo pipefail | |
mkdir -p ~/non-oss-root/ | |
podman image rm --force localhost/non-oss || : |
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
# Set vi keys for copy mode | |
set-option -g status-keys vi | |
set-window-option -g mode-keys vi | |
set-option -g history-limit 10000 | |
# Copy mode info: default enter copy mode is C-[ and paste is C-] | |
# `prefix + p` pastes the latest buffer (for some reason Ctrl + ] doesn't work) | |
bind p paste-buffer |
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
### These are bash functions meant to be run directly in a shell. | |
### You need to source this file in your shell. Running it won't do anything | |
# A shortcut function that simplifies usage of xclip. | |
# - Accepts input from either stdin (pipe), or params. | |
cb() | |
{ | |
local SUCCESS_COLOR="\e[0;32m" | |
local WARNING_COLOR="\e[1;31m" | |
local TRUNCATE_COLOR="\e[0;33m" |
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
adbdevicecount() | |
{ | |
adb devices | grep -P '\sdevice$' | sed -e 's/device//g' | wc -l | |
} | |
adbkeyevent() | |
{ | |
if [ -z "${1}" ]; then | |
echo "oops! Pass one arg with button. example 'adbkeyevent ENTER'" | |
elif [ -z "${ANDROID_SERIAL}" ] && [ "$(adbdevicecount)" = '1' ]; then |
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
{ | |
"key_events": { | |
"key_unknown": "adb shell input keyevent 0", | |
"key_soft_left": "adb shell input keyevent 1", | |
"key_soft_right": "adb shell input keyevent 2", | |
"key_home": "adb shell input keyevent 3", | |
"key_back": "adb shell input keyevent 4", | |
"key_call": "adb shell input keyevent 5", | |
"key_endcall": "adb shell input keyevent 6", | |
"key_0": "adb shell input keyevent 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
#! /usr/bin/env python | |
# | |
# vmware2libvirt: migrate a vmware image to libvirt | |
# Author: Jamie Strandboge <[email protected]> | |
# | |
# Copyright (C) 2008 Canonical Ltd. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License version 3, | |
# as published by the Free Software Foundation. |
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
# Install cockpit and pcp and activate services | |
dnf install -y cockpit pcp cockpit-pcp | |
systemctl enable --now cockpit.socket | |
systemctl enable --now pmlogger | |
# If needed, open port 9090 in the firewall | |
firewall-cmd --zone=public --permanent --add-service=cockpit | |
# Alternatively you can open port 9090 to only your own IP | |
firewall-cmd --zone=public --permanent --add-rich-rule='rule family="ipv4" source address="38.14.154.124" port protocol="tcp" port="9090" accept' |
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
wget https://raw.githubusercontent.com/FreedomBen/digall/main/digall \ | |
&& chmod +x digall |
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
dig +noall +answer '<domain>' '<type>' |
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
dig +noall +answer gmail.com SOA | |
dig +noall +answer gmail.com NS | |
dig +noall +answer gmail.com SPF | |
dig +noall +answer gmail.com TXT | |
dig +noall +answer gmail.com MX | |
dig +noall +answer gmail.com AAAA | |
dig +noall +answer gmail.com A |
NewerOlder