docker stop $(docker ps -a -q)
docker rmi my_image
docker rmi -f my_image
def getVersionName = { -> | |
def hashStdOut = new ByteArrayOutputStream() | |
exec { | |
commandLine "git", "rev-parse", "--short", "HEAD" | |
standardOutput = hashStdOut | |
} | |
def buildNumberStdOut = new ByteArrayOutputStream() | |
exec { | |
commandLine 'echo', "$BUILD_NUMBER" |
DOCTL | |
Installation | |
Option 1 โ Download a Release from GitHub | |
Visit the Releases page for the doctl GitHub project. | |
https://github.com/digitalocean/doctl/releases | |
tar xf ~/doctl-1.4.0-linux-amd64.tar.gz | |
sudo mv ~/doctl /usr/local/bin | |
Configure |
# ----------------------------------------------- | |
# BEFORE USING THIS SCRIPT | |
# ----------------------------------------------- | |
# 1 - Create a file in /etc/<yourpassfile>.pass which contains the vpn private key password. | |
# 2 - Set permission for the file: 'sudo chmod 600 /etc/<yourpassfile>.pass' - Owner can read and write. | |
# 3 - Create an alias in your .bashrc or bash_profile: alias vpn="sudo sh <path to your script>". | |
# 4 - Set the value of the variable OVPN_FILE_PATH with the path of the .ovpn file. | |
# 5 - Set the value of the variable OVPN_PRIVATE_KEY_FILE_PATH with the path of the created file in step #1: /etc/<yourpassfile>.pass | |
# 6 - OPTIONAL: avoid password when executing the script, add this to /etc/sudoers '<your username> ALL=(ALL:ALL) NOPASSWD:<path to your script>' |
The laptop works well on Archlinux. A few notes based on the installation guide for the previous version.
Per the Arch wiki, more power can be saved by creating /etc/modprobe.d/i915.conf
with the following content:
options i915 modeset=1 enable_rc6=1 enable_fbc=1 enable_guc_loading=1 enable_guc_submission=1 enable_psr=1
git remote -v
origin [email protected]:YOUR_USERNAME/YOUR_FORK.git (fetch)
origin [email protected]:YOUR_USERNAME/YOUR_FORK.git (push)
# Fancy Terminal Prompt ---------------------------------------------------------- | |
txtcyn=$'\e[0;36m' # Cyan | |
txtred=$'\e[0;31m' # Red | |
txtwht=$'\e[0;37m' # White | |
txtrst=$'\e[0m' # Text Reset | |
function parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} |
#!/bin/bash | |
# Download GitKraken | |
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz | |
# copy the downloaded file into /opt directory | |
cp gitkraken-amd64.tar.gz /opt/gitkraken | |
cd /opt |
1 - Open the terminal and type below given command
cd /root
yum install wget (you can skip this step if wget is already installed)
wget https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-0.83.zip (check the newest version)
2 - Check if the directory /usr/share/fonts exist. If the fonts directory do not exist,you can create yourself.
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: