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
// ==UserScript== | |
// @name CDR insert links | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-02-12_v3 | |
// @description inject external download links on cdromance | |
// @author iamevn | |
// @match https://cdromance.com/* | |
// @grant GM.xmlHttpRequest | |
// @connect cdromance.org | |
// @updateURL http://gist.github.com/iamevn/3afea03de61fa351bcde666f7c6d13f6/raw/cdromance-download-links.user.js |
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
{ pkgs, ... }: | |
### Plex Media server | |
# Uses plexpass version if plexpass.json exists | |
let | |
plexpass-overlay = import ./plexpass-overlay.nix; | |
in { | |
# Plex is unfree, allow it anyways | |
imports = [ ./allowed_unfree.nix ]; | |
allowedUnfreePkgs = [ "plexmediaserver" ]; |
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 | |
import tkinter as tk | |
import random | |
import threading | |
from wrapt import synchronized | |
from typing import Callable, Sequence, Union | |
class ScaledCanvasWindow: | |
''' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
def generate_ranges(lower, upper, count, pre=None): | |
if pre is None: | |
pre = [] | |
if count > 1: | |
for i in range(lower, upper): | |
yield from generate_ranges(lower, upper, count - 1, pre + [i]) | |
elif count == 1: | |
for i in range(lower, upper): | |
yield pre + [i] | |
else: |
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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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
import re | |
import googleapiclient.discovery | |
from google.cloud import logging | |
from google.cloud.logging import DESCENDING | |
def get_instance_info(project, zone, instance): | |
compute = googleapiclient.discovery.build('compute', 'v1') | |
instances = compute.instances() | |
instanceInfo = instances.get(project=project, zone=zone, instance=instance).execute() |
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
javascript:var coding = "abcdefghijklmnopqrstuvwxyzabcdefghijklmABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLM"; function rot13(t) { for (var r = "",i=0;i<t.length;i++) { character = t.charAt(i); position = coding.indexOf(character); if (position > -1) character = coding.charAt(position + 13); r += character; } return r; } S=window.getSelection(); function t(N) { return N.nodeType == N.TEXT_NODE; } function r(N) { if (t(N)) N.data = rot13(N.data); } for (j=0;j<S.rangeCount;++j) { var g=S.getRangeAt(j), e=g.startContainer, f=g.endContainer, E=g.startOffset, F=g.endOffset, m=(e==f); if(!m||!t(e)) { /* rot13 each text node between e and f, not including e and f. */ q=document.createTreeWalker(g.commonAncestorContainer, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT, null, false); q.currentNode=e; for(N=q.nextNode(); N && N != f; N = q.nextNode()) r(N); } if (t(f)) f.splitText(F); if (!m) r(f); if (t(e)) { r(k=e.splitText(E)); if(m)f=k; e=k;} if (t(f)) g.setEnd(f,f.data.length); } void 0 |
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
import re | |
import webbrowser | |
from tweet import gen_tweet | |
from tweepy_api import get_api | |
def last_rt(user, tweet_id): | |
api = get_api() | |
timeline = api.user_timeline(user, max_id=tweet_id, count=100) |
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
import webbrowser | |
from camel import Camel | |
from dataclasses import dataclass | |
from typing import List | |
from tweet import Tweet, gen_tweet | |
from camel_registry import reg | |
from find_boops import find_boops |
NewerOlder