Skip to content

Instantly share code, notes, and snippets.

@sartan
sartan / ubuntu_install.sh
Last active April 25, 2018 19:16
pal dotnet ubuntu install script
#!/usr/bin/env bash
set -v
set -e
mkdir -p ~/workspace ~/dev ~/Downloads
sudo apt-get update
sudo apt-get install -y software-properties-common wget curl jq vim apt-transport-https
@sartan
sartan / java_home
Created January 11, 2018 17:31
See currently installed java versions
/usr/libexec/java_home -V
@sartan
sartan / git-push-remote-with-different-name
Created December 30, 2017 11:29
git push to remote branch with different name
git push origin local-name:remote-name
# source:
# https://discussions.apple.com/message/32354266#message32354266
sudo mdutil -Ea
sudo mdutil -ai off
sudo mdutil -ai on
@sartan
sartan / spring-cloud-oauth-annotations.md
Last active September 22, 2017 19:29
Annotations relevant to Spring Cloud OAuth

Below are some Spring annotations used in securing a microservice architecture with OAuth2. Such architecture would likely have:


@sartan
sartan / dotnet_cf_log_level.txt
Last active July 13, 2017 19:45
set logging level for .net app on cloud foundry
cf set-env <app_name> Logging__LogLevel__Default Debug
sudo killall VDCAssistant