Skip to content

Instantly share code, notes, and snippets.

View Felipe-Marques's full-sized avatar
👨‍💻
Focusing 💻

Felipe Marques Felipe-Marques

👨‍💻
Focusing 💻
  • Rio de Janeiro
View GitHub Profile
@mojaray2k
mojaray2k / Bootstrap 1
Created March 6, 2013 06:15
This is a fallback Script for Bootstrap CDN
//bootstrapfallback.js
//<!-- BOOTSTRAP JS WITH LOCAL FALLBACK-->
//<script type="text/javascript" src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script>
//<script> if(typeof($.fn.modal) === 'undefined') {document.write('<script src="//www.mysite.com/js/v/bootstrap-2.1.1.js"><\/script>')}</script>
//<!-- BOOTSTRAP CDN FALLBACK CSS-->
//<script>$(document).ready(function() {
var bodyColor = $('body').css("color"); if(bodyColor != 'rgb(51, 51, 51)') {$("head").prepend("<link rel='stylesheet' href='//www.mysite.com/css/fw/bootstrap-combined-2.1.1.css' type='text/css' media='screen'>");}
@rxaviers
rxaviers / gist:7360908
Last active May 31, 2024 14:32
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@callumacrae
callumacrae / build-tools.md
Last active October 25, 2023 15:14
Build tools written in JavaScript
@leocomelli
leocomelli / git.md
Last active June 1, 2024 01:10
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@tuxfight3r
tuxfight3r / tcp_flags.txt
Last active May 22, 2024 02:24
tcpdump - reading tcp flags
##TCP FLAGS##
Unskilled Attackers Pester Real Security Folks
==============================================
TCPDUMP FLAGS
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere)
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere)
Pester = PSH = [P] (Push Data)
Real = RST = [R] (Reset Connection)
Security = SYN = [S] (Start Connection)
@douglasjunior
douglasjunior / exemploJson.php
Last active August 20, 2022 17:23
Exemplo de consulta no banco de dados e retorno de JSON utilizando PHP e MySQL.
<?php
header('Content-Type: application/json');
header('Character-Encoding: utf-8');
// recebe os parâmetros
$QTD = (int) filter_input(INPUT_GET, 'qtd', FILTER_VALIDATE_INT);
$LAT = (float) filter_input(INPUT_GET, 'lat', FILTER_VALIDATE_FLOAT);
$LNG = (float) filter_input(INPUT_GET, 'lng', FILTER_VALIDATE_FLOAT);
if ($LAT && $LNG) {
@mic159
mic159 / scan.py
Created December 27, 2016 14:33
SYN scan in python
#!/usr/bin/env python
"""
Do a syn scan over a host.
To run as non-root:
> sudo setcap cap_net_raw=ep /home/michaelc/.virtualenvs/tmp/bin/python2
Sources:
- http://www.secdev.org/projects/scapy/doc/usage.html
- https://securitylair.wordpress.com/2014/02/21/simple-port-scanner-in-python-with-scapy-2/
@YurePereira
YurePereira / include_file_with_relative_path.php
Last active February 7, 2020 21:38
Pegando o caminho relativo à esse arquivo.
<?php
//Pegando o caminho relativo à esse arquivo.
$path = 'components/';
$file = $path . 'header.php';
include($file);
@abinavseelan
abinavseelan / ToNumber.md
Created September 2, 2017 07:05
Medium - The Curious Case of Null >= 0 - ToNumber Conversion
Input Type Result
Undefined NaN
Null +0
Number No Conversion
Boolean The result is 1 if the argument is true. The result is +0 if the argument is false.
... ...
@YurePereira
YurePereira / password_hash_change_salt.php
Created January 28, 2018 06:15
Criando um salt personalizado ao usarmos a função password_hash.
<?php
$options = [
'cost' => 13,
'salt' => 'FPNk5qN6b6WIiLnUrp',
];
echo password_hash('MyPassword', PASSWORD_BCRYPT, $options);