Skip to content

Instantly share code, notes, and snippets.

@robizz
robizz / install_serverless_1.7.0_having_0.5.6.sh
Last active September 28, 2021 17:27
serverless_multiple_versions_how_to
#!/usr/bin/env bash
# thanks mt-sergio https://github.com/serverless/serverless/issues/1572
npm show serverless versions # bonus: how many sls versions are out there? last version now is 1.7.0
sls -v # bonus: see my serverless current version
cd your/sls/project/folder # make sure that the destination folder contains a node_module folder inside!
npm install serverless@1.7.0 # no global install
alias sls170="~/your/sls/project/folder/node_modules/.bin/sls" # to createpermanent alias add this line to your .bashrc / .zshrc
sls170 -v # should return 1.7.0
@robizz
robizz / garage-bira.zsh-theme
Created September 20, 2016 21:52
Bira zsh theme with minutes and seconds commpressed as a first item in the prompt: just to keep under control when a command was launched in case of repetitive launches
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
if [[ $UID -eq 0 ]]; then
local user_host='%{$terminfo[bold]$fg[red]%}%n@%m%{$reset_color%}'
else
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
fi
@robizz
robizz / betaprimecoder.tumblr.theme.html
Last active July 9, 2017 12:55
Beta Prime theme tweaked for a coder monkey blog
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="color:Background" content="#ffffff"/>
<meta name="font:Body" content="'Helvetica Neue',Helvetica,Arial,'Liberation Sans',FreeSans,sans-serif"/>
<meta name="color:Separator" content="#eeeeee"/>
<meta name="color:Description" content="#eeeeee"/>
<meta name="color:Post Info" content="#aaaaaa"/>
<meta name="text:Disqus Shortname" content="" />
<title>{block:SearchPage}{lang:Search results for SearchQuery} - {/block:SearchPage}{block:PostSummary}{PostSummary} - {/block:PostSummary}{Title}</title>
@robizz
robizz / pom.xml
Created April 19, 2015 20:27
maven configuration to run AWS SWF Java Library with Java 8 and AWS SDK 1.9.27 in Eclipse
<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/xsd/maven-4.0.0.xsd">
<!-- adapted from: https://github.com/pedropaulovc/aws-flow-maven-eclipse-samples
then upgraded to 1.9.27 and java 1.8 following http://stackoverflow.com/a/28843218/4094090 -->
<modelVersion>4.0.0</modelVersion>
<groupId>com.amazonaws.services.simpleworkflow.flow</groupId>
<artifactId>startstop</artifactId>
<version>1.8.4</version>