Skip to content

Instantly share code, notes, and snippets.

View intellectronica's full-sized avatar
🤔

Eleanor Berger intellectronica

🤔
View GitHub Profile
Date: Wed, 13 Apr 2011 11:06:43 +0100
From: "Ann Wroe" <[email protected]>
To: <[email protected]>
Subject: Juliano Mer-Khamis
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Dear Mr Berger,
class xxxxxx::serverpackage {
package {["xxxxxx-server"]:
ensure => "201305261754_020905460ea27541db0fee89b5d435c05d4ae9cd-1",
require => Yumrepo["xxxxxx"],
notify => Service["httpd"],
}
vcsrepo { "/opt/application/xxxxxxx":
ensure => present,
provider => git,
cat run-tests.sh | \
sudo docker run -rm=true -v `pwd`:/`pwd` -w `pwd` -i \
rounds/server-testing /bin/bash
#!/bin/bash
pylint --rcfile=pylint_rcfile.txt -r n -f parseable --disable=E1101,E1103,W0312,F0401,R0201,R0903,W0232,W0703 "$1" 2>/dev/null
pyflakes "$1"
pep8 --ignore=E126,E221,E701,E202,W191,E101 --repeat "$1"
true

Keybase proof

I hereby claim:

  • I am intellectronica on github.
  • I am intellectronica (https://keybase.io/intellectronica) on keybase.
  • I have a public key whose fingerprint is AF7A 9377 5C36 35B8 3405 302C 10CD 6B4B DF71 7CCE

To claim this, I am signing this object:

#lang racket
(require compatibility/defmacro)
'(monkey . peanuts)
'(eenie . (meenie . (meiney . (moe . ()))))
'(eenie meenie meiney moe)
# fill auth token here. see https://github.com/nicolevanderhoeven/shortform-to-readwise#usage for how to get it
$authToken = '...'
$booksApiUrl = 'https://www.shortform.com/api/books/'
$bookSlug = $args[0]
$response = Invoke-WebRequest -Uri "$booksApiUrl$bookSlug" -Headers @{
"Authorization" = "Basic $authToken";
"X-Sf-Client" = "11.8.0";
}

I bought everything at the &dollar; store!

@intellectronica
intellectronica / aitz.py
Last active June 28, 2024 06:32
"Parsing" weird iCal timezones and converting them to standard timezones with GPT-3.5-turbo
# An iCal VTIMEZOME component looks like this:
#
# BEGIN:VTIMEZONE
# TZID:Romance Standard Time
# BEGIN:STANDARD
# DTSTART:16010101T030000
# TZOFFSETFROM:+0200
# TZOFFSETTO:+0100
# RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
# END:STANDARD
@intellectronica
intellectronica / ug-to-mochi.py
Created July 29, 2024 08:56
Script for creating Mochi flashcards based on the Ultimate Geography card collection
import requests
import tempfile
import subprocess
import pandas as pd
import base64
from textwrap import dedent
from datetime import datetime
import random
import string