npx react-native init AwesomeTSProject --template react-native-template-typescript
This file contains 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
<?php | |
$certificateCAcer = '/certificate.cer'; | |
$certificateCAcerContent = file_get_contents($certificateCAcer); | |
/* Convert .cer to .pem, cURL uses .pem */ | |
$certificateCApemContent = '-----BEGIN CERTIFICATE-----'.PHP_EOL | |
.chunk_split(base64_encode($certificateCAcerContent), 64, PHP_EOL) | |
.'-----END CERTIFICATE-----'.PHP_EOL; |
This file contains 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
#Git ¿Hiciste un commit en la rama incorrecta y no sabes cómo arreglarlo? Don't panic! 😱 | |
1️⃣ Ejecuta "git log" para ver tu historial de commits | |
2️⃣ Copia el hash del commit | |
3️⃣ Ve a la rama correcta y ejecuta "git cherry-pick" 🍒 | |
+ el hash |
This file contains 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
Blade Template 38 mins ███████▌░░░░░░░░░░░░░ 35.8% | |
YAML 35 mins ██████▉░░░░░░░░░░░░░░ 32.9% | |
PHP 26 mins █████▏░░░░░░░░░░░░░░░ 24.6% | |
Other 7 mins █▍░░░░░░░░░░░░░░░░░░░ 6.8% |
This file contains 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
$ cd ~ | |
$ sudo curl -sS https://getcomposer.org/installer | sudo php | |
$ sudo mv composer.phar /usr/local/bin/composer | |
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer | |
then you can run | |
$ sudo composer install |
This file contains 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
<template> | |
<div> | |
<card> | |
<span slot="tools"> | |
<a href="#dlgNewNotice" class="btn btn-icon-toggle" data-toggle="modal"> | |
<i class="fa fa-plus-square"></i> | |
</a> | |
</span> | |
<span slot="title">Avisos</span> |
- Open Chrome, open any webpage
- Right click on the page and select Inspect from the Context menu to open the Developer Console
- Go to Console tab and type:
document.designMode = 'on'
- Start editing the page by clicking anywhere
This file contains 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
<section class="navigation"> | |
<div class="nav-container"> | |
<div class="brand"> | |
<a href="#!">Logo</a> | |
</div> | |
<nav> | |
<div class="nav-mobile"><a id="nav-toggle" href="#!"><span></span></a></div> | |
<ul class="nav-list"> | |
<li> | |
<a href="#!">Home</a> |
This file contains 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/bash | |
username=$1; | |
password=$2; | |
#CREATE USER IN REGISTRY | |
docker run --rm -it -v $(pwd):/data httpd htpasswd -Bb /data/registrypasswords $username $password | |
#CREATE USER IN CATALOG | |
docker run --rm -it -v $(pwd):/data httpd htpasswd -b /data/auth $username $password | |
#UPDATE REGISTRY USERS | |
pass=`cat registrypasswords| base64 -w 0` | |
sed "s/^\(\s*htpasswd\s*:\s*\).*/\1 ${pass}/" secret.yaml > deploy.yaml |