Skip to content

Instantly share code, notes, and snippets.

View nielsonsantana's full-sized avatar

Nielson Santana nielsonsantana

View GitHub Profile
@nielsonsantana
nielsonsantana / docker-compose.yml
Created October 20, 2017 21:57
Docker Compose with dependences for tsuru pas
version: '2'
services:
planb:
container_name: tsuru_planb
image: "tsuru/planb"
network_mode: "host"
entrypoint: /bin/planb --listen :80
depends_on:
- redis
@nielsonsantana
nielsonsantana / dropbox
Last active April 2, 2018 03:37 — forked from benhedrington/dropbox
Dropbox init.d
#!/bin/sh
# dropbox service
# Replace with linux users you want to run Dropbox clients for
DROPBOX_USERS="user1 user2"
DAEMON=.dropbox-dist/dropboxd
start() {
echo "Starting dropbox..."
for dbuser in $DROPBOX_USERS; do
@nielsonsantana
nielsonsantana / bench.py
Created April 2, 2020 12:13
Benchmark of a recursive function that prevent data breach
import statistics
import collections
from timeit import default_timer as timer
from bench_data import DEFAULT_KEYS_TO_CLEAN
from bench_data import large_payload
from bench_data import small_payload
from bench_data import very_large_payload
@nielsonsantana
nielsonsantana / ath10k_pci - QCA6174.md
Last active August 26, 2020 19:51
[Solved] Ath10k and QCA6174 causing firmware crashes and connection lost

Problem

Ubuntu(kernel 5.x) presents the fallowing error using dmesg -w:

[103916.261609] ath10k_pci 0000:02:00.0: firmware crashed! (guid bf84d993-9ec2-4eb5-82db-2055687625cc)
[103916.261619] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1028:0310
[103916.261623] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[103916.262515] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.4.4.1-00079-QCARMSWPZ-1 api 6 features wowlan,ignore-otp crc32 fd869beb
[103916.263208] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 4ac0889b
[103916.263212] ath10k_pci 0000:02:00.0: htt-ver 3.47 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1

[103916.275666] ath10k_pci 0000:02:00.0: failed to get memcpy hi address for firmware address 4: -16

@nielsonsantana
nielsonsantana / gitprunelocalbranchs.sh
Last active June 27, 2021 14:40
Bash script to delete local git branches that aren't on git remote server
# Nielson Santana @nielsonsantana
# This code is under Criative Communs license [https://creativecommons.org/licenses/by/4.0/]
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@nielsonsantana
nielsonsantana / lista-de-cursos-javascript.md
Last active May 14, 2024 18:31
Lista de cursos de programação para desenvolvimento web com javascript

Observaçõs iniciais

Além de aprender a programar com a linguagem desejada/plataforma desjeada, é fortemente recomendado se qualifique no idioma inglês. Em termos de oportunidade de trabalho, ter uma boa comunicação no inglês é tão importante quanto saber programar bem. Além disso, a maior parte do conteúdo de boa qualidade é escrita neste idioma.

Para acelerar seu aprendizado, não estude apenas, estude e tente praticar o máximo fazendo exercícios e projetos.

Algoritmos, lógica e estrutura de dados