This file contains hidden or 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 | |
# set -ex | |
usage() { | |
echo "Usage: $0 [-h|--help] [ssh_options] SOURCE_PATH TARGET_PATH" | |
echo "" | |
echo "SOURCE_PATH and TARGET_PATH can be either local or remote paths." | |
echo "Remote paths should be in the format user@server:/path" | |
echo "Paths don't support wildcard syntax" | |
echo "" |
This file contains hidden or 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
#define extract32(value, start, length) \ | |
(((value) >> (start)) & (~0 >> (32 - (length)))) | |
#define MAX_MXL 64 | |
#define MXL_MASK (MAX_MXL - 1) | |
#define x(i) (i) | |
#define zero_r x(0) | |
#define ra_r x(1) |
This file contains hidden or 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 | |
# Usage: | |
# source cd-index.sh [INDEX] | |
# Example: | |
# $ echo 'alias ci="source /path/cd-index.sh"' >> ~/.bashrc | |
# $ source ~/.bashrc | |
# $ ci | |
# /home/user/some/path | |
# ----3----2----1----0 | |
# 2 (input a index) |
This file contains hidden or 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/env bash | |
# win-ldd | |
# | |
# Based on | |
# https://github.com/shiluotang/ldd-light/blob/master/ldd-light | |
# | |
# Example: | |
# ./win-ldd.sh --dir=path1 --dir=path2 *.dll *.exe | |
# |