This file contains hidden or 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 | |
consul event -name 'Name of your event' -token=$CONSUL_TOKEN 'Some payload, you should probably use JSON here' | |
This file contains hidden or 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 | |
while true; do | |
INDEX_FILE="$(mktemp -t consul_index_XXX)" | |
CONSUL_INDEX=$( | |
curl -isL -H "X-Auth-Token: $CONSUL_TOKEN" \ | |
-H 'X-Consul-Index: 1' \ | |
--cacert /etc/consul/ssl/ca.cert "https://consul.service.consul:8500/v1/event/list?index=$CONSUL_INDEX&wait=1m" | \ | |
tee "$INDEX_FILE" | \ | |
grep X-Consul-Index | \ | |
sed -e 's/^.*: *//' | \ |
This file contains hidden or 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 | |
find . -name '.gitmodules' | while read gitmodules; do | |
parent_path="$(echo $gitmodules | sed -e 's/.gitmodules//')" | |
git config -f $gitmodules --get-regexp '^submodule\..*\.path$' | | |
while read path_key path | |
do | |
url_key=$(echo $path_key | sed 's/\.path/.url/') | |
gitmodules_url=$(git config -f $gitmodules --get "$url_key") |
This file contains hidden or 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 | |
which brew || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew tap caskroom/cask | |
# Install java | |
brew cask install java | |
# Install ant, and the Android NDK and SDK | |
brew install ant android-ndk android-sdk |
This file contains hidden or 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
# To run this in a Powershell, copy and paste this: | |
# Set-ExecutionPolicy Unrestricted ; icm $executioncontext.InvokeCommand.NewScriptBlock((New-Object Net.WebClient).DownloadString('https://gist.githubusercontent.com/ianblenke/a7654bcbbc2f4c83c0f3/raw')) | |
$coreEditions = @(0x0c,0x27,0x0e,0x29,0x2a,0x0d,0x28,0x1d) | |
$IsCore = $coreEditions -contains (Get-WmiObject -Query "Select OperatingSystemSKU from Win32_OperatingSystem" | Select -ExpandProperty OperatingSystemSKU) | |
cd $Env:USERPROFILE | |
Set-Location -Path $Env:USERPROFILE | |
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath |
This file contains hidden or 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
for mac in $(curl -qsL http://169.254.169.254/2014-11-05/meta-data/network/interfaces/macs/); do | |
printf "\n[$mac]" | |
curl -qsL http://169.254.169.254/2014-11-05/meta-data/network/interfaces/macs/$mac | while read line ; do | |
echo $line=$(curl -qsL http://169.254.169.254/2014-11-05/meta-data/network/interfaces/macs/$mac$line/); | |
done ; | |
done |
This file contains hidden or 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
diff -u rtpproxy-1.2.1/main.c rtpproxy-1.2.1-adv2/main.c | |
--- rtpproxy-1.2.1/main.c 2012-10-04 22:09:35.000000000 +0200 | |
+++ rtpproxy-1.2.1-adv2/main.c 2013-07-18 10:54:02.000000000 +0200 | |
@@ -98,7 +98,8 @@ | |
fprintf(stderr, "usage: rtpproxy [-2fvFiPa] [-l addr1[/addr2]] " | |
"[-6 addr1[/addr2]] [-s path]\n\t[-t tos] [-r rdir [-S sdir]] [-T ttl] " | |
"[-L nfiles] [-m port_min]\n\t[-M port_max] [-u uname[:gname]] " | |
- "[-n timeout_socket] [-d log_level[:log_facility]]\n"); | |
+ "[-n timeout_socket] [-d log_level[:log_facility]] " | |
+ "[-A addr1[/addr2]]\n"); |
This file contains hidden or 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" standalone="yes"?> | |
<profile project="MinGW" application="mingw-get"> | |
<!-- | |
<repository uri="http://www.pllab.riec.tohoku.ac.jp/smlsharp/download/mingw32/%F.xml.lzma"> | |
<package-list catalogue="smlsharp-package-list" /> | |
</repository> | |
$Id: profile.xml,v 1.4 2010/08/24 20:02:10 keithmarshall Exp $ | |
Written by Keith Marshall <[email protected]> | |
Copyright (C) 2009, 2010, MinGW Project |
This file contains hidden or 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
diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc | |
index 13ba5d9..015d801 100644 | |
--- a/src/hb-coretext.cc | |
+++ b/src/hb-coretext.cc | |
@@ -719,9 +719,9 @@ retry: | |
/* What's the iOS equivalent of this check? | |
* The symbols was introduced in iOS 7.0. | |
* At any rate, our fallback is safe and works fine. */ | |
-#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090 | |
+/*#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090*/ |
This file contains hidden or 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 | |
# Author: Ian Blenke <[email protected]> | |
# Purpose: Prepare and build linphone for Mac | |
# Note: This script is idempotent, and should be runnable multiple times in succession without issue. | |
#export HOMEBREW_GITHUB_API_TOKEN= | |
set -ex | |
sudo perl -pi -e 's/^#%wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers |