This file contains hidden or 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
// ==UserScript== | |
// @name Startpage Upgrades | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description Hide Ads on Startpage search results page, add links to other search engines, set title tag better | |
// @author You | |
// @include https://startpage.com/* | |
// @include https://*.startpage.com/* | |
// @run-at document-idle |
This file contains hidden or 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
let | |
Source = #table(type table[Refresh Date Time=datetime], {{UTC_to_MountainTime(DateTimeZone.RemoveZone(DateTimeZone.UtcNow()))}}), | |
#"Add Date Only Col" = Table.AddColumn(Source, "Refresh Date", each Date.From([Refresh Date Time])), | |
#"Add Date Month Name" = Table.AddColumn(#"Add Date Only Col", "Month Name", each Date.MonthName([Refresh Date])), | |
#"Add 'Refresh Date Time (UTC)'" = Table.AddColumn(#"Add Date Month Name", "Refresh Date Time (UTC)", each DateTimeZone.RemoveZone(DateTimeZone.FixedUtcNow())) | |
in | |
#"Add 'Refresh Date Time (UTC)'" |
This file contains hidden or 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
/* pixieset.com full size image scraper | |
* | |
* Rips all images in highest quality | |
* | |
* To use, scroll to the very bottom of the album and press F12 then paste the below snippet in and press enter. | |
* The full file list will be copied to your clipboard. You can use jdownloader to easily download the full list. | |
*/ | |
(() => { | |
const data = document.querySelectorAll('img') |
This file contains hidden or 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
{ | |
"packages": [ | |
{ | |
"name": "ATTinyCore", | |
"maintainer": "Spence Konde", | |
"websiteURL": "https://github.com/SpenceKonde/ATTinyCore", | |
"email": "", | |
"help": { | |
"online": "" | |
}, |
This file contains hidden or 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
def calling_var_name(obj) -> str: | |
""" Returns the name of the variable that was passed in. """ | |
caller_frame = inspect.currentframe().f_back.f_back | |
while hasattr(caller_frame, 'f_locals'): | |
list_of_obj_names = ([name for name, value in caller_frame.f_locals.items() if value is obj]) | |
if len(list_of_obj_names) > 0: | |
return list_of_obj_names[0] |
This file contains hidden or 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
// ==UserScript== | |
// @name AWS Batch Upgrades | |
// @namespace https://gist.github.com/DeflateAwning/d8d42a082cb27b7d01df751d0dc26f31 | |
// @version 0.4.1 | |
// @description Calculate AWS Batch job time since started and total execution time (on the "Job attempts" tab). Set the tab title to include the job name and execution status. Fix the bug where you logout and lose the job you had open. Add links to log streams, with commands to easily download them locally. | |
// @author DeflateAwning | |
// @match https://*.console.aws.amazon.com/batch/home?* | |
// @grant GM_addStyle | |
// ==/UserScript== |
This file contains hidden or 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 xdg-open | |
[Desktop Entry] | |
Name=Teams Account - AccountName | |
Exec=teams-for-linux --appTitle "Teams - AccountName" --customUserDir="/home/user/.teams-data/account_AccountName" | |
Terminal=false | |
PrefersNonDefaultGPU=false | |
Icon=teams-for-linux | |
Type=Application | |
# place this file in ~/Desktop and/or ~/.local/share/applications/ (to add to the start menu) |
This file contains hidden or 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
// ==UserScript== | |
// @name Set GitHub Page Title to the Filename | |
// @namespace https://gist.github.com/DeflateAwning | |
// @version v0.1 | |
// @description When browsing a GitHub project, set the <title> to the filename and repo user/name. | |
// @author DeflateAwning | |
// @match https://github.com/*/*/blob/** | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
# pip install virtualbox | |
import virtualbox | |
vbox = virtualbox.VirtualBox() | |
machine = vbox.find_machine("Ubuntu 20") | |
session = machine.create_session() | |
session.console.keyboard.put_keys("Hello, world!") | |
# Source: https://github.com/sethmlarson/virtualbox-python/issues/142 |
This file contains hidden or 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
from sympy import symbols, Eq, solve | |
# Define symbols | |
k1, k2, k3 = symbols('incoming_slope normal_slope outgoing_slope') | |
# Define the equation | |
equation = Eq((k1 - k2) / (1 + (k1*k2)), (k2 - k3) / (1 + (k2*k3))) | |
# Solve the equation for k3 | |
solution = solve(equation, k3) |