Skip to content

Instantly share code, notes, and snippets.

View magnobiet's full-sized avatar
🏠

Magno F. B. Biét magnobiet

🏠
View GitHub Profile
@magnobiet
magnobiet / jquery.autofocus.js
Last active August 29, 2015 13:56
jQuery Auto Focus Polyfill
/*!
* jQuery Auto Focus Polyfill v0.1.0
* https://gist.github.com/magnobiet/8933752/edit
*
* Made by Magno Biét
* Under MIT License
*/
;(function($, window, document, undefined) {
/*!
*
* jQuery Custom Select v0.1.4
*
* Made by Magno Biét
* Under MIT License
*
*/
;(function($, window, document, undefined) {
/*! https://bitbucket.org/magnobiet/socialize.js */
function _socialize() {
$(window).on('scroll', function() {
if ($(window).scrollTop() >= $('#social').position().top - 100) {
SOCIALIZE.get.twitter();
SOCIALIZE.get.facebook();
@magnobiet
magnobiet / GIT.md
Last active October 31, 2016 13:22

GIT

ssh-keygen -t rsa -b 4096                   # Generating a new SSH key
git checkout --ours                         # Resolv conflict using mine
git checkout --theirs                       # Resolv conflict using theirs
-- PostgreSQL
SELECT
datname,
usename,
query,
waiting,
state,
backend_start,
xact_start,
query_start,
@magnobiet
magnobiet / maintenance.html
Last active February 26, 2018 02:52
Site Maintenance (https://git.io/viYjG)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 20px; font: 20px Helvetica, sans-serif; color: #333; }
@media (min-width: 768px){
body{ padding-top: 150px; }
@magnobiet
magnobiet / cookieconsent2.html
Created September 14, 2016 18:40
Cookie Consent
<script>
window.cookieconsent_options = {
message: 'Com o objetivo de fornecer um serviço mais personalizado e ágil, armazenamos informações sobre como você usa este site. Esse processo é realizado por meio de pequenos arquivos de textos chamados cookies. Eles contêm pequenas quantidades de informação e são baixados para o seu computador ou outro dispositivo por um servidor deste site. O seu navegador, em seguida, envia esses cookies de volta a cada nova visita. Desta forma, podemos reconhecer e lembrar de suas preferências. Você pode encontrar informações mais detalhadas sobre cookies e como funcionam em:',
dismiss: 'Aceitar e fechar',
learnMore: 'aboutcookies.org',
link: 'http://www.aboutcookies.org/',
theme: 'dark-bottom'
};
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.10/cookieconsent.min.js"></script>
@magnobiet
magnobiet / DNS.md
Last active April 1, 2018 18:01
Public DNS (Domain Name System)