This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION | |
# Developed for DSM 6 - 7.0.1. Not tested on other versions. | |
# Steps to install | |
# Save this script in one of your shares | |
# Edit it according to your requirements | |
# Backup /usr/syno/share/nginx/ as follows: | |
# # cd /usr/syno/share/ | |
# # tar cvf ~/nginx.tar nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Based on https://github.com/enkia/tokyo-night-vscode-theme | |
#24283B,#FFC806,#565F89,#C0CAF5,#565F89,#C0CAF5,#9ECE6A,#F7768E,#24283B,#A9B1D6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Scrapes Paul's author page on wired and generates a feed. | |
# Copyright 2022, Drew Diver | |
# | |
from bs4 import BeautifulSoup | |
from dateutil import parser | |
import datetime | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CURRENT_USER=$(stat -f %Su /dev/console) | |
CURRENT_USER_UID=$(id -u "$CURRENT_USER") | |
MAS_PKG=/private/tmp/mas.pkg | |
APP_LIST=( | |
441258766 | |
955297617 | |
409183694 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "BBEdit" | |
tell front window | |
set currentProportion to (get split proportion) | |
if currentProportion is greater than 0 then | |
set split proportion to 0 | |
else | |
set split proportion to 30 | |
end if | |
end tell | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "BBEdit" | |
tell front window | |
set show line numbers to false | |
set show gutter to true -- or false if you don't want to use folding | |
set show navigation bar to false | |
set show page guide to false | |
set soft wrap text to true | |
set soft wrap width to 80 | |
set source language to "Markdown" -- or "Text File" | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set newUUID to do shell script "uuidgen" | |
set the clipboard to newUUID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Safari" | |
set tabURL to the URL of the current tab of window 1 | |
set tabName to the name of the current tab of window 1 | |
set the clipboard to "[" & tabName & "](" & tabURL & ")" | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Safari" | |
set tabURL to the URL of the current tab of window 1 | |
set tabName to the name of the current tab of window 1 | |
set the clipboard to "<a href=\"" & tabURL & "\">" & tabName & "</a>" | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Written by Drew Diver 2019 | |
# Create a policy in Jamf to run the following script from Self Service. | |
# | |
# Inspired by https://twitter.com/lapcatsoftware/status/1182350562123227136?s=20 | |
# Named by Armen Briegel | |
import random | |
import subprocess |
NewerOlder