IPv4
ping hostname_or_ip
IPv6
ping6 hostname_or_ip
| for file in $(ls *.png); do convert "$file" -alpha remove -alpha off "$file"; done |
| # Colorful terminal | |
| export PATH=/usr/local/bin:$PATH | |
| export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
| export CLICOLOR=1 | |
| export LSCOLORS=ExFxBxDxCxegedabagacad | |
| alias ls='ls -GFh' |
| #!/bin/bash | |
| NAME="$1" | |
| if [ "x$NAME" == "x" ]; then | |
| echo "please tell me the submodule name to remove" | |
| exit -1 | |
| fi | |
| TMP_NAME="${NAME}_tmp" |
| // add this after dependencies section in a module | |
| // this script has to be in the same path as the module | |
| // otherwise, relative or absolute paths has to be used | |
| task someScript(type: Exec) { | |
| commandLine 'sh', '-c', './some_script.sh' | |
| } | |
| preBuild.dependsOn someScript |
| import android.content.Context; | |
| import android.hardware.Sensor; | |
| import android.hardware.SensorEvent; | |
| import android.hardware.SensorEventListener; | |
| import android.hardware.SensorManager; | |
| import android.os.Build; | |
| import android.os.PowerManager; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.util.Log; |
| import android.support.v7.app.AppCompatActivity; | |
| import android.support.v7.widget.SearchView; | |
| import android.text.Editable; | |
| import android.text.TextWatcher; | |
| import android.widget.EditText; | |
| import java.util.Timer; | |
| import java.util.TimerTask; | |
| /** |
| // | |
| // UIColorFromRGB.swift | |
| // | |
| // | |
| // Created by Alex Gotev on 21/11/16. | |
| // | |
| // | |
| import Foundation | |
| import UIKit |