Skip to content

Instantly share code, notes, and snippets.

View zackn9ne's full-sized avatar

zackn9ne zackn9ne

  • earth, New York
View GitHub Profile
sudo hwclock --hctosys
@zackn9ne
zackn9ne / keys.ahk
Created January 5, 2021 02:59
my autohotkey settings
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Capslock::Esc
#IfWinActive, PowerLauncher
:*:qq::https://www.google.com/search?q=
:*:tt::https://www.thesaurus.com/browse/
Identifier: local.jss.Google Chrome
Input:
CATEGORY: Manifests
ENABLED: 'False'
DOWNLOAD_URL: ''
NAME: Google Chrome
OS_REQUIREMENTS: 10.15.x,10.14.x,10.13.x,10.12.x,10.11.x,10.10.x
GROUP: Prod
GROUP_NAME: Update-Smart-%SOFTWARETITLE%
GROUP_TEMPLATE: 'SmartGroup_AppnameVersion.xml'
#!/usr/bin/python
# Copyright 2014-2017 Shea G. Craig
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@zackn9ne
zackn9ne / yaml_plist_a_dir.py
Last active June 4, 2020 19:16
yaml_plist_a_dir
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""If this script is run directly, it takes an input file .yaml file and an outputs a .recipe file in the same directory
yaml_plist.py <input path>
"""
import sys
import yaml
@zackn9ne
zackn9ne / slack.multi.jss.recipe
Created May 8, 2020 18:47
slack.multi.jss.recipe
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>Downloads the latest version of Slack and makes a pkg of it Then, uploads to the Jamf Pro Server.</string>
<key>Identifier</key>
<string>com.github.killahquam.jss.slack</string>
<key>Input</key>
<dict>
<computer_group>
<name>%group_name%</name>
<is_smart>true</is_smart>
<criteria>
<criterion>
<name>Application Title</name>
<priority>0</priority>
<and_or>and</and_or>
<search_type>is</search_type>
<value>%JSS_INVENTORY_NAME%</value>
#Vars
#zackn9ne and Kyle
#Printer Driver Name
$driver="Xerox AltaLink C8000Series EFI"
#Get Files
$url = "https://abingtonstorage.blob.core.windows.net/printerdrivers/printers.zip"
@zackn9ne
zackn9ne / gist:c4083685a0aa93f2ab6a39958f8f37d1
Last active March 16, 2020 16:56
powershell_printers.ps1
Add-PrinterDriver -Name "Xerox AltaLink C8070 PCL6"
add-printerport –name "10.105.185.126" –printerhostaddress "10.105.185.126"
add-printer –name "Xerox AltaLink" –drivername "Xerox AltaLink C8070 PCL6" –port "10.105.185.126"
@zackn9ne
zackn9ne / sortletter.js
Created February 12, 2020 03:29
hackkerrank challenge
function vowelsAndConsonants(s) {
const vowel = ['a','e','i','o','u']
const foundvowels = []
const foundcons = []
for (i = 0; i < s.length; i++) {
console.log("checking" + i + "times: " + s[i])
if (vowel.includes(s[i]) == true) {
console.log("vowel" + s[i] + "found")
foundvowels.push(s[i])