git fetch origin # Updates origin/master
git rebase origin/master # Rebases current branch onto origin/master
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
docker ps -q | xargs -L 1 docker logs --follow |
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
pointer, read_only_flag = attr_mmap_data.__array_interface__['data'] | |
print(pointer) | |
pointer, read_only_flag = attr_data.__array_interface__['data'] | |
print(pointer) | |
attr_data2 = np.ndarray(attr_mmap_data.shape, dtype=np.uint8) | |
pointer, read_only_flag = attr_data2.__array_interface__['data'] | |
print(pointer) |
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
i := 1 | |
for i <= 3 { | |
fmt.Println(i) | |
i = i + 1 | |
} | |
for j := 7; j <= 9; j++ { | |
fmt.Println(j) | |
} |
aws s3 cp --recursive ./local_folder s3://path_to/bucket
Compress
tar -czvf filename.tar.gz ./path
Decompress
tar -xvf filename.tar.gz