Skip to content

Instantly share code, notes, and snippets.

Avatar

zackn9ne zackn9ne

  • earth, New York
View GitHub Profile
@zackn9ne
zackn9ne / keys.ahk
Created Jan 5, 2021
my autohotkey settings
View keys.ahk
#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/
View no_chrome.recipe.yaml
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'
View gist:75ad9c4e36b901070428bcc892fe4edb
#!/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
View yaml_plist_a_dir.py
#!/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
View 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>
View SmartGroupTemplate-CFBundleVersion.xml
<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>
View xerox_pull_n_go.ps1
#Vars
#zackn9ne and Kyle
#Printer Driver Name
$driver="Xerox AltaLink C8000Series EFI"
#Get Files
$url = "https://abingtonstorage.blob.core.windows.net/printerdrivers/printers.zip"
View gist:c4083685a0aa93f2ab6a39958f8f37d1
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 Feb 12, 2020
hackkerrank challenge
View sortletter.js
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])