Skip to content

Instantly share code, notes, and snippets.

View massayoshi's full-sized avatar
👹

Flávio M. Oota massayoshi

👹
View GitHub Profile
@massayoshi
massayoshi / docker-compose.yml
Last active January 26, 2021 17:05
nginx config for when you are already running it by itself and also need to run a docker container. by doing this you are removing the 8080 port requirement.
version: '2'
services:
mariadb:
image: 'docker.io/bitnami/mariadb:10.3-debian-10'
volumes:
- 'mariadb_data:/bitnami/mariadb'
- ./db-dump.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- MARIADB_USER=bn_wordpress
- MARIADB_DATABASE=bitnami_wordpress
@colemickens
colemickens / amiibo-emulation-with-linux-vm.md
Last active June 27, 2024 12:20
amiibo-emulation-with-linux-vm.md

Easy Amiibo Emulation - https://bit.ly/2z0m09k

(^ that's a short-link to this page, so you can open it in Linux)

Some users are discussing this guide in #hacking on the JoyConDroid Discord: https://discord.gg/SQNEx9v.

DO NOT ask for, or share links to, Amiibo bins in the comments! They will be removed. Thank you for understanding.

(Windows|Linux PC) + JoyControl + Bluetooth = AMIIBO EMULATION

@rishavpandey43
rishavpandey43 / git-commit-styleguide.md
Last active July 5, 2024 10:11
This gist consist of the rules and best practice of good conventional git commit message

Git Commit Messages Style-Guides

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
  • Limit the first line to 72 characters or less
  • Reference issues and pull requests liberally after the first line
  • When only changing documentation, include [ci skip] in the commit title
  • Consider starting the commit message with an applicable emoji

Types

@2shrestha22
2shrestha22 / cloudflare-worker-edge-cache.js
Last active June 29, 2024 12:16
Cloudflare workers script to enable edge-cache. Use Official cloudflare wordpress pulgin for auto cache purge management
// Stop CF edge from caching your site when specific wordpress cookies are present
// script found in https://www.mmaton.com/2018/07/02/cloudflare-cache-anonymous-requests/
addEventListener('fetch', event => {
event.respondWith(noCacheOnCookie(event.request))
})
async function noCacheOnCookie(request) {
// Determine which group this request is in.
const cookie = request.headers.get('Cookie')
@finagin
finagin / socks5.sh
Last active September 29, 2021 12:23
#!/usr/bin/env bash
SUDO=''
if [ "$(id -u)" != "0" ]; then
SUDO='sudo'
echo "This script requires superuser access."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
fi
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active July 6, 2024 07:30
Conventional Commits Cheatsheet

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@gbot
gbot / wp_offload_media_db_migrate.json
Last active March 20, 2023 20:24
Migrate a WordPress database so that existing media items are served from Amazon S3 or CloudFront. Requires the WP Offload S3 Lite plugin.
{
"use_https": "",
"purge_amazonS3_info": ""
}
@nihil84
nihil84 / octgn-on-mac.md
Last active October 7, 2018 22:00 — forked from samuellinde/octgn-on-mac.md
Install OCTGN on a Mac and get it running via Wine

Updated for OCTGN 3.2.75.0

tested on macOS El Capitan 10.11.6

Original version here https://gist.github.com/samuellinde

Disclosure: These instructions are provided as-is. I don't take any responsibility for things that might go wrong (though the worst thing that could happen should be that OCTGN just won't run). I don't have time to support you if things don't work, unfortunately. But hopefully you'll get OCTGN running without needing to use a virtual machine like Parallels or VirtualBox.

Statements like these are commands to be run in the terminal. You should be fine just copying and pasting, just don't miss any characters.

@callmeloureiro
callmeloureiro / comoNaoDeixarNoVaucoNoWhatsapp.js
Last active June 5, 2021 13:29
Como não deixar no vácuo no whatsapp
/*
Hoje não deixaremos mais ninguém no vácuo no whatsapp
Para utilizar:
- Abra o web.whatsapp.com;
- Abra o console e cole o código que está no gist;
- Aguarde e verá uma mensagem sendo enviada a cada momento que alguém te enviar alguma mensagem.
Confira também como ser chato no whatsapp: https://gist.github.com/mathloureiro/4c74d60f051ed59650cc76d1da0d32da
e como ser chato no mensseger: https://gist.github.com/mathloureiro/d3f91d19cf148838217e42a0c6df5ed8
*/
OBR.Xg = OBR.Xg || function() {
var c = {},
a = {},
d = !0,
e = OBR;
a.Rh = 1.8;
a.Tb = "ob-readmore-collapse";
a.Z = {
Th: {
ID: 2050,