cat <<EOF >>~/.bash_profile
export VISUAL="nano"
export EDITOR="nano"
EOF
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
Codility Tests |
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
FROM php:7.1.11-apache-jessie | |
RUN set -e; \ | |
BUILD_PACKAGES="libzip-dev libssh2-1-dev unixodbc-dev"; \ | |
a2enmod headers proxy proxy_http ssl rewrite; \ | |
apt-get update; \ | |
apt-get install -y $BUILD_PACKAGES; \ | |
set +e; \ | |
docker-php-ext-install odbc; \ | |
set -e; \ | |
cd /usr/src/php/ext/odbc; \ |
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
package it.giordanocardillo.magiccardmarket.util; | |
import android.app.Activity; | |
import android.app.AlertDialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
import android.os.Build; |
In your .bashrc put
alias dockertop='docker stats $(docker ps --format={{.Names}})'
Then logout, login again and give dockertop
To exit hit CTRL+C
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
docker run -ti --rm --name tomcat -p 8080:8080 -e JAVA_OPTS='-Djava.security.egd=file:/dev/./urandom' tomcat:8.0 |
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/sh | |
set -e | |
FILES=./*video.mjr | |
if [ ! -x "$(command -v ffmpeg)" ]; then | |
echo "\033[31mERROR\033[0m This script requires \033[1mffmpeg\033[0m" | |
echo | |
exit 1 | |
fi |
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
[*] | |
charset=utf-8 | |
indent_style=space | |
indent_size=2 | |
end_of_line=lf | |
insert_final_newline=true | |
trim_trailing_whitespace=true | |
[*.yml] | |
indent_size=4 |