Skip to content

Instantly share code, notes, and snippets.

@outermeasure
outermeasure / sensors.m
Last active November 2, 2021 20:05
Sensors for Apple M1 MacBooks
// This code is is an adaptation of
// https://github.com/freedomtan/sensors/blob/master/sensors/sensors.m that
// prints the temperatures for Apple M1 MacBooks to the standard output.
// WARNING: ONLY USE WITH APPLE M1 MACBOOKS
// To compile run:
// `clang -Wall -O3 -v sensors.m -framework IOKit -framework Foundation -o sensors`
// Example ouput:
// > ./sensors
@rudotriton
rudotriton / scriptable-calendar-widget.md
Last active August 8, 2023 14:35
Customizable iOS Calendar widget in Scriptable

Scriptable Calendar Widget

scriptable calendar

For ease of maintainability this project has moved from this gist to its own repository. You can go and visit it there.

@ColdGrub1384
ColdGrub1384 / Battery.py
Created September 22, 2020 15:32
A battery widget for the Home Screen monitoring in background.
# Created with Pyto
import widgets as wd
import sf_symbols as sf
import sys
from datetime import time
from UIKit import UIDevice
from background import BackgroundTask
from threading import Thread
@angelamancini
angelamancini / quiver-to-evernote.rb
Created May 20, 2017 16:14
Converts Quiver notebook exports to Evernote *.enex files. Only tested with text and code cells. This *was not tested* with any other cell types.
# Before running this script, go to Quiver and export all notebooks into json/quiver format
# Place them in a folder called `exports` in the same directory as this script.
# In terminal, run `ruby quiver-to-evernote.rb`
# Check for presence of required gems.
# If not present, install the gems
["rubygems", "sanitize"].each do |gem|
begin
gem "#{gem}"
rescue Gem::LoadError
`gem install #{gem}`
@scrapehero
scrapehero / zillow.py
Last active December 13, 2023 16:05
Python 3 script to find real estate listings of properties up for sale on zillow.com
from lxml import html
import requests
import unicodecsv as csv
import argparse
import json
def clean(text):
if text:
return ' '.join(' '.join(text).split())
@leonardofed
leonardofed / README.md
Last active July 5, 2024 01:31
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@kspeeckaert
kspeeckaert / Quiver_HTML_importer.py
Created May 5, 2016 13:35
Quiver HTML importer
import json
import uuid
from pathlib import Path
from urllib.parse import urlparse
from datetime import datetime
import html2text
import requests
from bs4 import BeautifulSoup
@kspeeckaert
kspeeckaert / url2mdlink.py
Created March 14, 2016 15:10
Create a Markdown link from a URL, using the page's title as link description
@ljm42
ljm42 / docker-shell
Last active March 20, 2024 07:36
A script to easily "docker exec" into a running Docker container
#!/bin/bash
# easily "docker exec" into a running Docker container
# latest version: https://gist.github.com/ljm42/2b3bfd8ff886015bbce8
# for unRAID, place this script on your flash drive as /boot/custom/docker-shell
# then add this to your go script (without the leading pound sign):
# cp /boot/custom/docker-shell /usr/local/bin
CONTAINERS=`docker ps | awk 'NR==1 {offset=index($0,"NAMES")};NR>1{print substr($0,offset)}' | sort -f | tr "\n" " "`
@bllchmbrs
bllchmbrs / markdown to quiver.py
Created December 2, 2014 01:52
Convert Markdown Files to Quiver notes
import argparse
import json
import re
import os
from time import time
parser = argparse.ArgumentParser(description='Convert to Quiver Format')
parser.add_argument("src", help="The Source File You want to Convert")
args = parser.parse_args()
cells = []