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 / aircrack.sh
Created September 18, 2017 22:14
Aircrack Commands MacOSX
//Install Macports.
//Install aircrack-ng:
sudo port install aircrack-ng
//Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
//Figure out which channel you need to sniff:
sudo airport -s
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)
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')
@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
.verticalcenter{
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
}

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:

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 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:

@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)
@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,