Skip to content

Instantly share code, notes, and snippets.

@PotatoCurry
PotatoCurry / weather-rpc.py
Last active May 15, 2021 — forked from dotcomboom/weather-rpc.py
Discord Weather RPC
View weather-rpc.py
import os
import time
import requests
from pypresence import Presence
def main():
API_KEY = os.environ["WEATHERBIT_API_KEY"] # get a key at https://www.weatherbit.io/account/create
CLIENT_ID = 704435320808276108
@volcanoauthors
volcanoauthors / Install-Linux-on-Acer-Spin-1-SP111-32N.md
Last active Jul 13, 2022
How to install Ubuntu Linux on an Acer Spin 1 SP111-32N
View Install-Linux-on-Acer-Spin-1-SP111-32N.md

How to install Ubuntu Linux on an Acer Spin 1 SP111-32N

BIOS Key

The first thing you encounter is how to get into the BIOS. Hold down the little blue Fn key, and press F2. If you do this as soon as you press the power button, then keep pressing F2 a lot, it gets into the BIOS reliably.

In the BIOS, you don’t need to change the Secure Boot settings (yet). Just remember that you have to hold down the little blue Fn key to change the boot order with F5 and F6.

The live USB should boot up just fine. Do not select “Install ubuntu” from the GRUB menu. Let the default option start up, “Try ubuntu without installing.”

Live USB

@tenox7
tenox7 / wrp.go
Last active May 29, 2019
WRP Go Prototype
View wrp.go
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"strconv"
"strings"
@OneEyedKnight
OneEyedKnight / bot_example.py
Last active Jul 25, 2021 — forked from EvieePy/bot_example.py
A Cogs Example for the rewrite version of - discord.py
View bot_example.py
import discord
from discord.ext import commands
import sys, traceback
"""This is a multi file example showcasing many features of the command extension and the use of cogs.
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic
understanding and platform for creating your own bot.
These examples make use of Python 3.6.2 and the rewrite version on the lib.
@richardg867
richardg867 / proxy.py
Last active May 27, 2022
Comic Chat fixer
View proxy.py
#
# Comic Chat fixer MITM proxy: fixes Comic Chat to (sort of) work with modern
# IRC servers. Tested with Microsoft Chat 2.5 on Windows XP, 8 and 10
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,