Skip to content

Instantly share code, notes, and snippets.

View wertyoo's full-sized avatar

Nicolas Copia wertyoo

View GitHub Profile
@wertyoo
wertyoo / markdown-cheat-sheet.md
Last active January 21, 2019 23:16
MD Cheat Sheet

MARKDOWN CHEAT SHEET

Making Eggs Benedict: A Primer

Second Level Header 1.1: Preparation

Paragraphs

@wertyoo
wertyoo / npm_local.txt
Created August 6, 2018 07:10
NPM - How to target locally installed bin
The problem with putting
./node_modules/.bin
into your PATH is that it only works when your current working directory is the root of your project directory structure (i.e. the location of node_modules)
Independent of what your working directory is, you can get the path of locally installed binaries with
npm bin
To execute a locally installed coffee binary independent of where you are in the project directory hierarchy you can use this bash construct
@wertyoo
wertyoo / 01.bash_shortcuts_v2.md
Last active June 14, 2019 18:18 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Commands

File Management

Delete folder and all contents with no prompts

rm -rf mydir
@wertyoo
wertyoo / robots.txt
Created August 5, 2018 18:15
Robots Example
User-agent: *
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /comments/feed/
Disallow: /category/
Disallow: /author/
Disallow: /wp-json/
Disallow: /xmlrpc.php
@wertyoo
wertyoo / .htaccess
Created August 5, 2018 18:06
ht access example
# Reset by DesktopServer
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
@wertyoo
wertyoo / clearfy.json
Last active August 5, 2018 17:33
Sample Clearfy Setting
{
"wbcr_clearfy_attachment_pages_redirect": "1",
"wbcr_clearfy_auto_tran_update": "0",
"wbcr_clearfy_change_login_errors": "1",
"wbcr_clearfy_comment_text_convert_links_pseudo": "0",
"wbcr_clearfy_content_image_auto_alt": "1",
"wbcr_clearfy_custom_symbols_pack": "",
"wbcr_clearfy_disable_admin_bar": "enable",
"wbcr_clearfy_disable_admin_bar_logo": "1",
"wbcr_clearfy_disable_assets_manager": "0",
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://code.jquery.com/jquery-3.0.0.js"></script>
</head>
<body>
<p>helo</p>
@wertyoo
wertyoo / AnypointOceanicPlus.css
Last active November 28, 2018 20:28
Anypoint Platform - Dark Mode Theme for Design Center - Based on Oceanic Plus theme
/*
Anypoint Design Center Dark Mode
---------------------------------
Based on Oceanic Plus Dark Theme
Image Example: https://i.imgur.com/ea05E06.jpg
Author: Nicolas Copia - [email protected]
Share link: http://bit.ly/2KGHZDH
How to use:
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@wertyoo
wertyoo / pokerNotes.md
Last active April 3, 2018 04:17
My notes on improving at poker

Poker Notes:

RS - DS - SS - SSS

1500 chips = regular (RS) tournaments 3000 chips = deepstack (DS) tournaments 5000 chips = superstack (SS) tournaments 10k chips = super superstack (SSS) tourneys