Skip to content

Instantly share code, notes, and snippets.

View gtcdevop's full-sized avatar
🎼
Composing Code

Gustavo Cagnim gtcdevop

🎼
Composing Code
View GitHub Profile
@gtcdevop
gtcdevop / promo.json
Created April 3, 2024 17:32
Lista de promocoes
[
{
"id": 36,
"name": "Promoçao 2 vias",
"description": "All you need to get in two ways",
"image": "0c712cc5-6caa-4650-b7f9-9f048fed104c.jpg",
"createdWhen": "2024-04-02T17:07:33.432945",
"quantity": 2,
"numberUsersThatGotIt": 0,
"quantityRemaining": 2,
@gtcdevop
gtcdevop / vscode-settings-typescript.json
Created December 2, 2021 17:43
VsCode settings with breadcrumb and styles for typescript development
"breadcrumbs.showNull": false,
"breadcrumbs.icons": true,
"breadcrumbs.showArrays": false,
"breadcrumbs.showBooleans": false,
"breadcrumbs.showClasses": true,
"breadcrumbs.showConstants": true,
"breadcrumbs.showConstructors": true,
"breadcrumbs.showEnumMembers": true,
"breadcrumbs.showEnums": true,
"breadcrumbs.showEvents": false,
@gtcdevop
gtcdevop / Auto_Download.py
Created October 10, 2021 02:02 — forked from sharana04/Auto_Download.py
python script to auto download list of apps using UIAutomator.
import uiautomator,os,sys,datetime,time
from uiautomator import Device
def app_install():
list1 = ['whatsapp messenger','facebook','uber','teewe','BookMyShow','skype','flipkart','flipboard',
'gaana','9gag','Dailyhunt','ndtv','cricbuzz','mx player','firefox','opera','subway surf','asphalt8','deer hunt','realracing3','clashofclans']
os.system('adb shell am start -n com.android.vending/com.google.android.finsky.activities.MainActivity')
time.sleep(5)
@gtcdevop
gtcdevop / tweets_bonoro.txt
Created September 6, 2021 03:20 — forked from Aureom/tweets_bonoro.txt
Mais de 5 mil Tweets do sincero presidente bolsonaro
Ontem estive no bairro da Penha (Rio-RJ). Agradeço a oportunidade e carinho. https://t.co/OaGIthOaWu
A necessidade de países - mesmo que não ligados ideologicamente - de importar produtos baratos para controlar seus níveis de inflação, desfaz a narrativa de caos criada propositalmente por grande parte da mídia para tentar desestabilizar o governo que não lhe “agrada”.
INSCREVA-SE ou REINSCREVA-SE gratuitamente no canal com apenas um clique. https://t.co/c7nCWDoLRh https://t.co/eqFk5UVqzE
PÁTRIA EDUCADORA: brincadeira de estourar bola na bunda de meninas e livros impróprios; veja: http://t.co/V1i4Dx0tKi http://t.co/Eyb2uM4I9n
@gtcdevop
gtcdevop / geohash1.js
Created May 17, 2021 00:58
Get a Geohash and sub-geohashes for a Location in map
var geohash = require('ngeohash');
var opa = geohash.encode(-20.8191497,-49.3989744, 10);
var pair = [ -20.786449, -49.404946]
var encoded = geohash.encode(pair[0],pair[1]);
encoded;
var decoded = geohash.decode(encoded);
const formatters = {
current: {
count: {
value: 'numeric',
percent: 'percent'
},
sum: {
value: 'currency'
}
}
@gtcdevop
gtcdevop / gitconfig.conf
Created April 26, 2021 01:29
ALIAS gitconfig
[url "git@COMPANY.github.com"]
insteadOf = git@github.com
insteadOf = https://github.com/
[alias]
co = checkout
branchh = !git for-each-ref --sort='-authordate' --format='%(refname)%09%(authordate)' refs/heads | sed -e 's-refs/heads/--'
lg = log --all --graph --decorate --oneline --abbrev-commit
ppush = !git push origin `git branch --show-current`
ppull = !git pull origin `git branch --show-current`
@gtcdevop
gtcdevop / Extract id from vimeo.md
Created April 20, 2021 18:01
Extract id from vimeo
"https://vimeo.com/528989174/14cb949868".match(/(htt.*\.com\/)([a0-z9]*)(\/)?(.*)/).filter(each=> { return each && /^[a0-z9]*$/.test(each) })

["528989174", "14cb949868"]
@gtcdevop
gtcdevop / teste.md
Created May 18, 2020 23:28
Exercise Easy Berlin

Tomar banho

1- Verifique Se Sabao, toalha e roupa separada
2- Tire a roupa
3- TOme banho
4- Se exugue
5- Vista a roupa limpa

@gtcdevop
gtcdevop / nginx.conf
Last active March 21, 2020 00:31
[Nginx] [Angular/Vue/ReactWEB/PWA] Serving STATIC contet with CACHE
server {
# se propriedade for default_server .. todos request que nao tive
listen 80; # IPV4
listen [::]:80; # IPV6
root /var/pwa/www; # caminho do index
index index.html;