Skip to content

Instantly share code, notes, and snippets.

View anthr76's full-sized avatar

Anthony Rabbito anthr76

View GitHub Profile
@pamolloy
pamolloy / README.md
Last active January 23, 2024 07:28
Ubiquiti USG configuration for Wireguard

Download the latest ugw3 package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb.

cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key
@mcfrojd
mcfrojd / Shield_Intents.MD
Last active June 1, 2024 04:10
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@kytulendu
kytulendu / install-opencl-amd.sh
Last active May 30, 2024 16:27
A shell script to install AMDGPU-PRO OpenCL driver.
#!/bin/bash
# This script will install AMDGPU-PRO OpenCL and Vulkan support.
#
# For Ubuntu and it's flavor, just install the package using this command
# in extracted driver directory instread.
#
# ./amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms
#
# For Arch Linux or Manjaro, use the opencl-amd or rocm-opencl-runtime on AUR instread.
@berndbausch
berndbausch / autoinst.yml
Created February 8, 2019 22:41
autoyast for simple OpenSuse 15 installation
<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<add-on>
<add_on_products config:type="list"/>
</add-on>
<bootloader>
<global>
<append>resume=/dev/disk/by-uuid/ba6011fb-7d2a-45d9-acf9-4ffee031f253 splash=silent quiet showopts</append>
<gfxmode>auto</gfxmode>
@trondhindenes
trondhindenes / .gitlab-ci.yml
Last active April 17, 2024 10:07
Run KinD (Kubernetes in Docker) as part of Gitlab CI job
#Spin up Kubernetes control plane as part of before_script, and destroys it using after_script
#Some custom logic to get to the right ip address
#Requres the gitlab docker runner, with "pass-thru" to the host docker socket.
stages:
- test
image: python:3.6.6 #the docker image you run in needs Docker installed, and access to the host docker socket.
test_integration_k8s:
tags:
@luk6xff
luk6xff / ARMonQEMUforDebianUbuntu.md
Last active April 23, 2024 17:11 — forked from bruce30262/ARMDebianUbuntu.md
Emulating ARM with QEMU on Debian/Ubuntu

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

If there's no qemu-arm-static in the package list, install qemu-user-static instead

@carlwgeorge
carlwgeorge / gnome.yml
Last active March 14, 2024 22:16
ansible playbook for my gnome setup
# https://docs.ansible.com/ansible/latest/modules/dconf_module.html
#
# To determine what dconf keys and values to use, you can run `dconf watch /`
# in a terminal as you make changes in settings or tweaks. You can also use
# `dconf read <key>` and `dconf write <key> <value>` to experiment with various
# settings. The dconf-editor application is also useful for exploring various
# keys along with their descriptions.
- hosts: localhost
tasks:
@markddavidoff
markddavidoff / slack-pagerduty-oncall.py
Last active April 19, 2024 02:41
Updates a Slack User Group with People that are on call in PagerDuty (updated for pagerduty v2 api and pull from env vars instead of KMS). Based on:https://gist.github.com/devdazed/473ab227c323fb01838f
"""
Lambda Func to update slack usergroup based on pagerduty rotation
From: https://gist.github.com/devdazed/473ab227c323fb01838f
NOTE: If you get a permission denied while setting the usergroup it is because there’s a workspace preference in slack
that limits who can manage user groups. At the time of writing it was restricted to owners and admins so i had to get
an owner to install the app. First i added them as a collaborator and then had them re-install the app, and got the new
auth token and added that to param store.
@xenogew
xenogew / Medium-dark-by-Stylus.css
Created October 1, 2019 02:35
Stylus - Medium.com dark theme, the extends from Medium Dark of 'ultimatetoast27'
@-moz-document url-prefix("https://medium.com"), url-prefix("https://posts.specterops.io"), url-prefix("https://hackernoon.com"), url-prefix("https://blog.0day.rocks"), url-prefix("https://blog.discordapp.com/"), url-prefix("https://blog.ettic.ca/"), url-prefix("https://arlogilbert.com"), url-prefix("https://medium.freecodecamp.org"), url-prefix("https://engineering.salesforce.com") {
/*Dark Stuff*/
/*dark-dark*/
.u-backgroundTransparentWhiteDarkest, .u-backgroundGrayLightest, .u-background--brandSageLighter,.metabar-block, .textInput, .metabar, .h {
background-color: #292929 !important;
color: #d5d5d5;
}
/*light-dark*/
body, html, article, .cardChromeless, .screenContent, .canvas-renderer, .u-backgroundColorWhite {
background-color: #2f2f2f !important;
@pyrou
pyrou / docker-compose.yml
Last active May 29, 2024 19:49
Use https://traefik.me SSL certificates for local HTTPS without having to touch your /etc/hosts or your certificate CA.
version: '3'
services:
traefik:
restart: unless-stopped
image: traefik:v2.0.2
ports:
- "80:80"
- "443:443"
labels:
- "traefik.http.services.traefik.loadbalancer.server.port=8080"