Skip to content

Instantly share code, notes, and snippets.

View jorgecortesdev's full-sized avatar
:octocat:

Jorge Cortés jorgecortesdev

:octocat:
View GitHub Profile
cat rss.rss | grep -o 'url="[^"]*' | grep -o '^[^?]*' | grep -o 'https[^"]*' | xargs wget -c
@jorgecortesdev
jorgecortesdev / node.md
Created March 25, 2023 02:16 — forked from dzt/node.md
Node.js Reference/Cheatsheet

Node.js Cheat Sheet

Setting up Passport.js (REST API w/token auth) Example

  • app.js
  var express = require('express'),
    app = express(),
    port = process.env.PORT || 3000,
    mongoose = require('mongoose'),
@jorgecortesdev
jorgecortesdev / Sync gh-pages + master branches
Created September 1, 2021 03:40 — forked from mandiwise/Sync gh-pages + master branches
Keep gh-pages up to date with a master branch
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master
$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes
@jorgecortesdev
jorgecortesdev / gist:4805a76252b24d6db2e324ee659b2f18
Created April 7, 2021 15:01 — forked from rxaviers/gist:7360908
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:
@jorgecortesdev
jorgecortesdev / gist:18658cf8902545c58e43cafa201cd0a0
Last active May 1, 2020 15:32 — forked from samueljseay/gist:7779276
Color highlight and copy code for presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@jorgecortesdev
jorgecortesdev / gist:24e3769590410988ec93
Created January 5, 2016 23:17
HTML: Bootstrap basic template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
@jorgecortesdev
jorgecortesdev / cake-logs
Last active January 5, 2016 23:08
Bash: Grep for cake-logs
#!/bin/bash
#
# Usage:
# cake-logs -s "GET" -e [prd|stg]
ENVIRONMENT="prd"
while [[ $# > 1 ]]; do
PARAM="$1"
shift
@jorgecortesdev
jorgecortesdev / search-crons
Last active January 5, 2016 23:07
Bash: Search for cronjob specs
#!/bin/bash
#
# Usage:
# search-crons -s "similar" -e [prd|stg]
ENVIRONMENT="prd"
while [[ $# > 1 ]]; do
PARAM="$1"
shift
@jorgecortesdev
jorgecortesdev / error-logs
Last active January 5, 2016 23:06
Bash: Grep error logs in several directories with colors
#!/bin/bash
#
# Usage:
# error-logs -s "GET" -e [prd|stg]
ENVIRONMENT="prd"
while [[ $# > 1 ]]; do
PARAM="$1"
shift