This file contains hidden or 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
# Automator > Quick Action | |
# Workflow receives current "files or folders" in "Finder" | |
# Add "Run Shell Script" action | |
# Copy script below to "Run Shell Script" window | |
# Replace <codesigning certificate> at row 28 with your certificate information | |
# Save quick action as: "Sign Installer package" | |
# Quick Actions live in: ~/Library/Services | |
# Receives files and folders |
This file contains hidden or 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
# Automator > Quick Action | |
# Workflow receives current "files or folders" in "Finder" | |
# Add "Run Shell Script" action | |
# Copy script below to "Run Shell Script" window | |
# Replace <codesigning certificate> at row 28 with your preferred certificate | |
# Save quick action as: "Sign Configuration Profile" | |
# Quick Actions live in: ~/Library/Services | |
# Receives files and folders |
This file contains hidden or 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/sh | |
# ================================================ | |
# create_xcode_icns.sh | |
# | |
# Create Xcode iconset for macOS app from a 1024x1024 sized png file | |
# | |
# Drag png file to Terminal window to get the file path as a parameter for the script | |
# Iconset will be created to the same folder where the original icon is | |
# Import (drag&drop) icns file to Xcode |
This file contains hidden or 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
# Automator > Quick Action | |
# Workflow receives current "files or folders" in "Finder" | |
# Add "Run Shell Script" action | |
# Copy script below to "Run Shell Script" window | |
# Replace <text-editor-app> at row 36 with your preferred text editor app | |
# Save quick action as: "Remove signature from Profile & open in <app>" | |
# Quick Actions live in: ~/Library/Services | |
# Target folder |
This file contains hidden or 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 | |
""" | |
set_outlook_as_default_application.py | |
Description: | |
Set Outlook as a default application for email, calendar and contacts | |
""" |
This file contains hidden or 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 | |
""" | |
set_default_application_for_filetype.py | |
Description: | |
Set default application for a file type in macOS | |
""" |
This file contains hidden or 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/sh | |
### | |
# Clean up infected HandBrake (1.0.7) for macOS | |
# Note that this script is WIP and does not remove all the traces of the malware | |
# e.g. reverting /etc/sudoers back to previous state is left out here | |
# Based on the information posted here: |
This file contains hidden or 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 | |
""" | |
# Beef: | |
/usr/bin/dscl -plist . -read /Groups/admin GroupMembership | |
/usr/sbin/dseditgroup -o edit -d <shortname> -t user admin | |
""" | |
""" |
This file contains hidden or 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
# Swift syntax highlighting for Vim | |
# Source: http://wingsquare.com/blog/swift-script-syntax-highlighting-and-indentation-for-vim-text-editor/ | |
echo "--- Installing and configuring Pathogen.." | |
mkdir -p ~/.vim/autoload ~/.vim/bundle | |
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
echo "execute pathogen#infect() | |
syntax on |
This file contains hidden or 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
""" | |
setup_example.py | |
Run this script from the Pythonista Documents root | |
Setup script for https://github.com/jlehikoinen/pythonista-flask-example | |
""" | |
import requests | |
import zipfile | |
import urllib | |
import tempfile |
NewerOlder