NAME
sed -- stream editor
SYNOPSIS
sed [-Ealn] command [file ...]
sed [-Ealn] [-e command] [-f command_file] [-i extension] [file ...]
rsync -ravz -e ssh [email protected]:/opt/ /home/user/directory/
rsync -avz -e "ssh -A -i /home/user/.ssh/id_rsa" [email protected]:/data /home/user/projects/data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout master | |
git pull | |
git checkout -b patch/mypatch | |
git fetch origin master | |
git reset --hard origin/master | |
git cherry-pick -m 1 [commit-hash] | |
git push origin patch/mypatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Built/tested on: | |
# NAME="Ubuntu" VERSION="16.04.2 LTS (Xenial Xerus)" | |
# libgit2/libgit2 | |
# https://github.com/libgit2/libgit2/releases | |
# libgit2 is a portable, pure C implementation of the Git core methods | |
# provided as a re-entrant linkable library with a solid API, allowing | |
# you to write native speed custom Git applications in any language with bindings. | |
libgit2='v0.25.0.tar.gz' | |
libgit2ver='0.25.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Term::ANSIColor qw(:constants); | |
use Data::Printer; | |
$| = 1; # turn off the buffering of STDOUT | |
my ($choice, $times, $key, $value, @hash); | |
my @array = 0..9; |