Skip to content

Instantly share code, notes, and snippets.

View anna-is-cute's full-sized avatar

Anna anna-is-cute

View GitHub Profile
@anna-is-cute
anna-is-cute / README.md
Last active December 22, 2023 09:27
Bamboo IRC Notifications

Bamboo IRC Notifications

Create a new stage. Make sure it runs last. Create a job within this stage. Choose the Script job.

Paste in the shell script below for the script. You may need to change the path of ruby.

For the argument field, insert the following: ${bamboo.buildResultsUrl} ${bamboo.planKey}

from soundcloud import Client
from requests import get
from os.path import join as path_join
from mutagen.mp3 import MP3
from mutagen import File
from mutagen.id3 import ID3, ID3NoHeaderError, TIT2, TPE1, TPE2, TALB, TRCK, APIC
class Downloader:
def __init__(self, client_id):
self.client = Client(client_id=client_id)

Keybase proof

I hereby claim:

  • I am ascclemens on github.
  • I am jkcclemens (https://keybase.io/jkcclemens) on keybase.
  • I have a public key ASCxzuyL6y581sVy2mscndwSpfxhDi2fk_mwCD0h-Aj3Owo

To claim this, I am signing this object:

@anna-is-cute
anna-is-cute / travis_cache.md
Last active April 21, 2020 21:40
Rust and Travis CI cache

Rust and Travis CI cache

Using Travis CI's cache is very useful and helps cut Rust job times way, way down. However, the way that the default caching for Cargo is set up means it will quickly bloat.

Travis currently checks ~/.cargo and target/ for any changes from the current cache after a build. There will always be changes in target/ if the source has changed, which it usually does when a Travis build runs. This means new incremental object files, fingerprints, and build script compilation files are being added to the cache every build.

// Kotlin + HttpURLConnection
val connection = URL("https://api.github.com/user").openConnection() as HttpURLConnection
val auth = Base64.getEncoder().encode("user:pass".toByteArray()).toString(Charsets.UTF_8)
connection.addRequestProperty("Authorization", "Basic $auth")
connection.connect()
println(connection.responseCode)
println(connection.getHeaderField("Content-Type"))
val text = connection.inputStream.use { it.reader().use { reader -> reader.readText() } }
println(text)
[
{
"Banner": null,
"ID": 0,
"IsExpansion": 0,
"ExVersion": -1,
"Name_cn": "Game Patch Unknown",
"Name_de": "Game Patch Unknown",
"Name_en": "Game Patch Unknown",
"Name_fr": "Game Patch Unknown",

You meant "implying"

<me> I bet you're the sort of person who doesn't use the oxford comma

<me> a fucking savage

<smol> You do not even use grammar correctly most of the time when you type, so I don't want to hear

>\ It

fn main() {
let mut core = Core::new().unwrap();
let client = Arc::new(Client::configure()
.connector(HttpsConnector::new(4, &core.handle()).unwrap())
.build(&core.handle()));
let pending = vec![
PendingPasteFile {
content: String::from("this is a test"),
[13:32](Duvivi Duvi) not gonna try to fight for aggro from a defiance war lmao
[13:33](Orko Trollan) yeah true, but that guy nearly reset mahisha
[13:34](Duvivi Duvi) bad war gonna be bad
[13:34](Duvivi Duvi) in defiance, doesn't use holmgang or onslaught back in
[13:34](★Vanilla Creamsoda) try offering advice to help them improve then?
[13:34](Raiin Iii) ^
[13:34](Duvivi Duvi) in a different party?
[13:34](Duvivi Duvi) no
[13:35](Raiin Iii) good point
[13:35](Duvivi Duvi) unsolicited advice makes people mad anyway
[package]
name = "jkcclemens"
version = "0.1.0"
[[bin]]
name = "jkcclemens"
path = "main.rs"
[dependencies]
rand = "0.4"