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
parse_git_branch() { | |
branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'` | |
if [ "${branch}x" != "x" ]; then | |
echo -n "$branch" | |
if [ `git st | grep -c 'Changes'` -ge 1 ] ; then echo -n ' * ' ; fi | |
fi | |
} | |
export PS1="\h\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\]> " |
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
# Installation of Openresty (Nginx + modules) | |
# Prepare with install some required packages | |
sudo apt-get install gcc make perl libpcre3-dev libssl-dev libreadline-dev libncurses5-dev libpcre3-dev libssl-dev libxslt-dev libgeoip-dev | |
# Add the Nginx user that will be used to run the daemon | |
sudo adduser --system --no-create-home --disabled-login --disabled-password --group nginx | |
# Go into /tmp folder for download and compiling Nginx | |
mkdir -p /tmp/nginx && cd /tmp/nginx |
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
<html> | |
<head> | |
<script src="//tracking-host.co/f.js"></script> | |
<script> | |
fetch("/your-own-geo.json").then(function(r) { r.toJSON().then(function(geo) { | |
__ctm.config.code = geo.area_code; // 410, 954, etc... | |
__ctm.config.region = geo.region; // MD, CA, etc.. | |
__ctm.config.country = geo.country; // US, GB, etc... | |
__ctm.main.start(document.getElementById("phone")); // start and only replace within phone element or leave blank to swap whole document. | |
}); |
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
/* | |
Copyright 2018 CallTrackingMetrics | |
Integrating phone calls with openweathermap.org. | |
*/ | |
function KelvinToFahrenheit(kelvin) { | |
return Math.round(((9/5) * kelvin) - 459.67); | |
} |
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
ruby t.rb | |
ruby: 2.1.5, linux: Linux ip-10-55-11-11 4.14.67-66.56.amzn1.x86_64 #1 SMP Tue Sep 4 22:03:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux | |
(Not all processes could be identified, non-owned process info | |
will not be shown, you would have to be root to see it all.) | |
connections open: 1 | |
(Not all processes could be identified, non-owned process info | |
will not be shown, you would have to be root to see it all.) | |
connections open: 2 | |
(Not all processes could be identified, non-owned process info | |
will not be shown, you would have to be root to see it all.) |
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
/* | |
panoply.io send data about phone calls, text messages, web forms and more to panoply.io. | |
USAGE: | |
Step 1: | |
Add to https://app.calltrackingmetrics.com/lambdas/new | |
Name your function panoply.io | |
Step 2: |
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
taf2~/work/ctm (master $>)> git push | |
Counting objects: 15, done. | |
Delta compression using up to 8 threads. | |
Compressing objects: 100% (15/15), done. | |
Writing objects: 100% (15/15), 2.88 KiB | 2.88 MiB/s, done. | |
Total 15 (delta 13), reused 0 (delta 0) | |
remote: Resolving deltas: 100% (13/13), completed with 13 local objects. | |
remote: /data/github/releases/deploy-b/vendor/gems/2.4.2/ruby/2.4.0/gems/statsd-ruby-0.3.0.github.3.38.gd478cc7/lib/github/statsd.rb:23:in `ip': getaddrinfo: Name or service not known (SocketError) | |
remote: from /data/github/releases/deploy-b/vendor/gems/2.4.2/ruby/2.4.0/gems/statsd-ruby-0.3.0.github.3.38.gd478cc7/lib/github/statsd.rb:23:in `initialize' | |
remote: from /data/github/releases/deploy-b/vendor/gems/2.4.2/ruby/2.4.0/gems/statsd-ruby-0.3.0.github.3.38.gd478cc7/lib/github/statsd.rb:106:in `new' |
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
/* | |
Copyright 2018 CallTrackingMetrics | |
Integrating phone calls with openweathermap.org. | |
*/ | |
function KelvinToFahrenheit(kelvin) { | |
return Math.round(((9/5) * kelvin) - 459.67); | |
} |
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
<p>Place Your Target Number Here</p> | |
<script type="text/javascript" src="//static.parastorage.com/services/js-sdk/1.83.0/js/wix.min.js"></script> | |
<script src="//static.parastorage.com/services/third-party/react/15.3.1/react-with-addons.min.js"></script> | |
<script src="//static.parastorage.com/services/third-party/react/15.3.1/react-dom.min.js"></script> | |
<script src="//static.parastorage.com/services/third-party/jquery/3.1.1/dist/jquery.min.js"></script> | |
<script src="//static.parastorage.com/services/third-party/lodash/4.17.2/lodash.js"></script> | |
<script src="//static.parastorage.com/services/js-sdk/1.81.0/js/wix.min.js"></script> | |
<script src="//static.parastorage.com/services/editor-ui-lib/1.26.0/lib/editor-ui-lib.min.js"></script> | |
<script> | |
// this will run as our code is loaded and available allowing you to customize how the script runs |
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
<!doctype html> | |
<html> | |
<head> | |
<style> | |
input[type=submit], | |
label { display:block; } | |
</style> | |
<!-- the tracing code typically using your tracking code found under Numbers -> Tracking Code --> | |
<script async src="//18614.ctmbizapp.co:8080/t.js"></script> | |
<title>FooBar Form Test Site</title> |