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 | |
# sendusernotification.sh | |
# Created by Alexander Celeste for Tenseg in March 2016 | |
# This script can be used to send user notifications to Notification Center, regularly just to OS X, but also to the Prowl iOS app if the Mac is idle | |
# It can be used in long-running scripts to notify of completion, and in scripts that run via launchd to notify of files being added to folders, or really any use you can dream up | |
# Dependencies: | |
# * terminal-notifier: https://github.com/julienXX/terminal-notifier | |
# * prowl.pl: https://www.prowlapp.com/static/prowl.pl | |
# get inputs |
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 | |
# Add this as a new Run Script build phase for your target. | |
# Created by Alexander Celeste on 8/1/17. | |
# Based on http://kelan.io/2008/xcode-run-script-build-phase-tip/ | |
script_file="git-commit-num-to-build-num.sh" | |
echo "Running a custom build phase script: $script_file" |
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/sh | |
# updates Homebrew and installed packages | |
# requires being run as admin or root user | |
# here for reference as to the steps, but not run as script in launchd anymore | |
# partly because Homebrew updates itself anytime you install a new package these days | |
/bin/date | |
/opt/homebrew/bin/brew update | |
/opt/homebrew/bin/brew upgrade |
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
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $ | |
# This is the sshd server system-wide configuration file. See | |
# sshd_config(5) for more information. | |
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
# The strategy used for options in the default sshd_config shipped with | |
# OpenSSH is to specify options with their default value where | |
# possible, but leave them commented. Uncommented options override the |
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
<?php | |
header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
header('Status: 503 Service Temporarily Unavailable'); | |
header('Retry-After: 3600'); // 1 hour = 3600 seconds | |
?> | |
<!DOCTYPE html> | |
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" > | |
<head> | |
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"> | |
<meta charset="UTF-8" /> |
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
#! /usr/local/bin/php | |
<?php | |
// unserialize input | |
$data = unserialize(trim(fgets(STDIN))); | |
// print it as pretty unescaped json | |
echo json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); |
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
<?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>EnvironmentVariables</key> | |
<dict> | |
<key>HOME</key> | |
<string>/Users/apple</string> | |
<key>PATH</key> | |
<string>/Users/apple/.yarn/bin:/Users/apple/.config/yarn/global/node_modules/.bin:/usr/local/opt/unison@2.40/bin:/Users/apple/bin:/usr/local/mysql/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string> |
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
{ | |
"platform": "BroadlinkRM", | |
"name": "Broadlink RM", | |
"hideScanFrequencyButton": true, | |
"hideLearnButton": true, | |
"hideWelcomeMessage": true, | |
"accessories": [ | |
{ | |
"name": "Learn IR", | |
"type": "learn-code", |
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 | |
# | |
# A script meant to run on the `post-recieve` Git hook to deploy to WordPress.org whenever a new version tag is pushed in. | |
# include common post-recieve functions | |
# from https://github.com/stephenh/git-central/blob/master/server/functions | |
root_dir=$(dirname $0) | |
. $root_dir/post-recieve-functions.sh | |
# cleans up before exiting |
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
<?php | |
/** | |
* Plugin Name: Force Stripe Test Mode | |
* Plugin URI: https://tenseg.net | |
* Description: Forces Stripe into test mode if TG_STRIPE_TEST_MODE defined as 'yes'. | |
* Author: Tenseg LLC | |
* Author URI: https://tenseg.net | |
* Text Domain: force-stripe-test-mode | |
* Version: 1.0.0 |
OlderNewer