This file contains hidden or 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_action( 'wp_footer', function () { ?> | |
<script> | |
document.addEventListener("DOMContentLoaded", function () { | |
// remove subdomain of current site's url and setup regex | |
var internal = location.host.replace("www.", ""); | |
internal = new RegExp(internal, "i"); | |
var a = document.getElementsByTagName("a"); // then, grab every link on the page | |
for (var i = 0; i < a.length; i++) { | |
var href = a[i].host; // set the host of each link |
This file contains hidden or 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_action( 'wp_enqueue_scripts', 'kale_child_enqueue_styles' ); | |
function kale_child_enqueue_styles() { | |
$parent_style = 'kale-style'; | |
$deps = array('bootstrap', 'bootstrap-select', 'font-awesome', 'owl-carousel'); | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' , $deps); | |
wp_enqueue_style( 'kale-style-child', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); | |
} |
This file contains hidden or 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
#!/usr/bin/env sh | |
#You may need to enable the Universe Repository | |
# Last updated 2019-07-17 11:47:49 | |
echo "******************************************************************" | |
echo "Tools for Ubuntu WSL" | |
echo "******************************************************************" | |
echo "Adding Git PPA" | |
echo "******************************************************************" | |
sudo add-apt-repository -y ppa:git-core/ppa | |
echo "******************************************************************" |
This file contains hidden or 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
@echo off | |
SET st2Path=C:\Program Files (x86)\Brackets\Brackets.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets" /t REG_SZ /v "" /d "Open with Brackets" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Brackets" /t REG_SZ /v "" /d "Open with Brackets" /f |
This file contains hidden or 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
# netsh advfirewall set currentprofile state off # Firewall Off | |
# netsh advfirewall set currentprofile state on # Firewall On |
This file contains hidden or 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
'Start The Script | |
Dim SetWshNetwork | |
Set WshNetwork = WScript.CreateObject("WScript.Network") | |
Set wsc = WScript.CreateObject("WScript.Shell") | |
Set lnk = wsc.CreateShortcut(wsc.SpecialFolders("desktop") & "\Go-Global.LNK") | |
'Commands | |
lnk.targetpath = "C:\Program Files\GraphOn\GO-Global\Client\gg-client.exe" | |
lnk.arguments = "-h hosted.logoscms.com -c -u " & WshNetwork.UserName & " -p Password" | |
lnk.description = "DB Access" | |
lnk.workingdirectory = "C:\Program Files\GraphOn\GO-Global\Client" |