$ diskutil list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( !function_exists( 'jpkcom_getenv' ) ) { | |
if ( file_exists( dirname(__FILE__) . '/.env' ) ) { | |
$lines = file( dirname(__FILE__) . '/.env' ); | |
foreach ( $lines as $line ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Don't include this line | |
/** | |
* Add new font group (Custom) to the top of the list | |
*/ | |
add_filter( 'elementor/fonts/groups', function( $font_groups ) { | |
$new_font_group = array( 'custom' => __( 'Custom' ) ); | |
return array_merge( $new_font_group, $font_groups ); | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_header Content-Security-Policy "upgrade-insecure-requests" always; | |
add_header Feature-Policy "accelerometer 'none'; ambient-light-sensor 'none'; autoplay 'self'; camera 'none'; encrypted-media 'self'; fullscreen 'self'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'self'; midi 'none'; payment 'self'; picture-in-picture 'self'; speaker 'self'; sync-xhr 'self'; usb 'none'; vr 'none'" always; | |
add_header Permissions-Policy "accelerometer=(none), ambient-light-sensor=(none), autoplay=(self), camera=(none), encrypted-media=(self), fullscreen=(self), geolocation=(none), gyroscope=(none), magnetometer=(none), microphone=(self), midi=(none), payment=(self), picture-in-picture=(self), speaker=(self), sync-xhr=(self), usb=(none), vr=(none), interest-cohort=()" always; | |
add_header Referrer-Policy "strict-origin-when-cross-origin" always; | |
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; | |
add_header X-Content-Type-Options "nosniff" always; | |
add_header X-D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Chromium update script | |
# - by shad <shad@zaphod.eu> | |
# - by superbil <help@superbil.info> | |
OS=mac | |
SITE=http://build.chromium.org/buildbot/snapshots/chromium-rel- | |
LATEST=$(wget -q -O - ${SITE}${OS}/LATEST) | |
INSTALL_DIR=/Applications | |
TARGET=Chromium |
I hereby claim:
- I am jpkcom on github.
- I am jpkcom (https://keybase.io/jpkcom) on keybase.
- I have a public key ASBD3ijZFv23dYO0feXCbba9azKXpEJWAaXK2PfiiiJv9Ao
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: dima | |
* Date: 11/12/16 | |
* Time: 11:58 AM | |
*/ | |
namespace Drupal\bootstrap_sass_helper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woocommerce_billing_fields', 'custom_woocommerce_billing_fields'); | |
function custom_woocommerce_billing_fields( $fields ) { | |
$fields['billing_address_1']['class'] = array( 'form-group' ); | |
$fields['billing_address_1']['input_class'] = array( 'form-control' ); | |
return $fields; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add correct content-type for fonts | |
AddType application/vnd.ms-fontobject .eot | |
AddType font/ttf .ttf | |
AddType font/otf .otf | |
AddType font/x-woff .woff | |
AddType image/svg+xml .svg | |
# Compress compressible fonts | |
AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml |
NewerOlder