apt install php7.2-mysql php7.2-dom php7.2-curl
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
wp --info
View br.m3u
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
#EXTM3U | |
#EXTINF:24,tnt | |
http://170.82.200.38:8080/tnt/tracks-v1a1/mono.m3u8 | |
#EXTINF:20,fx | |
http://170.82.200.38:8080/fx/tracks-v1a1/mono.m3u8 | |
#EXTINF:0,Premiere Clubes | |
http://189.91.128.146:4444/udp/227.10.20.102:1234?PEDROJUNIORTUTORIAIS | |
#EXTINF:0,Premiere 2 | |
http://189.91.128.146:4444/udp/227.10.20.104:1234?PEDROJUNIORTUTORIAIS | |
#EXTINF:0,Premiere 3 |
View br.m3u
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
#EXTM3U | |
#EXTINF:-1 tvg-logo="" group-title="Canais | BBB",Big Brother Brasil [CAM001] HD | |
http://psrv.io:80/9089247/coreurl.me/27861 | |
#EXTINF:-1 tvg-logo="http://z4.vc/1CP" group-title="Canais | Variedades",A&E FHD | |
http://psrv.io:80/9089247/coreurl.me/18858 | |
#EXTINF:-1 tvg-logo="http://z4.vc/uuz" group-title="Canais | Variedades",A&E FHD [H265] | |
http://psrv.io:80/9089247/coreurl.me/22213 | |
#EXTINF:-1 tvg-logo="http://z4.vc/SDH" group-title="Canais | Variedades",A&E HD | |
http://psrv.io:80/9089247/coreurl.me/18738 | |
#EXTINF:-1 tvg-logo="" group-title="Canais | Internacionais",Al Jazeera |
View batch_parellel_processing.go
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
type BatchFunc func(start, end int) error | |
const ( | |
MaxBulkDelete = 1000 | |
MaxBatchSize = 25 | |
) | |
func (s service) BulkDelete(ctx context.Context, businessMetrics []*vanalytics_v1.DeleteBusinessMetricRequest) (*vanalytics_v1.DeleteMultiBusinessMetricsResponse, error) { | |
response := &vanalytics_v1.DeleteMultiBusinessMetricsResponse{} |
View install-wp-cli.md
View solve-digital-ocean.md
I had a machine crash, and needed to setup another one with SSH access. I got the console login ok, but no way to paste my public key there. Just spent a whole day trying to find a way to do this.
My solution, finally was to put the public key on a public dropbox folder, then in the console, use:
curl 'https://dl.dropbox.....' > temp1
cat temp1 >> .ssh/authorized_keys
View README.md
Requirements
- Python 3.7+
- VirtualEnv
- Poetry (https://poetry.eustace.io/) // Package and dependency manager
Install
Project Setup
View .gitlab-ci.yaml
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
image: google/cloud-sdk:latest | |
stages: | |
- deploy | |
#################################################################################################### | |
# DEPLOY | |
# | |
.deploy_template: &deploy_template_def | |
stage: deploy |
View response.kt
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
// { | |
// "id": 4, | |
// "name": "Nikola Tesla", | |
// "branch": "0001", | |
// "branchVerificationDigit": "string", | |
// "account": "1256720", | |
// "accountVerificationDigit": 3, | |
// "phone": "11 95555-5555", | |
// "email": "nikola@tesla.com", | |
// "apiMetadata": { |
View ProductList.js
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
export default function productList(products) { | |
const element = document.getElementById('product-list'); | |
// map of products | |
let productItem = products.map(product => ` | |
<div class="product-item"> | |
<h1 class="product-title">${product.productVariants[0].title}</h1> | |
<img class="product-image" src="${product.productVariants[0].imageUrl}" alt="${product.productVariants[0].title}"> | |
<p class="product-price">${product.productVariants[0].price}</p> |
View custom-material.module.ts
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
import { NgModule } from '@angular/core'; | |
import { | |
MatButtonModule, | |
MatSnackBarModule, | |
MatCardModule, | |
MatInputModule, | |
MatCheckboxModule, | |
MatIconModule, | |
MatSidenavModule, | |
MatSelectModule, |
NewerOlder