Skip to content

Instantly share code, notes, and snippets.

javascript:(() => {
/* originally copied from https://gist.github.com/timlevett/29ae591153ea6a8aa61cc2f6e760bac0 */
var as = document.getElementsByClassName("external-link");
for(var i = 0; i < as.length; i++) {
if(as[i].href
&& as[i].href.indexOf('drive') != -1
&& as[i].href.indexOf('open') != -1) {
console.log(as[i].href);
window.open(as[i].href, "_blank");
}
#!/bin/bash
if [ $# -lt 4 ]; then
echo "USAGE : ./github-fetch-all-teams-open-pr.sh <org> <auth-key> <team name> <temp_dir abs path>"
exit -1;
fi
ORG=$1
AUTH_KEY=$2
TEAM=$3
alias dforce='docker service update --force --with-registry-auth --detach'
alias dupdate='dforce'
alias dlogs='docker service logs -f'
alias dps='docker service ps'
alias dls='docker service ls'
alias dscale='docker service scale'
alias dnode='docker node'
alias ddrain='dnode update --availability=drain'
alias dactive='dnode update --availability=active'
alias dpause='dnode update --availability=pause'
something i want over there
@timlevett
timlevett / switch-skin.md
Last active August 23, 2016 20:10
How one switches skin in bucky

If a user is on uportal and wanted to change the skin do the following.

Lookup the skin key in the skinList.xml

THen when on a maximized url in portal, open up your dev console and run

up.jQuery.ajax({url:'/portal/api/layout?action=chooseSkin&skinName=uwExtension', method: 'POST'});

Replacing uwExtension with the skin key you want.

<profiles>
<profile>
<id>ear-deploy</id>
<build>
<plugins>
<plugin>
<groupId>org.jasig.portal.maven</groupId>
<artifactId>uportal-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
levett@timtim:~/projects/test-a2-cli $ ng --version
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: local (v1.0.0-beta.5, branch: master)
node: 5.5.0
os: linux x64
levett@timtim:~/projects/test-a2-cli $ ng init
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
installing ng2
define(['angular'], function(angular) {
/*Keep in sync with docs/mardown/configuration.md*/
var config = angular.module('override', []);
config
//see configuration.md for howto
.constant('OVERRIDE', {
'NAMES' : {
'title': 'alt-title'
@timlevett
timlevett / portletRebuild.sh
Last active February 15, 2016 18:12
Deploy a portlet to your local machine
#!/bin/bash
PROJECTS_HOME=$1
export UPHOME=$PROJECTS_HOME/uPortal/
echo Uportal home set to : $UPHOME
function upDeployPortlet()
{
pushd $UPHOME
ant deployPortletApp -DportletApp="$@"
@timlevett
timlevett / steps-took.md
Last active December 2, 2015 15:25
Project static : a uw-frame review

Summary

I took some time during research day to evaluate uw-frame as a maven project. Many times we have said "why is this a maven project, it is just static content". I took that good point, and ran with it. What if frame was just static content.

Steps Taken for Test