I hereby claim:
- I am jancbeck on github.
- I am jancbeck (https://keybase.io/jancbeck) on keybase.
- I have a public key ASBC8CHbwPT11Jz5cP_InKjVuD8YZTxpWsJGqPTkiBWy6go
To claim this, I am signing this object:
from datetime import datetime | |
from bs4 import BeautifulSoup | |
# Create a BeautifulSoup object with the basic HTML structure | |
html_structure = ''' | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Reading List</title> | |
</head> |
{ | |
"name": "process-log", | |
"version": "1.0.0", | |
"description": "Dynamically search and replace server logs when they change", | |
"main": "gulpfile.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [ | |
"logs" |
# switch to zsh shell | |
# https://manual.uberspace.de/en/basics-shell.html | |
chsh --shell /bin/zsh | |
# install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# remove existing .zshrc | |
rm -rf .zshrc |
git clone --bare [email protected]:jancbeck/dotfiles.git $HOME/.cfg | |
function config { | |
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ | |
} | |
mkdir -p .config-backup | |
config checkout | |
if [ $? = 0 ]; then | |
echo "Checked out config."; | |
else | |
echo "Backing up pre-existing dot files."; |
<?php | |
function wp_job_manager_notify_new_user( $user_id, $password ){ | |
global $wp_version; | |
$wc_emails = WC_Emails::instance(); | |
if ( empty($wc_emails)) { | |
return; | |
} |
<?php | |
add_filter( 'wp_insert_post_data', function( $data, $postarr ){ | |
if ( 'book' == $data['post_type'] && 'auto-draft' == $data['post_status'] ) { | |
$data['post_password'] = wp_generate_password(); | |
} | |
return $data; | |
}, '99', 2 ); |
I hereby claim:
To claim this, I am signing this object:
<?php add_action( 'wp_enqueue_scripts', function() { | |
if ( function_exists( 'is_woocommerce' ) && ! is_woocommerce() && ! is_cart() && ! is_checkout() ) { | |
wp_dequeue_style( 'woocommerce_frontend_styles' ); | |
wp_dequeue_style( 'woocommerce_fancybox_styles' ); | |
wp_dequeue_style( 'woocommerce_chosen_styles' ); | |
wp_dequeue_style( 'woocommerce_prettyPhoto_css' ); | |
wp_dequeue_script( 'wc_price_slider' ); | |
wp_dequeue_script( 'wc-single-product' ); | |
wp_dequeue_script( 'wc-add-to-cart' ); |
/* | |
* Step 1: Execute `buildThemeList` to build the basic list of all themes. | |
* Step 2: Enter your Page Speed Insights API Key | |
* Step 3: Create minutely trigger for `getPageSpeeds`. | |
*/ | |
var apiKey = 'YOUR API KEY'; | |
var deleteOldSheets = true; | |
/* |
<?php | |
namespace Cache\Driver; | |
use Cache\Driver; | |
/** | |
* Redis | |
* | |
* @package Kirby Redis |