Skip to content

Instantly share code, notes, and snippets.

View HenriqueSilverio's full-sized avatar
🎯
Focusing

Henrique Silvério HenriqueSilverio

🎯
Focusing
View GitHub Profile

A entrevista é um processo de mão dupla: entrevistador e candidato podem fazer perguntas.

Tecnologia

  • Quais linguagens / frameworks utilizam na stack atual?
  • Qual arquitetura do projeto? Ex: Monolítico, Microsserviços...
  • Qual o processo para enviar código do repositório para produção? Ex: CI/CD, Containers...
  • Qual o processo para adotar / testar novas tecnologias? Ex: Autonomia da equipe, Equilíbrio de objetivos

Processos

@gugaalves
gugaalves / custom-login-styles.css
Last active November 14, 2022 12:16
WordPress - Customizing Login, Register and Lost Password pages
/*
*
* This CSS template will customize WordPress.org login pages:
*
* Login page: /wp-login.php
* Register page: /wp-login.php?action=register
* Lost Password page: /wp-login.php?action=lostpassword
*
* @site https://tudoparawp.com.br
* @author Guga Alves
@AJMaxwell
AJMaxwell / nginx.ufw
Created September 20, 2017 19:09
UFW configuration for Nginx on Ubuntu 16.04 (/etc/ufw/applications.d/nginx)
[Nginx HTTP]
title=Web Server (Nginx, HTTP)
description=Small, but very powerful and efficient web server
ports=80/tcp
[Nginx HTTPS]
title=Web Server (Nginx, HTTPS)
description=Small, but very powerful and efficient web server
ports=443/tcp
@miguelmota
miguelmota / remove_tuxera.sh
Last active April 3, 2024 08:41
Completely uninstall and remove Tuxera NTFS on MacOS (resets trial version)
sudo rm -rf /Applications/Tuxera\ Disk\ Manager.app
sudo rm -rf /Library/Application\ Support/Tuxera\ NTFS
sudo rm -rf /Library/Filesystems/fusefs_txantfs.fs
@ziluvatar
ziluvatar / token-generator.js
Last active April 11, 2024 07:10
Example of refreshing tokens with jwt
/**
* Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken
* It was requested to be introduced at as part of the jsonwebtoken library,
* since we feel it does not add too much value but it will add code to mantain
* we won't include it.
*
* I create this gist just to help those who want to auto-refresh JWTs.
*/
const jwt = require('jsonwebtoken');
@verticalgrain
verticalgrain / app.js
Last active April 26, 2022 15:37
React Router V4 Redirect after form submission
import React, { Component } from 'react'
import { Redirect } from 'react-router'
export default class ContactForm extends Component {
constructor () {
super();
this.state = {
fireRedirect: false
}
}
@thierrypigot
thierrypigot / functions.php
Last active February 18, 2018 22:45
Get all entries for WordPress attachments on attachment archive page
<?php
add_filter( 'register_post_type_args', 'tp_change_attachment_post_type_args', 10, 2 );
function tp_change_attachment_post_type_args($args, $post_type){
if( 'attachment' == $post_type ){
$args['has_archive'] = true;
$args['rewrite'] = array( 'slug' => 'media' );
}
return $args;
}
@muhammadghazali
muhammadghazali / What is server_names_hash_bucket_size.md
Last active February 9, 2024 14:13
Nginx: What is server_names_hash_bucket_size?

Background

While I'm learning how to use Nginx, I was instructed to update the server_names_hash_bucket_size (/etc/nginx/nginx.conf) value from 32 to 64, but I don't understand why should I increase the value to 64.

References

References that have been read so far:

@w00fz
w00fz / sphp.sh
Last active February 7, 2022 00:12
PHP switcher
#!/bin/bash
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
fi
# Usage
@Bobz-zg
Bobz-zg / main.js
Last active May 15, 2022 03:52
Filter WordPress posts by custom taxonomy term with AJAX - Javscript
(function($) {
$doc = $(document);
$doc.ready( function() {
/**
* Retrieve posts
*/
function get_posts($params) {