Skip to content

Instantly share code, notes, and snippets.

View ibrunotome's full-sized avatar
👨‍💻
Up and running...

Bruno Tomé ibrunotome

👨‍💻
Up and running...
View GitHub Profile
@vinicius73
vinicius73 / 0-contribua-.md
Last active February 9, 2024 10:10
Guia de referencias sobre estudo de JavaScript

Contribua

Se você quiser adicionar mais algum tópico deixe seu comentário, o objetico é facilitar para os iniciantes ou aqueles que buscam dominar JavaScript, quais tópicos são importantes para dominar JavaScript.

São tópicos para quem sabe o minimo de JavaScript (declarar variáveis), a ordem em que eles aparecem são por importância para o dominio como um todo. Mesmo que você já tenha experiência com JS, recomendo que leia os links de cada tópico para fortalecer suas bases teóricas e ter um comportamento mais profundo da linguagem.

Lista originalmente criada e compilada por Vinicius Reis

@zabaala
zabaala / DescTableCommand.php
Last active June 18, 2018 23:36
A desc table command for artisans
<?php
namespace App\Commands;
use Illuminate\Console\Command;
class DescTableCommand extends Command
{
/**
* The name and signature of the console command.
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 28, 2024 22:00
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@datacustodian
datacustodian / Nextcloud_on_Google_Cloud_Platform.md
Last active March 6, 2024 11:28
Nextcloud on Google Cloud Platform

Nextcloud on Google Cloud Platform

This documentation describes configuration and deployment steps for Nextcloud on Google Cloud Platform (GCP).

Adapted for Google Cloud Computing (GCP) based on blog post by Carsten Rieger:

https://www.c-rieger.de/nextcloud-installation-guide/

Carsten Rieger updated new instructions that can be adapted for cloud instances.

@mozillazg
mozillazg / supervisord.service
Last active December 1, 2023 12:59 — forked from tonyseek/supervisord.service
install and configure supervisord on centos 7.
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf
ExecReload=/bin/supervisorctl reload
ExecStop=/bin/supervisorctl shutdown
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active November 12, 2023 23:00
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@ruckuus
ruckuus / PHP Redis Client Test [Predis vs phpredis]
Last active February 13, 2019 13:22
PHP Redis Client Test [Predis vs phpredis]
php redisTest.php
Keyword: free+book, score:736764
Keyword: pretty+picture, score:117600
Keyword: best+seller, score:411600
Keyword: stuff, score:2998800
Keyword: bedok, score:29400
Keyword: best+seller+free+book, score:176400
Keyword: best+seller, score:411600
Keyword: best+seller, score:411600
Keyword: free+book, score:736764
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 28, 2024 07:00
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@denji
denji / nginx-tuning.md
Last active May 28, 2024 19:06
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@marcgg
marcgg / gist:733592
Created December 8, 2010 17:26
Regex to get the Facebook Page ID from a given URL
# Matches patterns such as:
# https://www.facebook.com/my_page_id => my_page_id
# http://www.facebook.com/my_page_id => my_page_id
# http://www.facebook.com/#!/my_page_id => my_page_id
# http://www.facebook.com/pages/Paris-France/Vanity-Url/123456?v=app_555 => 123456
# http://www.facebook.com/pages/Vanity-Url/45678 => 45678
# http://www.facebook.com/#!/page_with_1_number => page_with_1_number
# http://www.facebook.com/bounce_page#!/pages/Vanity-Url/45678 => 45678
# http://www.facebook.com/bounce_page#!/my_page_id?v=app_166292090072334 => my_page_id
# http://www.facebook.com/my.page.is.great => my.page.is.great