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
@nathanborror
nathanborror / index.js
Last active November 27, 2018 21:01
Slack webhook Cloud Functions for Google Cloud Container Builder
const IncomingWebhook = require("@slack/client").IncomingWebhook
const SLACK_WEBHOOK_URL = "SLACK_WEBHOOK_URL"
const webhook = new IncomingWebhook(SLACK_WEBHOOK_URL)
// subscribe is the main function called by Cloud Functions.
module.exports.slackSubscribe = (event, callback) => {
const build = eventToBuild(event.data.data)
// Skip if the current status is not in the status list.
@vinicius73
vinicius73 / 0-contribua-.md
Last active August 23, 2025 16:32
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 September 30, 2026 15:46
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 August 26, 2026 18:01
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 March 16, 2025 07:43 — 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 March 31, 2026 18:26
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 August 31, 2026 22:25
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 September 28, 2026 20:38
NGINX tuning for best performance

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.