I hereby claim:
- I am jos-b on github.
- I am josephbanks (https://keybase.io/josephbanks) on keybase.
- I have a public key ASAn-gKMjV9hnH6LufuWRnRcab3R7KcZCSDryMTuvX01_Ao
To claim this, I am signing this object:
| [colors] | |
| accent = #fba922 | |
| [bar/top] | |
| enable-ipc = true | |
| monitor = eDP-1 | |
| width = 100% | |
| height = 33 | |
| ;background = #222 |
I hereby claim:
To claim this, I am signing this object:
| #include <array> | |
| #include <cstdio> | |
| #include <cstring> | |
| #include <discord_rpc.h> | |
| #include <iostream> | |
| #include <memory> | |
| #include <stdexcept> | |
| #include <string> | |
| #include <thread> |
| #!/usr/bin/env python3 | |
| # USAGE NOTES | |
| # | |
| # - You must create a directory called pngs | |
| # - Once you have created your images you must run the following command to create a gif: | |
| # convert -delay 1x8 `seq -f pngs/out-%03g.png 0 1 40` -coalesce out.gif | |
| # | |
| # This script depends on imagemagick, liblqr (liquid rescale) and wand for python (pip install Wand) |
| from pypresence import Presence | |
| import time | |
| client_id = "503540314506657792" | |
| rpc = Presence(client_id) | |
| rpc.connect() | |
| data = { | |
| "large_image": "smiley", |
| import urllib.parse | |
| from typing import Union | |
| import httpx | |
| with open("./github.access") as token_file: | |
| token = token_file.read().strip() | |
| def get(route: str, arguments: dict = {}) -> Union[dict, list]: | |
| return httpx.get( |
| from discord import Client | |
| from patches import patch_discord_py | |
| patch_discord_py() | |
| client = Client() | |
| @client.event | |
| async def on_message(msg): |
| import httpx | |
| from praw import Reddit | |
| from praw.models import Comment, Submission | |
| from datetime import datetime | |
| r = Reddit( | |
| client_id="", | |
| client_secret="", | |
| password="", | |
| user_agent="pythonmodqueuerelay by /u/Im__Joseph", |
| import asyncio | |
| import aiodns | |
| loop = asyncio.get_event_loop() | |
| resolver = aiodns.DNSResolver(loop=loop) | |
| async def lookup(tld, data): | |
| try: | |
| data[tld] = await resolver.query(tld, "A") | |
| except: |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: modcast-phabricator | |
| spec: | |
| revisionHistoryLimit: 2 | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: modcast-phabricator |