- Turn the Ship Arround
- Project to Product
- Accelerate
- Dreaming in Code
- The Pragmatic Programmer
- Sprint
- Rework
- [The Unicorn Project](https://www.amazon.com/Unicorn-Project-Developers-Disruption-Thriving/dp/1942788762/ref=sr_1_1_sspa?keywords=The+Phoenix+Projec
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
# From the last release to the HEAD of master | |
# find all commits with a Jira key | |
$ git log <branch_A>..<branch_B> 2> /dev/null | grep -Eo "[A-Za-z]+-[0-9]+" | sort | uniq | |
# checkout the same branch across multiple repos | |
$ ls | xargs -P10 -I{} git -C {} checkout <branch_name> | |
# make an alias to run a git command across multiple repo, add to ~/.bashrc or ~/.zshrc | |
alias agit="ls | xargs -P10 -I{} git -C {}" |
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
# From the last release to the HEAD of master | |
# find all commits with a Jira key | |
$ git log origin/6.6..master | grep -Eo [A-Za-z]+-[0-9]+ | sort | uniq |
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="https://code.jquery.com/jquery-2.1.4.js" type="text/javascript"></script> | |
<script src="https://sde.birst.com/js/birst_embed.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
var ssoUrl = 'https://sde.birst.com/[email protected]&birst.ssopassword=wVn4lZIoEx81nj7BsdC1OJ3TsGdkJF2N&birst.spaceId=6760e6ce-413c-4f41-9b90-6d9906158299'; | |
var params = '&birst.module=newDashboards&birst.embedded=true&birst.dashboard=Sales%20Analysis&birst.page=Summary'; | |
function ssoPost( params ) { | |
$.post( ssoUrl, {}, function( data ) { | |
var opts = { width: '100%', height: '800', iframeSrc: 'https://sde.birst.com/SSO.aspx?birst.SSOToken=' + data + params }; |
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 | |
# print last timestampe from last two log files | |
# "2016-10-28T14:21:28.022-04:00" | |
# compare the date to now and return if > 5 min | |
# convert date to unix epoch | |
if [ $# = 1 ]; then | |
now=$(date +"%F %T"); | |
if [[ $(date -d `cat $(ls -1tr /syslog/vsynch/app*.log*) | grep "pushing changes" | cut -c1-19 | tail -1` +%s ) > `date -d "$1 secs ago" +%s` ]]; | |
then echo "$now: VSYNC UP" >> /syslog/vsynch/vsync-monitor.log; | |
else mail -s "vsync down!" [email protected],[email protected],[email protected] < /dev/null; |
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
'use strict'; | |
var tagBody = '(?:[^"\'>]|"[^"]*"|\'[^\']*\')*', | |
tagOrComment = new RegExp( | |
'<(?:' + | |
// Comment body. | |
'!--(?:(?:-*[^->])*--+|-?)' + | |
// Special "raw text" elements whose content should be elided. | |
'|script\\b' + tagBody + '>[\\s\\S]*?</script\\s*' + |
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
~/Dropbox (National Geographic)/Projects/cq-reference/platform feature/AEM-2478* 13s | |
(vagrant)❯ fab deploy | |
1.7.0 | |
bpdtool.tasks.aem.deploy WARNING No username argument received, using default: admin | |
bpdtool.tasks.aem.deploy WARNING No password argument received, using default: admin | |
[aem.localhost.nationalgeographic.com] Executing task 'check_webapp_access_over_ssh' | |
[aem.localhost.nationalgeographic.com] run: sudo puppet --version | |
[aem.localhost.nationalgeographic.com] out: 3.7.3 (Puppet Enterprise 3.7.1) | |
[aem.localhost.nationalgeographic.com] out: |
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"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>com.foo.www</groupId> | |
<artifactId>fe-package</artifactId> | |
<version>0.1.0</version> |
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 | |
#GLOBAL | |
HTTPRESPONSE="json" | |
SUCCESS="success" | |
#TEST | |
#UIARTFCT="target/package.zip" | |
#UILOC="./target/" | |
#AUTHORHOST="localhost" |
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
_isUrl = function (str) { | |
// pass --> http://google.com | |
// pass --> ftp://google.com | |
// pass --> google.com | |
// pass --> localhost | |
// pass --> 127.0.0.1 | |
// pass --> 1.1.1.1 | |
// pass --> http://127.0.0.1 | |
// pass --> http://localhost |
NewerOlder