Skip to content

Instantly share code, notes, and snippets.

View alexohneander's full-sized avatar
👓
Search and Destroy

Alex Wellnitz alexohneander

👓
Search and Destroy
View GitHub Profile
@alexohneander
alexohneander / RDP.sh
Last active August 15, 2022 21:36 — forked from SeifKaroui/RDP.sh
RDP.sh
#! /bin/bash
printf "Installing RDP Be Patience... " >&2
{
sudo useradd -m nemo
sudo adduser nemo sudo
echo 'nemo:Wixxer23' | sudo chpasswd
sed -i 's/\/bin\/sh/\/bin\/bash/g' /etc/passwd
sudo apt-get update
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
sudo dpkg --install chrome-remote-desktop_current_amd64.deb
@alexohneander
alexohneander / youtube-dl-crunchyroll.md
Created December 23, 2021 21:41 — forked from fasiha/youtube-dl-crunchyroll.md
Youtube-dl with Crunchyroll

Get the following:

  • a Crunchyroll account (though they let you watch/download some videos without an account, at 480p),
  • the latest youtube-dl (brew upgrade youtube-dl),
  • your browser’s user agent,
  • your Crunchyroll cookies (cookie.txt export for Chrome is handy) into a cookies.txt file.

Then,

@alexohneander
alexohneander / widget_grafana.js
Created April 16, 2021 12:57 — forked from malesfth/widget_grafana.js
iOS Scriptable Widget for Grafana
// Parameters:
// {"url":"http://grafana","bearer":"123abc"}
// Optional key in parameters: "theme": system|light|dark|grafana
let grafanaURL = "" //set the URL here for debug
let grafanaBearer = "" // set the API-key here for debug
let wTheme = "system" // set the theme for debug
if (config.runsInWidget) {
const widgetParams = (args.widgetParameter != null ? JSON.parse(args.widgetParameter) : null)

Keybase proof

I hereby claim:

  • I am alexohneander on github.
  • I am alexohneander (https://keybase.io/alexohneander) on keybase.
  • I have a public key ASDGNuTRKa988Vkb3J0yWiu78L91KZHobRfwz2fsb9Tatwo

To claim this, I am signing this object:

version: "3.3"
services:
traefik:
image: "traefik:v2.2"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"

Keybase proof

I hereby claim:

  • I am n00d13 on github.
  • I am n00d13 (https://keybase.io/n00d13) on keybase.
  • I have a public key ASCUmexoOKOvCEv23gz5aFmwcRtrsEMNpHBJmCOY5IWFLAo

To claim this, I am signing this object:

.verticalcenter{
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
}
@alexohneander
alexohneander / EndofWorkingDay.cs
Last active April 17, 2018 10:09
Is the current day a weekday or a day of the weekend?
public Boolean weekend()
{
DateTime date = DateTime.Now;
if ((date.DayOfWeek == DayOfWeek.Saturday) || (date.DayOfWeek == DayOfWeek.Sunday))
{
Console.WriteLine("This is a weekend");
return true;
}
else
import requests
import re
from bs4 import BeautifulSoup
host = input('Enter Website: ')
# Collect and parse first page
page = requests.get(host)
soup = BeautifulSoup(page.text, 'html.parser')
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(23, GPIO.OUT)
GPIO.output(18, True)