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 bash | |
# | |
# Easily start/stop sshuttle | |
# | |
# <xbar.title>sshuttle</xbar.title> | |
# <xbar.version>v1.3</xbar.version> | |
# <xbar.author>Elias Abacioglu</xbar.author> | |
# <xbar.author.github>Raboo</xbar.author.github> | |
# <xbar.desc>Easily start/stop a background sshuttle.</xbar.desc> | |
# <xbar.dependencies>sshuttle</xbar.dependencies> |
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
#!/bin/bash | |
# | |
# A simple bash script to migrate your Docker Hub organization to Github Container Registry. | |
# forked from https://gist.github.com/charlieoleary/05c1dab2e19703f73a041e585e060dc9 | |
# | |
# In order for this to work you must run this from a system that is logged in to both the GHCR | |
# repository you are migrating to and the Docker Hub organization you are migrating FROM with | |
# podman. | |
# | |
# Due to how Docker works (pulling / pushing images), this script can be run over and over |
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
# should be faster than rsync | |
# 1. receiver | |
nc -l 6001 | tar xvpP | |
# 2. sender | |
tar cfP - /etc/profile.d | nc ${HOST} 6001 |
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
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
# Yet-Another-Bench-Script # | |
# v2021-12-28 # | |
# https://github.com/masonr/yet-another-bench-script # | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
Fri 14 Jan 2022 10:33:16 AM UTC | |
Basic System Information: | |
--------------------------------- |
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
#!/bin/sh | |
# https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+components+on+a+host | |
AMBARI_USER='admin' | |
AMBARI_PASSWORD='PWPWPW' | |
AMBARI_HOST='ambari.local' | |
CLUSTER_NAME='hdp' | |
NODE='hadoop-master04.se-ix.delta.prod' | |
# curl -u $AMBARI_USER:$AMBARI_PASSWORD -H "X-Requested-By: ambari" -X GET http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER_NAME/components/ | grep component_name | |
curl -u $AMBARI_USER:$AMBARI_PASSWORD -H "X-Requested-By:ambari" -i -X DELETE http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER_NAME/hosts/$NODE/host_components/WEBHCAT_SERVER |
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
#!/bin/bash | |
AMBARI_USER='admin' | |
AMBARI_PASSWORD='PWPWPW' | |
AMBARI_HOST='localhost' | |
CLUSTER_NAME='mitate' | |
MOVE_FROM='old-host.mitate.com' | |
MOVE_TO='new-host.mitate.com' | |
SSH_USER=john.doe |
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
#!/bin/bash | |
# -*- coding: utf-8 -*- | |
# <xbar.title>Kubeconfig Namespace & Context Switcher</xbar.title> | |
# <xbar.version>v0.1</xbar.version> | |
# <xbar.author>Elias Abacioglu</xbar.author> | |
# <xbar.author.github>Raboo</xbar.author.github> | |
# <xbar.desc>Displays active kubeconfig namespace and allows you to easily change namespaces.</xbar.desc> | |
# <xbar.dependencies>bash,kubectl</xbar.dependencies> |
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
#!/bin/sh | |
# URL https://gist.github.com/Raboo/eda65914c4bcb2af2b32 | |
# add following to sudo | |
# Cmnd_Alias SMARTCTL = /usr/local/sbin/smartctl | |
# daemon ALL=(ALL) NOPASSWD: SMARTCTL | |
# add following to /usr/local/etc/collectd.conf | |
# LoadPlugin exec |
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
# ubuntu | |
excluded_sections = '!Section (comm), !Section (debug), !Section (fonts), !Section (games), !Section (gnome), !Section (graphics), !Section (kde), !Section (localization), !Section (math), !Section (restricted/x11), !Section (science), !Section (sound), !Section (translations), !Section (universe/comm), !Section (universe/debug), !Section (universe/electronics), !Section (universe/embedded), !Section (universe/fonts), !Section (universe/games), !Section (universe/gnome), !Section (universe/gnustep), !Section (universe/graphics), !Section (universe/hamradio), !Section (universe/kde), !Section (universe/localization), !Section (universe/math), !Section (universe/news), !Section (universe/science), !Section (universe/sound), !Section (universe/translations), !Section (universe/video), !Section (universe/x11), !Section (universe/xfce), !Section (universe/zope), !Section (video), !Section (x11), !Section (zope)' | |
# packages that we want to include from excluded sections | |
included_packages = '| fonts-dejavu| |
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
+-----------------------------------------------------------------------------------------+ | |
|Ena änden av vår lokal Andra änden av vår lokal | | |
| | | |
| | | |
| | | |
+------------+ +-------------------+ | |
|| Upplänk | 1Gbit/s CAT 6.e/CAT 7 kabel |Switch med || | |
|| + +--------------------------------------------------------+anslutning till || | |
|| LAN Router| |alla accesspunkter|| | |
|| 1 Gbit/s | +-------------------+ |
NewerOlder