Skip to content

Instantly share code, notes, and snippets.

View vinicius5581's full-sized avatar
:octocat:
Chilling

Vinicius Santana vinicius5581

:octocat:
Chilling
View GitHub Profile
// Requirements:
// There are two types of pages on my project and they can only bee seen if the user is logged in.
// Some pages requires the user to have site.docs permissions and the other require the user to
// have site.staff permissions in order to see the pages.
// I expect the same behavior on my menu and I would like the menu items (links to the pages)
// to be visible only if the user has the proper permissions.
// The following code is showing all menu links to the users with side.docs permissions.
# update your local master branch
git checkout master
git pull --rebase
# never do any work on master branch
# create & switch to new branch instead
git checkout -b my_branch
# rebase 'my_branch' onto master
git checkout my_branch
http://localhost/apiservices/v1/launch/onboard?p=2W35N0x3mQq3NCLCx4ccMe6fCyRI2t36wmaa7BN9lrx4zOpR7adeKvj53N1MOopE
@vinicius5581
vinicius5581 / bash-cheatsheet.sh
Created November 11, 2016 18:23 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@vinicius5581
vinicius5581 / .bashrc
Created November 10, 2016 19:17
My personal .bashrc
#PS1="$(tput setaf 166)\t - $(tput setaf 166)\u$(tput setaf 228)@\h $(tput setaf 71)\W -> $(tput sgr0)";
orange=$(tput setaf 166);
yellow=$(tput setaf 228);
green=$(tput setaf 71);
white=$(tput setaf 15);
bold=$(tput bold);
reset=$(tput sgr0);
COLOR_RED="\033[0;31m"
COLOR_YELLOW="\033[0;33m"
@vinicius5581
vinicius5581 / .bash_profile
Last active November 10, 2016 19:17
.bash_profile
export PATH=/usr/local/bin:$PATH
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
http://10.34.68.180/apiservices/v1/launch/clientportal?p=V1icfOdRwNnoXHgxzji0%2FfMe92xzEsPuSUJKZYJMp%2BKA5qtcl7mj%2B8lOCEhbTMoA
{"chart":{"type":"spline","events":{},"marginRight":80},"yAxis":{"gridLineWidth":1,"labels":{"format":"{value}","align":"left"},"startOnTick":false,"showLastLabel":true,"showFirstLabel":true,"endOnTick":false,"maxPadding":0.2},"xAxis":{"labels":{"y":20,"style":{"color":"black"}},"tickLength":0,"events":{}},"legend":{"enabled":false},"navigator":{"enabled":true,"margin":5,"maskFill":"rgba(92, 191, 145, 0.23)","series":{},"xAxis":{"labels":{"style":{"color":"black"}}}},"tooltip":{"shared":true,"useHTML":true,"valueSuffix":"","shape":"callout","crosshairs":false},"scrollbar":{"enabled":true,"trackBackgroundColor":"rgb(238, 238, 238)"},"rangeSelector":{"enabled":false,"allButtonsEnabled":true,"buttonTheme":{"fill":"none","stroke":"none","r":2,"style":{"color":"black","fontWeight":"normal","fontSize":"1.1rem"},"states":{"hover":{"fill":"grey","style":{"color":"white"}},"select":{"fill":"black","style":{"color":"white"}}}},"inputBoxBorderColor":"white","inputBoxWidth":80,"inputBoxHeight":18,"inputPosition":{"x":0},
{"chart":{"type":"spline","events":{},"marginRight":80},"yAxis":{"gridLineWidth":1,"labels":{"format":"{value}","align":"left"},"startOnTick":false,"showLastLabel":true,"showFirstLabel":true,"endOnTick":false,"maxPadding":0.2},"xAxis":{"labels":{"y":20,"style":{"color":"black"}},"tickLength":0,"events":{}},"legend":{"enabled":false},"navigator":{"enabled":true,"margin":5,"maskFill":"rgba(92, 191, 145, 0.23)","series":{},"xAxis":{"labels":{"style":{"color":"black"}}}},"tooltip":{"shared":true,"useHTML":true,"valueSuffix":"","shape":"callout","crosshairs":false},"scrollbar":{"enabled":true,"trackBackgroundColor":"rgb(238, 238, 238)"},"rangeSelector":{"enabled":false,"allButtonsEnabled":true,"buttonTheme":{"fill":"none","stroke":"none","r":2,"style":{"color":"black","fontWeight":"normal","fontSize":"1.1rem"},"states":{"hover":{"fill":"grey","style":{"color":"white"}},"select":{"fill":"black","style":{"color":"white"}}}},"inputBoxBorderColor":"white","inputBoxWidth":80,"inputBoxHeight":18,"inputPosition":{"x":0},
Sample of hightlight poping up actions
https://medium.com/react-tutorials/react-backbone-router-c00be0cf1592#.yqslhyz76