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/env python | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
user_agent='Fake Browser' | |
myoptions = Options() | |
myoptions.add_argument(argument=f'--user-agent={user_agent}') | |
driver = webdriver.Chrome(options=myoptions) | |
driver.get("https://www.google.com") |
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 | |
import requests | |
import json | |
import glob | |
import os | |
import hashlib | |
import sys | |
import traceback |
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
version: '2' | |
services: | |
changedetection: | |
image: ghcr.io/dgtlmoon/changedetection.io | |
container_name: changedetection | |
hostname: changedetection | |
volumes: | |
- changedetection-data:/datastore | |
environment: |
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
footssh() | |
{ | |
if [[ $TERM = "foot" ]]; then | |
TERM=linux ssh $@ | |
else | |
ssh $@ | |
fi | |
} | |
alias ssh=footssh |
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 python3 | |
# -*- coding: utf-8 -*- | |
# You'll need a TLS terminating proxy (apache,nginx) in front of this | |
# This is a simple Hello World Alexa Skill, built using | |
# the decorators approach in skill builder. | |
import logging | |
from flask import Flask |
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
{ | |
"FAUXMO": { | |
"ip_address": "AUTO" | |
}, | |
"PLUGINS": { | |
"SimpleHTTPPlugin": { | |
"DEVICES": [ | |
{ | |
"port": 12340, | |
"off_cmd": "http://192.168.1.107/admin/api.php?disable=600&auth=YOUR_AUTH_CODE", |
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 | |
# zip2lha.sh - convert zip files (for WHDLOAD) into lha for retropie / amiberry | |
# USAGE: zip2lha.sh zipfilename.zip | |
# or to do whole directory: find . -name '*.zip -exec zip2lha.sh {} \; | |
# set TMPDIR & DESTDIR in script | |
# REQUIREMENTS: unzip & jlha-utils (NOT lha package) on raspbian | |
# BE CAREFUL! This script removes contents of TMPDIR after each conversion | |
FN=$1 |
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 | |
# test websockets - requires python 3.6+ & sanic | |
# start server & hit http://localhost:8000/static/WebSockets.html | |
# Put ws://localhost:8000/feed as Target | |
from sanic import Sanic | |
app = Sanic() |
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
# Created by pyp2rpm-3.2.2 | |
%global pypi_name pipenv | |
Name: python-%{pypi_name} | |
Version: 11.1.3 | |
Release: 1%{?dist} | |
Summary: Sacred Marriage of Pipfile, Pip, & Virtualenv | |
License: MIT | |
URL: https://github.com/kennethreitz/pipenv |
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
diff -r1.2 ./main.c | |
145a146,156 | |
> /* support "-m" argument to start minimized */ | |
> int c; | |
> while ((c = getopt (argc, argv, "m")) != -1) | |
> switch (c) | |
> { | |
> case 'm': | |
> /* minimize the main window */ | |
> gtk_window_iconify(GTK_WINDOW(main_window)); |
NewerOlder