Skip to content

Instantly share code, notes, and snippets.

View MarcoGomesr's full-sized avatar
👨‍💻
I'm just Coding

Marco MarcoGomesr

👨‍💻
I'm just Coding
View GitHub Profile
@MarcoGomesr
MarcoGomesr / export.sh
Last active April 9, 2024 18:28
Install apps using homebrew
#!/bin/bash
echo -e '#!/bin/bash\n' > list.sh
echo -e '########### Brew Install List ###########' >> list.sh
brew leaves | sed 's/^/brew install /' >> list.sh &&
echo -e '\n########### Brew Cask Install List ###########' >> list.sh &&
brew cask list | sed 's/^/brew cask install /' >> list.sh &&
echo -e '\n########### Mac App Store Install List ###########' >> list.sh &&
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.slim.min.js" integrity="sha256-/SIrNqv8h6QGKDuNoLGA4iret+kyesCkHGzVUUV0shc=" crossorigin="anonymous"></script>
<script>
(function() {
var $toc = $('#TableOfContents');
if ($toc.length > 0) {
var $window = $(window);
function onScroll(){
var currentScroll = $window.scrollTop();
var h = $('.article-entry h1, .article-entry h2, .article-entry h3, .article-entry h4, .article-entry h5, .article-entry h6');
export PATH=$PATH:/usr/local/bin
export PATH=$PATH:/Users/Marco/.composer/vendor/bin/
export PATH="/usr/local/mysql/bin:$PATH"
export PATH="/usr/local/bin:$PATH"
export GOPATH="/Volumes/Backup/dev/Sites/test/go"
#export PATH=$PATH:/Applications/MAMP/Library/bin
#export PATH=$PATH:/Applications/MAMP/bin/php/php5.5.3/bin
export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH
export EDITOR='subl -w'
#source ~/.profile
@MarcoGomesr
MarcoGomesr / gist:1aeba66c8676a29c10bbe259e317e66f
Last active September 12, 2023 16:33
visual code user settings
{
//explorer
"explorer.openEditors.visible": 0,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
//vim
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
@MarcoGomesr
MarcoGomesr / mailsignature
Last active February 27, 2018 11:19
Mail Signature
Message-Id: <7DB18501-9D87-40A9-8FFB-492D8B7714B7@home>
Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\))
Content-Type: multipart/related;
type="text/html";
boundary="Apple-Mail=_168BD4A7-D7FA-477D-8704-196C26D9ABB1"
--Apple-Mail=_168BD4A7-D7FA-477D-8704-196C26D9ABB1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
@MarcoGomesr
MarcoGomesr / pollyfill.html
Created February 16, 2017 01:23
picture with pollyfill js
<picture>
<!--[if IE 9]><video style="display: none;"><![endif]-->
<source srcset="../images/big_banner.jpg" media="(min-width: 1170px)"> <!-- extralarge -->
<source srcset="../images/big_banner.jpg" media="(min-width: 800px)"> <!-- large -->
<source srcset="../images/big_banner.jpg" media="(min-width: 970)"> <!-- medium -->
<source srcset="../images/big_banner.jpg" media="(min-width: 180px)"> <!-- small -->
<!--[if IE 9]></video><![endif]-->
<img srcset="../images/big_banner.jpg" alt="London film premieres">
</picture>
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=us-ascii
Message-Id: <C1F62F32-C0C7-46A9-BE6B-34DAB8E97BDB>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
<body>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="border-bottom: 1px #999999 dotted;margin:10px;padding-bottom:30px;overflow:hidden">
<img style="float: left; padding: 15px 5px 0 0;" src="http://i.imgur.com/D7LTgij.png" alt=“Marco Gomes” /></body>
@MarcoGomesr
MarcoGomesr / form.html
Created June 18, 2014 15:59
animate validation angularjs
<!DOCTYPE html>
<html ng-app>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Controladores</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
</head>
<body>
@MarcoGomesr
MarcoGomesr / demo.min.js
Created January 30, 2014 20:06
demo STP
$(document).ready(function(){$().socialTrafficPop({timeout:90,title:"Compartir esta pagina",message:"Comparte esta pagina en las redes sociales!",google_url:"http://como-ganar-dinero-con-gatwin.blogspot/",fb_url:"http://como-ganar-dinero-con-gatwin.blogspot/",closeable:!0,advancedClose:!0,google_on:!0,twitter_on:!0,linkedin_on:!0,linkedin_url:"http://como-ganar-dinero-con-gatwin.blogspot/",opacity:"0.45",twitter_method:"tweet",tweet_url:"http://como-ganar-dinero-con-gatwin.blogspot",tweet_text:"Gana dinero sin invertir absolutamente nada con gatwin!",onClick:"stp-open"})});(function(e){e.fn.socialTrafficPop=function(t){var n={title:"Social Traffic Pop",message:"Share Social Traffic Pop with your friends and see what happens!",closeable:!0,advancedClose:!0,opacity:"0.3",onClick:"stp-open",facebook_on:!0,google_on:!0,twitter_on:!0,linkedin_on:!0,google_url:"http://tyler.tc",google_annotation:"bubble",google_size:"medium",fb_url:"http://codecanyon.net/item/social-traffic-pop-for-wordpress/309705",fb_layout:"butt
@MarcoGomesr
MarcoGomesr / get-client-ip
Created November 22, 2013 19:00
get client ip
function get_client_ip() {
$ipaddress = '';
if ($_SERVER['HTTP_CLIENT_IP'])
$ipaddress = $_SERVER['HTTP_CLIENT_IP'];
else if($_SERVER['HTTP_X_FORWARDED_FOR'])
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
else if($_SERVER['HTTP_X_FORWARDED'])
$ipaddress = $_SERVER['HTTP_X_FORWARDED'];
else if($_SERVER['HTTP_FORWARDED_FOR'])
$ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];