Skip to content

Instantly share code, notes, and snippets.

View thesocialdev's full-sized avatar
💭
🖍️ put some colors on

Mateus Santos thesocialdev

💭
🖍️ put some colors on
View GitHub Profile
@thesocialdev
thesocialdev / deployment_charts_grafana_push_notifications.json
Created September 2, 2020 15:22
A grafana dashboard for the Push Notifications service to be used in the local deployment-charts Minikube environment.
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@thesocialdev
thesocialdev / npm_repository_info.sh
Last active October 22, 2018 14:53
This Bash script is a prototype that recursively checks npm dependencies and its info and saves it into a CSV file.
#!/bin/sh
# Set NPM tree depth of search
DEPTH=2
# SET Github Development Token to search for repos in Github
OAUTH_TOKEN=
# SET Header with proper authorization
GITHUB_HEADER="Authorization: token ${OAUTH_TOKEN}"
# Path to CSV generated files
CSV_PATH="/path/to/csv/generated/files"
# API Arteris
gource -1280x720 -o - --highlight-users --hide filenames,dirnames,mouse,bloom --background-image ~/Downloads/fd-soma-arteris3.jpg -s 0.2 /var/www/sig-arteris | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource-api-arteris.mp4
# SIG Arteris
gource -1280x720 -o - --highlight-users --hide filenames,dirnames,mouse,bloom --background-image ~/Downloads/fd-soma-arteris1.jpg -s 0.1 /var/www/sig-arteris | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource-sig-arteris.mp4
# Mobile Arteris
gource -1280x720 -o - --highlight-users --hide filenames,dirnames,mouse,bloom --background-image ~/Downloads/fd-soma-arteris2.jpg -s 0.1 /var/www/sig-arteris | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource-mobile-arteris.mp4
# API CPOS
gource -1280x720 -o - --highlight-users --hide filenames,dirnames,mouse,bloom --background-image fd-soma1280x720.jpg -s 0.1 /var/www/sig-arteris | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4
ffmpeg -i gource-sig.mp4 -i gource-api.mp4 -filter_complex '[0:v]pad=iw*2:ih[int];[int][1:v]overlay=W/2:0[vid]' -c:v libx264 -crf 23 -preset veryfast output.mp4
ffmpeg \
-i gource-sig.mp4 -i gource-sig.mp4 -i gource-api.mp4 \
-filter_complex " \
nullsrc=size=1280x720 [base]; \
[0:v] setpts=PTS-STARTPTS, scale=640x360 [upperleft]; \
[1:v] setpts=PTS-STARTPTS, scale=640x360 [upperright]; \

Landing Notes about the SV portal

First of all, the software improved so much since the previous conferences and I am not the only one who have been saying that, so congratulations for all you have done.

I didn't see the software with failures or bugs, I see there was goals that couldn't be reached due the limited time and short deadlines so I want to contribute with my developer perspective and suggest some directions that the next technical team can take for the next year. I believe most of them you guys already know and I apologize if some feature already exists and I wasn't able to identify it.

What I missed

  • Some sort of dashboard with the main events of the day
  • A notification system that replaces the Facebook Group (Most wanted)
  • Responsiveness or Mobile application
@thesocialdev
thesocialdev / gist:6a76f46591e4436730d52d03b6f89b8f
Last active October 27, 2017 14:26
N-Choose-K problem with recursion
<?php
/*
N-Choose-K problem solved with recursion
I decided to write this code after seeing this video https://www.youtube.com/watch?v=Hmld7MhFUDk
It can be easily executed at http://phpfiddle.org/
*/
function nChooseK ($n, $k, &$count, $_performanceFlag){
@thesocialdev
thesocialdev / i3met_dicionario.json
Last active September 26, 2017 11:25
Sugestão de padrão para envio de JSON para integração i3met e SIG Arteris
# ATUAL
{
"codigo": "ERROR: RODOVIA",
"codigo_antt": "OAE 000 SC 200 00000 NS 1",
"tipo": "Ponte",
"UTM_X": null,
"UTM_Y": null,
"huso": null,
"carretera": "BR101",
"sentido_circ": "Tronco ascendente",