Skip to content

Instantly share code, notes, and snippets.

zackn9ne zackn9ne

View GitHub Profile
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])
@zackn9ne
zackn9ne / gist:82d488c63023fbc63bb56414dcb7e8de
Last active Jan 1, 2020
aws_security_group_for_unifi.sh 8080 8443 8843 8880 6789
View gist:82d488c63023fbc63bb56414dcb7e8de
-p 3478:3478/udp \
-p 10001:10001/udp \
-p 8080:8080 \
-p 8081:8081 \
-p 8443:8443 \
-p 8843:8843 \
-p 8880:8880 \
-p 6789:6789 \
aws ec2 create-security-group --description "my security group" --group-name "my-security-group"
View hostname.sh
#!/bin/sh
echo "Please enter your desired hostname NO SPACES ALLOWED, use dash"
read HWNAME
scutil --set ComputerName "$HWNAME"
scutil --set LocalHostName "$HWNAME"
dscacheutil -flushcache
You can’t perform that action at this time.