Skip to content

Instantly share code, notes, and snippets.

View jcxldn's full-sized avatar
🏳️‍🌈

James Cahill jcxldn

🏳️‍🌈
  • London, UK
  • 19:52 (UTC +01:00)
View GitHub Profile
@jcxldn
jcxldn / profilePic.py
Created October 28, 2021 08:05
Get Profile Pic from Xbox Live
import requests
import json
gamertag = "Major Nelson"
def getProfilePic(gamertag):
r = requests.get("https://xbl-api.prouser123.me/profile/settings/gamertag/%s" % requests.utils.quote(gamertag), headers={"User-Agent": "solars-project"})
if (r.status_code == 200):
data = json.loads(r.text)
@jcxldn
jcxldn / shairport-sync.initd
Last active October 4, 2020 11:50
shairport-sync initd - using normal config location
#!/sbin/openrc-run
description="Implements a synchronous (multi-room-capable) AirPlay receiver"
start_pre() {
/usr/sbin/alsactl restore
}
command="/usr/bin/shairport-sync"
command_args="-c /etc/shairport-sync.conf"
command_background="yes"
@jcxldn
jcxldn / switch-mirrors
Created June 7, 2020 11:35
jcx-switch-mirrors
#!/bin/sh
# --------------------------------------------------
# JCX CF CDN for Ubuntu
# --------------------------------------------------
# 1. Installs 'ca-certificates' if not available.
# 2. Switches mirrors.
# 3. Removes apt list caches. (Useful for docker!)
# --------------------------------------------------
# SUPPORTED MIRRORS

Keybase proof

I hereby claim:

  • I am prouser123 on github.
  • I am jcx (https://keybase.io/jcx) on keybase.
  • I have a public key ASCCOZWRFVtuuT8tAQGNOnm4d-1N5RuI7mXJQ7YPfBz_bgo

To claim this, I am signing this object: