Lost the root/admin password? You can reset it using the command-line. Recipe adapted from gitlab issue #308.
# start the console
sudo gitlab-rails console| Um fork do gist de configuração (https://gist.github.com/phackwer) do Sublime Text 3 para funcionar similar ao Netbeans. | |
| Segue relação dos plugins que estou utilizando com o Sublime, bem como minhas configurações: | |
| O primeiro package a instalar é o Package Control. A partir dele é possível intalar todos os outros pacotes executando Ctrl+Shift+P (ou Cmd para quem usa Mac), e buscando por "Package Control:Install Package". | |
| Para instalar o Package Control, execute as instruções contidas nesta página: | |
| https://packagecontrol.io/installation | |
| Agora, chame o comando de instalação de pacotes e instale os seguintes pacotes. |
| <?php | |
| $currency_symbols = array( | |
| 'AED' => 'د.إ', // ? | |
| 'AFN' => 'Af', | |
| 'ALL' => 'Lek', | |
| 'AMD' => '', | |
| 'ANG' => 'ƒ', | |
| 'AOA' => 'Kz', // ? | |
| 'ARS' => '$', | |
| 'AUD' => '$', |
| AF - Afghanistan | |
| AL - Albania | |
| DZ - Algeria | |
| AS - American Samoa | |
| AD - Andorra | |
| AO - Angola | |
| AI - Anguilla | |
| AQ - Antarctica | |
| AG - Antigua and Barbuda | |
| AR - Argentina |
Lost the root/admin password? You can reset it using the command-line. Recipe adapted from gitlab issue #308.
# start the console
sudo gitlab-rails console| IE6 Only | |
| ================== | |
| _selector {...} | |
| IE6 & IE7 | |
| ================== | |
| *html or { _property: } | |
| IE7 Only | |
| ================== |
| <?php | |
| include_once 'google-api-php-client/vendor/autoload.php'; | |
| $client = new Google_Client(); | |
| $application_creds = 'service-account-credentials.json'; | |
| $credentials_file = file_exists($application_creds) ? $application_creds : false; | |
| define("SCOPE",Google_Service_Calendar::CALENDAR); | |
| define("APP_NAME","Google Calendar API PHP"); |
| <?php | |
| if (!function_exists('array_group_by')) { | |
| /** | |
| * Groups an array by a given key. | |
| * | |
| * Groups an array into arrays by a given key, or set of keys, shared between all array members. | |
| * | |
| * Based on {@author Jake Zatecky}'s {@link https://github.com/jakezatecky/array_group_by array_group_by()} function. | |
| * This variant allows $key to be closures. |
| // Implementation in ES6 | |
| function pagination(c, m) { | |
| var current = c, | |
| last = m, | |
| delta = 2, | |
| left = current - delta, | |
| right = current + delta + 1, | |
| range = [], | |
| rangeWithDots = [], | |
| l; |
| <?php | |
| use Swagger\Annotations as SWG; | |
| /** | |
| * @SWG\Swagger( | |
| * basePath="/v1", | |
| * host="api.local", | |
| * schemes={"http"}, | |
| * produces={"application/json"}, |
Here are the steps for getting a working Linux install for React Native:
sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-managersudo adduser $USER libvirtd