This tutorial is on fresh installed Centos 7
We must update server to make sure all libraries is uptodate.
yum update
| var opts = { | |
| angle: 0, // The span of the gauge arc | |
| lineWidth: 0.2, // The line thickness | |
| radiusScale: 0.89, // Relative radius | |
| pointer: { | |
| length: 0.54, // // Relative to gauge radius | |
| strokeWidth: 0.053, // The thickness | |
| color: '#000000' // Fill color | |
| }, |
| <?php | |
| function validaCPF($cpf) { | |
| // Extrai somente os números | |
| $cpf = preg_replace( '/[^0-9]/is', '', $cpf ); | |
| // Verifica se foi informado todos os digitos corretamente | |
| if (strlen($cpf) != 11) { | |
| return false; |
| defmodule MyApp do | |
| use Application | |
| def start(_type, _args) do | |
| import Supervisor.Spec, warn: false | |
| children = [ | |
| Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
| dispatch: dispatch | |
| ]) |
| #!/bin/bash | |
| function echo_mem_stat () { | |
| mem_total="$(free | grep 'Mem:' | awk '{print $2}')" | |
| free_mem="$(free | grep 'Mem:' | awk '{print $7}')" | |
| mem_percentage=$(($free_mem * 100 / $mem_total)) | |
| swap_total="$(free | grep 'Swap:' | awk '{print $2}')" | |
| used_swap="$(free | grep 'Swap:' | awk '{print $3}')" | |
| swap_percentage=$(($used_swap * 100 / $swap_total)) |
| == Adb Server | |
| adb kill-server | |
| adb start-server | |
| == Adb Reboot | |
| adb reboot | |
| adb reboot recovery | |
| adb reboot-bootloader | |
| == Shell |
| /** Service Actions **/ | |
| android.app.action.DEVICE_ADMIN_SERVICE | |
| android.intent.action.RESOLVE_INSTANT_APP_PACKAGE | |
| android.intent.action.RESPOND_VIA_MESSAGE | |
| android.intent.action.TTS_SERVICE | |
| android.media.browse.MediaBrowserService | |
| android.net.action.RECOMMEND_NETWORKS | |
| android.nfc.cardemulation.action.HOST_APDU_SERVICE | |
| android.nfc.cardemulation.action.HOST_NFCF_SERVICE |