View update_do.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script for sending user defined updates using DO API | |
# 2015 Artem Yakimenko <code at temik dot me> | |
# | |
# activated inside /etc/config/ddns by setting | |
# | |
# option update_script '/usr/lib/ddns/update_do.sh' | |
# | |
# the script is parsed (not executed) inside send_update() function | |
# of /usr/lib/ddns/dynamic_dns_functions.sh | |
# so you can use all available functions and global variables inside this script |
View Brewfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Common taps | |
tap "homebrew/cask-versions" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-drivers" | |
tap "homebrew/core" | |
# Runtimes - python | |
brew "python@3.9" | |
brew "pylint" |
View rogue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/awk -f | |
# | |
# rogue.awk - Find files that are not accounted for | |
# | |
# awk -f rogue.awk | |
# | |
# Rogue is called from a cron job on an hourly basis. | |
# It parses files in the filesystem and checks to see | |
# that they belong to an rpm. Then it prints the | |
# output of rpm -Va to verify those files that do |
View check_devs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#Retrieve the list of devices, an IPA file was built for by parsing the embedded.mobileprovision. | |
[[ -n "$1" ]] || { echo "Usage: ./check_devs.sh sample.ipa"; exit 0 ; } | |
LANG=C | |
IPAFILE=$1 | |
TMPDIR=tmp$$.tmp | |
mkdir $TMPDIR | |
unzip -qq $IPAFILE -d $TMPDIR |
View gist:5895078
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl s_client -connect gateway.push.apple.com:2195 -cert mdm_push_cert.pem |
View dhcp_pretty.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk ' { out = ""} \ | |
{ $1=="lease"||$1=="client-hostname" ? out=" " $2 : out=out } \ | |
{ $1=="binding"||$1=="hardware" ? out= " " $3: out=out } \ | |
{ $1=="ends"? out=" " $3 " " $4: out=out } \ | |
{ $1=="}"? out="\n": out=out } \ | |
{ printf out," " }' dhcpd.leases \ | |
| grep active \ | |
| sed -e s/'[{};" ]'/\ /g \ | |
| awk '{ printf "%-15s %-17s %-10s %-5s\n", $1, $5, $2, $3 }' |
View gist:5547749
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rvm --trace osx-ssl-certs update all | |
+ [[ -n '' ]] | |
+ set -o errtrace | |
+ export 'PS4=+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ PS4='+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ 1368109216.N /scripts/cli : __rvm_parse_args() 709 > [[ -z '' ]] | |
+ 1368109216.N /scripts/cli : __rvm_parse_args() 709 > [[ -n '' ]] | |
+ 1368109216.N /scripts/cli : __rvm_parse_args() 712 > [[ error == '' ]] | |
+ 1368109216.N /scripts/cli : __rvm_parse_args() 712 > [[ 0 -eq 1 ]] | |
+ 1368109216.N /scripts/cli : __rvm_parse_args() 712 > [[ -n '' ]] |
View git_log_pretty.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative |
View Octopress Publish.applescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Generate and deploy Octopress site from Launchbar | |
Author: Collin Donnell | |
Website: http://collindonnell.com | |
Date: 01/07/2013 | |
*) | |
-- Set to the location on disk of your site | |
set octopressLocation to ((path to home folder as text) & "Code:blog:") as alias |
View exchange_req.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy -Restart |
NewerOlder