Skip to content

Instantly share code, notes, and snippets.

View ardihikaru's full-sized avatar

Muhammad Febrian Ardiansyah ardihikaru

View GitHub Profile
@ardihikaru
ardihikaru / postman-update.sh
Created February 1, 2023 03:17 — forked from lira/postman-update.sh
Install/Update postman or postman canary (beta) for linux. Tested in ubuntu 17.10 gnome3
#!/bin/bash
cd /tmp || exit
read -r -p "[s]table or [b]eta? [sS/bB] " choice
choice=${choice,,} # tolower
if [[ ! "$choice" =~ ^(s|b)$ ]]; then
exit
fi
if [[ "$choice" = "s" ]]; then
url=https://dl.pstmn.io/download/latest/linux64
name=Postman
@ardihikaru
ardihikaru / config.fish
Created August 21, 2022 18:54 — forked from pierre-b/config.fish
golang fish shell config
# config file
# vim ~/.config/fish/config.fish
# reload the config
# source ~/.config/fish/config.fish
# set the workspace path
set -x GOPATH /users/my-username/go
# add the go bin path to be able to execute our programs
@ardihikaru
ardihikaru / Coverage Badges
Created January 27, 2022 05:35
Coverage Badges
Coverage Badges
@ardihikaru
ardihikaru / Install_robo3t_Ubuntu.md
Created July 7, 2021 15:23 — forked from abdallahokasha/Install_robo3t_Ubuntu.md
Install Robo3t on Ubuntu18.04 and make a desktop icon for it

Install Robo3t On Ubuntu 18.04

Download the package form Robo3t or using wget
wget https://download.robomongo.org/1.2.1/linux/robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
Extract here using

tar -xvzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz

# Install CURL
$ sudo apt-get install curl
# Install pyenv
# Source here: https://stackoverflow.com/questions/62743132/ubuntu-18-04-command-pyenv-not-found-did-you-mean
$ curl https://pyenv.run | bash
# set environment
$ set -Ux PYENV_ROOT $HOME/.pyenv
$ set -Ux fish_user_paths $PYENV_ROOT/bin $fish_user_paths
echo "OpenCV installation by learnOpenCV.com"
#Specify OpenCV version
cvVersion="3.4.4"
# Clean build directories
rm -rf opencv/build
rm -rf opencv_contrib/build
# Create directory for installation
@ardihikaru
ardihikaru / adduser-ardi.sh
Created October 29, 2019 05:52
Run this script before running "install-vncserver.sh"
#!/bin/bash
adduser ardi
usermod -aG sudo ardi
sudo -H -u ardi bash -c 'mkdir /home/ardi/.ssh'
cp ~/.ssh/authorized_keys /home/ardi/.ssh/authorized_keys
sudo chown ardi:ardi /home/ardi/.ssh/authorized_keys
@ardihikaru
ardihikaru / install-vncserver.sh
Last active October 29, 2019 05:55
Installing vnc-server in Ubuntu 18
#!/bin/bash
#### WARNING:
#### 1. PLEASE MAKE SURE YOU ARE NOT IN "root" USER !!!!
#### 2. I AM USING "ardi" AS THE LOGGED IN USER !!!!
#### 3. Run script "adduser-ardi.sh" first, before running this script; Link: https://gist.github.com/ardihikaru/d3ce4182dc97be529c98dcd935ab690b
#### 4. Tested in DigitalOcean Droplet
# 1. Installation
sudo -H -u ardi bash -c 'sudo apt update'
@ardihikaru
ardihikaru / install-omf.sh
Created October 29, 2019 03:45
Installing oh-my-fish in Ubuntu
#!/bin/bash
curl -L https://get.oh-my.fish | fish
omf install batman
omf install bass
@ardihikaru
ardihikaru / install-fish.sh
Created October 29, 2019 03:44
Installing fish in Ubuntu
#!/bin/bash
# 1. Install fish
apt-add-repository ppa:fish-shell/release-3
apt install fish
fish
chsh -s /usr/bin/fish
# 2. Setup fish message
mkdir -p ~/.config/fish