Skip to content

Instantly share code, notes, and snippets.

@qoomon
qoomon / conventional_commit_messages.md
Last active April 19, 2024 12:02
Conventional Commit Messages

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

@kenny-kvibe
kenny-kvibe / figlet_install_fonts.sh
Last active April 19, 2024 12:01
Install "figlet" & download figlet fonts
#!/bin/bash
########
#
# Install "figlet" package
# & Download figlet fonts
# (running as root)
#
# + Github Repositories:
#--> https://github.com/xero/figlet-fonts
#--> https://github.com/phracker/figlet-fonts
@sundowndev
sundowndev / GoogleDorking.md
Last active April 19, 2024 11:58
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@abelcallejo
abelcallejo / README.md
Last active April 19, 2024 12:01
Create bootable Linux USB using Mac

Creating bootable Linux USB using Mac

mac

CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.

1. Prepare the .iso file

Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file

2. Convert the .iso file into a .img.dmg

@echo off
echo ==========================================================
echo Version 1.0
echo 04/19/24
echo ==========================================================
REM Coreinfo URL
set "CoreinfoURL=https://download.sysinternals.com/files/Coreinfo.zip"
@nchaigne
nchaigne / build-gcc-7.3.0-on-rhel7.md
Last active April 19, 2024 11:54
Building GCC 7.3.0 on Red Hat Enterprise Linux 7

Building GCC 7.3.0 on Red Hat Enterprise Linux 7

Introduction

Red Hat Enterprise Linux (RHEL) distribution ships with a somewhat outdated version of the GCC compiler (4.8.3 on RHEL 7.1), which may not be suitable to your compilation requirements. For example, C11 - which supersedes C99 - is fully supported only starting from GCC 4.9).

Additionally, recent versions of GCC (GCC6, GCC7) come with improvements which help detect issues at build time and offer suggestions on how to fix them. Sometimes, these are even actually helpful!

This note describes how to build the latest GCC (7.3 as of January 2018) from sources on RHEL 7. This should be applicable as is on CentOS 7. For other Linux distributions, adapt as needed.

@stephanGarland
stephanGarland / calc_innodb_buf_pool.py
Last active April 19, 2024 11:53
Designed for use with Ansible, but works on its own as well – calculate the tricky parts of InnoDB's buffer pool
#!/usr/bin/env python3
"""
Calculates various parameters for the InnoDB buffer pool based on a simple input.
The InnoDB engine is extremely strict about how its buffer pool can be sized.
Ref: https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_buffer_pool_chunk_size
Other than size restrictions (which are unlikely to be violated in normal practice), there are
complicated relationships between the three main variables that must be met, plus some
best practices to be observed. Getting these three correct can be challenging, hence this calculator.
@tkrisztian95
tkrisztian95 / default.conf
Last active April 19, 2024 11:52
Nginx server JSON file as an API response
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www;
location /api/endpoint {
default_type application/json;
index apiResponse.json;
alias /var/www/;
}
@stevenswafford
stevenswafford / google-dorks
Created June 6, 2015 05:57
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@letanure
letanure / estados-cidades.json
Last active April 19, 2024 11:51
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",