Skip to content

Instantly share code, notes, and snippets.

View andyzickler's full-sized avatar

Andy Zickler andyzickler

View GitHub Profile
%!PS
% Postscript implementation of Georg Nees "Schotter"
% Nicolas Seriot, 2022-09-20
% https://collections.vam.ac.uk/item/O221321/schotter-print-nees-georg
/COLS 12 def
/ROWS 24 def
/SIZE 28 def
@chockenberry
chockenberry / Fix Terminal Windows.scpt
Created January 23, 2022 22:33
Fix Terminal Windows
tell application "Terminal"
set ws to windows
if (true) then -- set to false to see current window positions
set c to 80
set ps to {{4215, 27}, {3629, 27}, {3043, 27}, {3043, 734}, {2457, 734}, {3629, 734}, {4215, 734}}
set r to 48
set ix to 1
repeat with p in ps
set w to item ix of ws
@steventroughtonsmith
steventroughtonsmith / Info.plist
Created October 27, 2019 17:02
[Catalyst] Registering for & responding to AppleScript events in a Mac Catalyst app
<key>NSAppleScriptEnabled</key>
<true/>
<key>OSAScriptingDefinition</key>
<string>ScriptableTasks.sdef</string>
@craigeley
craigeley / add_instagram_to_contacts.scpt
Created May 23, 2019 14:10
This script takes the contents of your clipboard, allows you to search for a contact, and then adds an Instagram social media profile to that contact. Useful for use with the Vignette iOS app and the "Connections.json" file from the Instagram data dump.
set input to the clipboard as text
--whole process is in a loop to allow for user to research for contact
repeat
--need to find contact in order to update their info
try
display dialog "Enter name or company of contact to Instagram to:" default answer ""
set thePerson to text returned of result
end try
@frenck
frenck / basic.yaml
Created January 22, 2019 22:49
Sonoff Basic ESPHome
esphomeyaml:
name: basic
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: 'Demo'
password: 'Livestream'
class PopoverTableViewController: UITableViewController {
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
self.preferredContentSize = CGSize(width: 320, height: self.tableView.contentSize.height)
}
}
@nsotnikov
nsotnikov / configuration.yaml
Last active November 18, 2020 10:30
Home Assistant - Tasmota
# Just an example how to check and upgrade the sonoff-tasmota from the Home Assistant: configuration.yaml
# One click upgrade all Sonoff-Tasmota devices, check the current installed and latest available version of firmware.
# Twitter link: https://goo.gl/e3y7pa
#
# 1. Open your sonoff webinterface and add in the "Firmware Upgrade" menu following OTA Url, save! Example: https://goo.gl/6ZMjzA
# OTA Url: http://sonoff.maddox.co.uk/tasmota/sonoff.bin
#
# 2. Below the Home Assistant configuration:
script:
@simme
simme / app.js
Last active May 16, 2019 05:59
Gulp file for an Ember project using bower and browserify.
// Load Ember into the global scope by requiring it
require('ember');
// Go have fun
var app = Ember.Application.create();
@bitemyapp
bitemyapp / gist:8739525
Last active May 7, 2021 23:22
Learning Haskell
@dankrause
dankrause / _hover_example.py
Last active June 26, 2024 22:35
Example code to use the (unofficial, unsupported, undocumented) hover.com DNS API.
import requests
class HoverException(Exception):
pass
class HoverAPI(object):
def __init__(self, username, password):
params = {"username": username, "password": password}
r = requests.post("https://www.hover.com/api/login", params=params)