Swift program for getting a zoom app link from current or upcoming event in calendar.
Apple script calling the program and opening zoom.
#!/usr/bin/env osascript -l JavaScript | |
/** | |
* ----------------------------------------------------------------------------- | |
* Activate Sidecar/Screen Mirroring from Control Center | |
* ----------------------------------------------------------------------------- | |
* | |
* Created on February 17, 2023 by Stephan Casas | |
* Updated on May 18, 2023 by Stephan Casas | |
* |
Swift program for getting a zoom app link from current or upcoming event in calendar.
Apple script calling the program and opening zoom.
#!/bin/bash | |
### NOTE | |
# Ideally, you should create an image from small partition (e.g., 4 GB) instead of the whole SD card (e.g., 32 GB). | |
# For example, an image for Raspbian image should be created by the following procdure: | |
# (1) Install the official Raspbian image (3.5 GB for Jessie) on an SD card | |
# (2) Manually expand the partition to a modest size to accommodate your base software (e.g., 4 GB) | |
# (3) Perform apt-get update and upgrade, install software and configuration that you want. | |
# (4) Create an image from that (4 GB) partition | |
# |
import paho.mqtt.client as mqtt | |
# The callback for when the client receives a CONNACK response from the server. | |
def on_connect(client, userdata, rc): | |
print("Connected with result code "+str(rc)) | |
# Subscribing in on_connect() means that if we lose the connection and | |
# reconnect then subscriptions will be renewed. | |
client.subscribe("hello/world") | |
# The callback for when a PUBLISH message is received from the server. |
server { | |
listen *:80; | |
server_name neos.dev; | |
root /var/www/neos/Web; | |
autoindex off; | |
access_log /var/log/nginx/neos.dev.access.log; | |
error_log /var/log/nginx/neos.dev.error.log; | |
index index.php index.html; |
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"net/mail" | |
"net/smtp" | |
"crypto/tls" | |
) |
#EXTM3U | |
#EXTINF:-1,BBC - Radio 1 | |
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p | |
#EXTINF:-1,BBC - Radio 2 | |
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p | |
#EXTINF:-1,BBC - Radio 3 | |
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-aac-lc-a/format/pls/vpid/bbc_radio_three.pls | |
#EXTINF:-1,BBC - Radio 4 | |
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p | |
#EXTINF:-1,BBC - Radio 5 live |
# Download the file manually from here https://launchpad.net/gcc-arm-embedded | |
# Note: `curl` command doesn't work | |
# I downloaded this one: "gcc-arm-none-eabi-4_7-2013q3-20130916-mac.tar.bz2" | |
# double click it to unzip it | |
# Make a place to install it to | |
mkdir /usr/local/gcc_arm | |
# Move the unzipped stuff there. |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |