Skip to content

Instantly share code, notes, and snippets.

View brunolimame's full-sized avatar

Bruno Lima brunolimame

View GitHub Profile
@brunolimame
brunolimame / creat-update-patch.txt
Last active July 15, 2016 18:46
Create update package between commits
Criar pacote de atualizações entre commits | Create update package between commits
-------------------------------------
Criar um arquivo apenas com a diferença entre os commits. | Create a file with only the difference between commits.
-------------------------------------
Comando para listar as tags e seus commits. | Command to list as tags and commits.
-------------------------------------
git log --no-walk --tags --pretty="%h %d %s" --decorate=short
@brunolimame
brunolimame / cmder-context-menu.md
Last active July 17, 2021 01:03
[Windows] Cmder and Cmder Here in context menu as administrator
  • Download cmder http://cmder.net/
  • Create the Cmder folder on drive C and unzip the file that you downloaded into this folder
  • Save and run the file cmder-context-menu.reg
  • Opening as administrator
    • In Settings -> Startup -> Specified name task -> select {cmd:: Cmder as Admin}

##############

  • Faça o download do cmder: http://cmder.net/
  • Cria a pasta Cmder na unidade C e descompacte o aquivo que baixou nesta pasta
@brunolimame
brunolimame / .htaccess
Created June 21, 2018 17:33 — forked from ludo237/.htaccess
The ultimate .htaccess file. Please feel free to fork it, edit it and let me know what do you think about it.
# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Note .htaccess files are an overhead, this logic should be in your Apache
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html
# Techniques in here adapted from all over, including:
# Kroc Camen: camendesign.com/.htaccess
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
# Sample .htaccess file of CMS MODx: modxcms.com
# This is the free sample of .htaccess from 6GO s.r.l.
# @author Claudio Ludovico Panetta (@Ludo237)
@brunolimame
brunolimame / README-Template.md
Created January 22, 2019 20:01 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@brunolimame
brunolimame / am-i-ready-to-open-source-this.md
Created January 22, 2019 20:02 — forked from PurpleBooth/am-i-ready-to-open-source-this.md
Checklist to see if your open source repo is primetime ready!

Am I ready to Open Source This?

The checklist:

  1. A readme following a good template
  2. A contributing.md with a code of conduct.
  3. A license
  4. Travis configuration
  5. A way for people to raise issues
  6. Link to it
@brunolimame
brunolimame / depois_instalar_kubuntu_18-04.md
Last active July 21, 2019 02:25
Depois de Instalar o Kubuntu 18.04
  • BAIXE AS ATUALIZAÇÃOS VIA DISCOVER
  • COMPACTADORES E DESCOMPACTADORES
sudo apt install unace rar unrar p7zip-full p7zip-rar
  • SUPORTE A EXFAT
@brunolimame
brunolimame / loadGoogleAdsense.js
Created October 9, 2020 19:02
Carregar google adsense via script
var loadBanner = [].map.call(document.getElementsByClassName('adsbygoogle'),function(el){
if(!el.classList.contains("adsbygoogle-noablate")){
(adsbygoogle = window.adsbygoogle || []).push({});
}
});
@brunolimame
brunolimame / block_ip_in_firewall_by_limit_connections.sh
Last active November 3, 2022 15:01
Checks which IPs are connected to the server, blocking it at the firewall when it passes a certain limit
#!/bin/bash
file_ip_list="_list_ips_conected_p80.txt"
file_log_ips="ips_blocked.log"
file_firewall=/etc/firewall/IPDROP_GLOBAL
#CREATE A LIST OF IPS CONNECTED TO PORT 80
netstat -pant | grep :80 | awk '{ print $5}' | cut -d: -f1 | sort | uniq -c | sort -n > ${file_ip_list}
#READ EVERY LINE IN THE LIST
@brunolimame
brunolimame / sitemap-noticia-2018.xml
Created August 14, 2023 18:10
Estrutura para sitemap.xml em vários arquivos
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>http://sitema.local/noticia/4/54645</loc>
<lastmod>2018-07-26T10:07:53-03:00</lastmod>
<priority>0.5</priority>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>http://sitema.local/noticia/3/teste</loc>