Skip to content

Instantly share code, notes, and snippets.

View zackn9ne's full-sized avatar

zackn9ne zackn9ne

  • earth, New York
View GitHub Profile
@talkingmoose
talkingmoose / Enable all macOS software updates.bash
Last active August 9, 2023 21:37
The /Library/Preferences/com.apple.SoftwareUpdate.plist seems impervious to being managed via configuration profile (at least on macOS Mojave). While not enforced management, add this script to a Jamf policy and run it on a routine basis such as once per week on scoped Macs.
#!/bin/bash
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticDownload -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticallyInstallMacOSUpdates -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist ConfigDataInstall -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist CriticalUpdateInstall -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdate -bool TRUE
exit 0
@zackn9ne
zackn9ne / add_users_megascriptSmart.ps1
Last active June 26, 2018 20:47
powershell add user megascript
#example vars
$acn = "sjobs"
$first = "Steve"
$last = "Jobs"
$pass= "secretwords"
$domain1 = "ca"
$domain2 = "apple"
$domain3 = "com"
$secretOU = "AppleComputers"
@shihanng
shihanng / .chunkwmrc
Last active January 6, 2024 04:17
chunkwm + skhd
#!/bin/bash
#
# NOTE: specify the absolutepath to the directory to use when
# loading a plugin. '~' expansion is supported.
#
chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
#
@zackn9ne
zackn9ne / tunnel.oascrpt
Created December 17, 2017 17:31 — forked from anonymous/tunnel.oascrpt
oascript for tunnelblick start
tell application "Tunnelblick"
connect "Company_VPN"
get state of first configuration where name = "Company_VPN"
repeat until result = "CONNECTED"
delay 1
get state of first configuration where name = "Company_VPN"
end repeat
end tell
@vibin
vibin / OpenInSafari.scpt
Created January 20, 2017 05:51
Open Chrome's Current URL in Safari
tell application "Google Chrome"
set visibleUrl to get URL of active tab of window 1
end tell
tell application "Safari"
open location visibleUrl
activate
end tell
@amonks
amonks / hyper.lua
Created January 13, 2017 07:34
hammerspoon hyper key: capslock to escape _and_ cmd+ctrl+alt+shift
print([[
HYPER
## install
Use karabiner-elements to bind capslock to F18
install hammerspoon
@pachanka
pachanka / search-with-gpg.sh
Last active May 7, 2023 17:57
A simple bash script to grep within a bunch of GPG encrypted files.
#!/bin/bash
#
# Usage search-with-gpg path/to/encrypted/files/*
#
if [ -z "$1" ]; then
echo "Usage: $0 'search string' [path/to/encrypted/files/*]";
exit 1;
else
SEARCH=$1;
@pokev25
pokev25 / install-tmux.sh
Last active February 8, 2024 07:22 — forked from rothgar/install-tmux
Install tmux 2.8 on centos 7
# Install tmux 2.8 on Centos
# install deps
yum install gcc kernel-devel make ncurses-devel
# cd src
cd /usr/local/src
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz

So the basic thing you need to start working with org-mode is to install org-mode. Emacs > 24.??? already have it bundled and if you're not going to use some cool features like org-drill and stuff, that should be enough.

Basically, org-mode operates with org files. Create one (work.org for example). Org files' markup is simple -- there are headers with info. Header format is '*'{1..} TODO-kw Description. To create entry just write it. Also C-c RET does something similar (I never use it tho). So, stars are indentation -- more indented

@turtlemonvh
turtlemonvh / Caddyfile
Last active June 12, 2023 17:51
Multi-host wildcard caddy example
a.myhost.com {
tls off
root /var/www/
proxy / localhost:8091
log log/access.a.log
}
b.myhost.com {
tls off
root /var/www/