Shut down without showing a confirmation dialog:
osascript -e 'tell app "System Events" to shut down'
Shut down after showing a confirmation dialog:
osascript -e 'tell app "loginwindow" to «event aevtrsdn»'
Shut down without showing a confirmation dialog:
osascript -e 'tell app "System Events" to shut down'
Shut down after showing a confirmation dialog:
osascript -e 'tell app "loginwindow" to «event aevtrsdn»'
#!/bin/bash | |
####################################################################### | |
# | |
# Remove Application Script for Jamf Pro | |
# | |
# This script can delete apps that are sandboxed and live in /Applications | |
# | |
# The first parameter is used to kill the app. It should be the app name or path | |
# as required by the pkill command. |
#!/bin/bash | |
<<ABOUT_THIS_SCRIPT | |
------------------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/2cf20236e665fcd7ec41311d50c89c0e |
#!/bin/zsh | |
:<<ABOUT_THIS_SCRIPT | |
------------------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/e9ed319226c6da30dd633725e48a97b0 |
from datetime import date as Date | |
import requests as req | |
import json | |
from tokens import discord_alex # a discord token | |
from tokens import post_discord # a method to post to a discord channel a string | |
def get_items(menu, category): | |
ret_list = [] | |
for i in menu[category]: |