Skip to content

Instantly share code, notes, and snippets.

View minhtran83's full-sized avatar

Minh Tran minhtran83

  • https://github.com/atlassian
  • Sydney, Australia
View GitHub Profile
@minhtran83
minhtran83 / slack.sh
Last active November 29, 2022 22:34 — forked from andkirby/slack.sh
Shell/Bash script for sending slack messages.
#!/usr/bin/env bash
####################################################################################
# Slack Bash console script for sending messages.
####################################################################################
# Installation
# $ curl -s https://gist.githubusercontent.com/andkirby/67a774513215d7ba06384186dd441d9e/raw --output /usr/bin/slack
# $ chmod +x /usr/bin/slack
####################################################################################
# USAGE
# Send message to slack channel/user
@minhtran83
minhtran83 / get_oracle_jdk_x64.sh
Created June 14, 2021 23:05 — forked from n0ts/get_oracle_jdk_x64.sh
Get latest Oracle JDK package bash shell script for linux/osx/windows
#!/bin/bash
# You must accept the Oracle JDK License Update
# https://www.oracle.com/java/technologies/javase-downloads.html
# usage: get_oracle_jdk_x64.sh <jdk_version> <platform> <ext>
# jdk_version: 14
# platform: linux or osx or windows
# ext: rpm or dmg or tar.gz or exec
jdk_version=${1:-14}
@minhtran83
minhtran83 / wget-jdk-oracle-install-example.txt
Created June 14, 2021 23:05 — forked from sr75/wget-jdk-oracle-install-example.txt
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
-O jdk-7-linux-x64.rpm
# ubuntu
@minhtran83
minhtran83 / git-aliases-export.sh
Created June 1, 2021 10:38 — forked from miguelbermudez/git-aliases-export.sh
Git Aliases from oh-my-zsh git plugin ported to fish shell
#
# Aliases
# (sorted alphabetically)
#
# GIT #
alias g 'git'
alias ga 'git add'
@minhtran83
minhtran83 / it-ebooks.md
Created March 30, 2021 06:25 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
@minhtran83
minhtran83 / arcanist_cheatsheet.md
Created August 26, 2020 14:36 — forked from tony612/arcanist_cheatsheet.md
arcanist cheatsheet
  • create tasks T{NNNN} asign them
  • create a branch with name like "T{NNNN}-boo-hoo"
  • git checkout -b T1234-boo-foo
  • commit changes on that branch until it gets ready to be reviewed
  • git commit -am 'first'
  • git commit -am 'now it works'
  • check if it's lint free (NOTE: it runs lint against only modified files)
  • arc lint
  • push a review request to the server. This will create a diff with id D{NNNN}
  • arc diff
@minhtran83
minhtran83 / web-servers.md
Created July 17, 2020 11:27 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@minhtran83
minhtran83 / web-servers.md
Created July 17, 2020 11:27 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000