because https://github.com/suarasaur/awesome-npx is outdated
npx speed-test
npx whois www.rafael-santos.com
npx qrip www.rafael-santos.com
/* eslint-disable no-return-assign */ | |
import type { | |
StorageAdapter, | |
SerializedEntries, | |
SerializedRequest, | |
} from "@urql/exchange-graphStorage"; | |
// OR redis? | |
let cache = {}; |
# operation system | |
brew install wget zsh xcv exa ccat lua | |
# xcv = copy/cut/paste tool | |
# exa = better ls | |
# ccat = better cat | |
touch ~/.rafaelrc | |
echo 'source ~/.rafaelrc' >> .zshrc |
#!/usr/bin/env bash | |
# fork from https://gist.github.com/jakemhiller/d342ad51505addf78ec628a16fd3280f | |
changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" | |
} | |
check_run package.json "npm prune && npm install" |
npx speed-test
npx whois www.rafael-santos.com
npx qrip www.rafael-santos.com
Install this VSCode Extension https://marketplace.visualstudio.com/items?itemName=be5invis.vscode-custom-css
Create a CSS in a place like so ~/Users/you/vscode.css
Paste the lines of file below
Go to Settings to change some settings like so:
"editor.fontLigatures": true, "editor.fontFamily": "Operator Mono", "editor.fontSize": 13, "vscode_custom_css.imports": [ "file:///Users/rafael/vscode.css"
// @flow | |
import React, { Component } from 'react' | |
import { BrowserRouter, Route, Switch } from 'react-router-dom' | |
import asyncComponent from './asyncComponent' | |
const MyAwesomePage = asyncComponent(() => import('./MyAwesomePage')) | |
/** | |
* Main Component, displays App Shell UI, setup routes which are dynamically loaded | |
*/ |
// bling.js | |
var $ = window.$ = document.querySelector.bind(document); | |
var $$ = window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = NodeList.prototype.addEventListener = (function(name, fn) { | |
this.forEach(function(elem) { | |
elem.on(name, fn); |
<?php | |
function next_prev_portfolio($post, $current_term){ | |
//echo '<pre>'; | |
$postlist_args = array( | |
'posts_per_page' => -1, | |
//'orderby' => 'menu_order title', | |
//'order' => 'ASC', | |
'post_type' => 'portfolio', | |
'portfolio_category' => $current_term | |
); |
*/15 * * * * sh /home/rafael/projects/deployment/deploy-projects |