Skip to content

Instantly share code, notes, and snippets.

View wellington1993's full-sized avatar
🏠
Working from home

Wellington Torrejais da Silva wellington1993

🏠
Working from home
View GitHub Profile
@eksiscloud
eksiscloud / example.com.conf
Created February 6, 2020 12:34
Tighter Wordpress at Nginx and with Fail2ban
## in the server block
#
# note: if you have posts with title matching these, turn them off or fine-tune
# them to exclude those
## Block SQL injections
location ~* union.*select.*\( {
access_log /var/log/nginx/blocked.log blocked;
deny all;
}
@wellington1993
wellington1993 / PHP-exemplo-busca-CSRF-Token-Rails-usando-meta-tags.php
Last active April 26, 2024 21:40
PHP, exemplo busca de CSRF Token do Rails, usando meta tags
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
# phpinfo();
$url = 'https://lablaudo.com.br/home';
$tags = get_meta_tags($url);
# print_r($tags);
@surma
surma / .gitignore
Last active June 17, 2022 18:53
Moving a Three.JS-based WebXR app to a worker
node_modules
build
package-lock.json
@naesean
naesean / jsonapi_oas.yml
Last active May 9, 2025 06:06
OpenAPI 3.0 schemas that comply with the JSON:API 1.0 specification
JSONAPIObject:
description: Includes the current JSON:API version for this specification as well as optional meta information
type: object
required:
- version
properties:
version:
type: string
default: '1.0'
example: '1.0'
@keimlink
keimlink / nvm_vs_volta.md
Last active June 3, 2024 09:57
nvm vs Volta

nvm vs Volta

A comparison of nvm and Volta to manage Node.js projects (without Yarn).

Bootstrapping a Project

Bootstrapping a Project with nvm

nvm install
@gvoze32
gvoze32 / ffmpeg GIF to MP4.MD
Last active March 18, 2025 15:44
Convert animated GIF to MP4 using ffmpeg in terminal.

To convert animation GIF to MP4 by ffmpeg, use the following command

ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4

Description

movflags – This option optimizes the structure of the MP4 file so the browser can load it as quickly as possible.

pix_fmt – MP4 videos store pixels in different formats. We include this option to specify a specific format which has maximum compatibility across all browsers.

@dhonx
dhonx / update_branch_list_from_remote.sh
Created November 8, 2019 07:08
Git: Update Branch List from Remote
# Source: https://stackoverflow.com/questions/36358265/when-does-git-refresh-the-list-of-remote-branches
# To update the local list of remote branches:
git remote update origin --prune
@simply-alliv
simply-alliv / settings.json
Created October 18, 2019 20:58
Standard settings of Prettier and ESLint for VSCode. Ember App configuration.
{
"files.eol": "\n",
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"[typescript]": {
"editor.formatOnSave": false
},
"eslint.autoFixOnSave": true,
@simply-alliv
simply-alliv / .prettierrc.js
Created October 18, 2019 20:43
Prettier configuration file that enforces the use of single quotes
/* eslint-disable no-undef */
module.exports = {
singleQuote: true
};
@simply-alliv
simply-alliv / .prettierignore
Created October 18, 2019 20:04
Standard Prettier ignore file for an Ember Octane App
# See https://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist/
/tmp/
# dependencies
/bower_components/
/node_modules/