ssh -fNL 3306:localhost:3306 vagrant@192.168.33.10
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
initial |
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
node-sass -w main.scss main.css --output-style compressed | |
node-sass -w scss/ -o css/ --output-style compressed |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\.bmp] | |
@="PhotoViewer.FileAssoc.Tiff" | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\.gif] | |
@="PhotoViewer.FileAssoc.Tiff" | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\.ico] |
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
@function encode-uri($uri) { | |
$enc: str-replace($uri, '"', "'"); | |
$enc: str-replace($enc, '<', '%3C'); | |
$enc: str-replace($enc, '>', '%3E'); | |
$enc: str-replace($enc, '&', '%26'); | |
$enc: str-replace($enc, '#', '%23'); | |
@return $enc; | |
} |
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
// Easy immediately invoked function expression (IIFE) to find the current scrollbar width in browser | |
// Returns a number of scrollbar width in pixels | |
const scrollBarWidth = (() => { | |
const a = document.createElement('div'); | |
document.body.appendChild(a).style.overflowY = 'scroll'; | |
const w = a.offsetWidth - a.clientWidth; | |
a.remove(); | |
return w; | |
})(); |
Check if device is connected and running
./adb devices
Pull files from device to directory
./adb pull "/sdcard/<filename or dir>" "<destination dir>"
Push files to device
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
# See https://h2o.examp1e.net/install.html for more info. | |
# Update apt-get library | |
sudo apt-get update | |
# Install cmake | |
sudo apt-get install cmake | |
# Install build tools (CXX compiler) | |
sudo apt-get install build-essential |
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
-- SELECT | |
WITH recursive custom_cte AS | |
( SELECT | |
* | |
FROM | |
target_table | |
WHERE | |
target_table.id = "value" | |
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 | |
/** | |
* Add oEmbed support to ACF WYSIWYG fields. | |
* | |
* Fixes issue with WP-native oEmbeds not working in ACF WYSIWYG fields because | |
* these fields are saved in the database without post IDs. WP's oEmbed works out | |
* of the box only with direct post content. | |
*/ |