Update system
yum update
Set your timezone
#!/usr/bin/env python | |
""" | |
If you use landslide to create slideshows using markdown, you may have found | |
yourself repeating endlessly: | |
+ save source document | |
+ switch to the terminal to run landslide | |
+ reload the generated html in your browser | |
This QT (using webkit) based "application" monitor changes to the source file |
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
# paci - install one or more packages | |
# pacu - upgrade all packages to their newest version | |
# pacr - uninstall one or more packages | |
# pacs - search for a package using one or more keywords | |
# pacinfo - show information about a package | |
# pacinstalled - show if a package is installed | |
# paca - list all installed packages | |
# paclo - list all packages which are orphaned | |
# pacdnc - delete all not currently installed package files | |
# pacfiles - list all files installed by a given package |
#! /usr/bin/env python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
To install a composer package globally, you run the usual require command, but with the addition of the global modifier. So to install PHPUnit, you would run:
$ composer global require phpunit/phpunit
$ composer global require phpunit/dbunit
$ composer global require phing/phing
$ composer global require phpdocumentor/phpdocumentor
$ composer global require sebastian/phpcpd
<?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; |
document | |
.querySelectorAll('button[aria-label^="Aceitar o convite de"]') | |
.forEach((btn, i) => setTimeout(() => btn.click(), i + 500)); |