$ openssl genrsa -out private.key 4096
openssl req -new -sha256 \
module.exports = (...args) => { | |
if (location.hostname.match("local")) | |
console.log("🦄:", ...args); | |
}; |
<?php | |
return [ | |
'' => '3d_rotation', | |
'' => 'access_alarm', | |
'' => 'access_alarms', | |
'' => 'access_time', | |
'' => 'accessibility', | |
'' => 'account_balance', | |
'' => 'account_balance_wallet', |
<a href="#" onclick="download_table_as_csv('my_id_table_to_export');">Download as CSV</a> |
# Our base image | |
image: registry.gitlab.com/wpquark/docker-containers/php-node:2.0.0-php-7.3-node-12.13.0 | |
# Select what we should cache | |
cache: | |
key: "$CI_COMMIT_REF_SLUG-$CI_JOB_NAME" | |
paths: | |
- .yarn-cache | |
- .composer-cache |
<?php | |
add_action('registered_post_type', 'make_posts_hierarchical', 99, 2); | |
/** | |
* Ensure posts post type is hierarchal and allows page attributes | |
* | |
* Initial Setup - Runs after each post type is registered | |
*/ | |
function make_posts_hierarchical($post_type, $pto) |
1033edge.com | |
11mail.com | |
123.com | |
123box.net | |
123india.com | |
123mail.cl | |
123qwe.co.uk | |
126.com | |
150ml.com | |
15meg4free.com |
// There's some better solutions in the comments, so scroll down and see how other folks have improved this! | |
// USAGE: | |
// abbrState('ny', 'name'); | |
// --> 'New York' | |
// abbrState('New York', 'abbr'); | |
// --> 'NY' | |
function abbrState(input, to){ | |
function getOS() { | |
var userAgent = window.navigator.userAgent, | |
platform = window.navigator.platform, | |
macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'], | |
windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'], | |
iosPlatforms = ['iPhone', 'iPad', 'iPod'], | |
os = null; | |
if (macosPlatforms.indexOf(platform) !== -1) { | |
os = 'macOS'; |
#!/usr/bin/env bash | |
# checks if branch has something pending | |
function parse_git_dirty() { | |
git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo "*" | |
} | |
# gets the current git branch | |
function parse_git_branch() { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1$(parse_git_dirty)/" |