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/sh | |
saywhat=$@ | |
echo -n $'\E[0m' | |
echo $'' | |
echo $'' | |
echo $' /\\__/\\' | |
echo $' /` \'\\' | |
echo $' === 0 0 ===' |
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
UPDATE wp_options SET option_value = replace(option_value, 'http://localhost:8888/wordpress', 'http://www.YOUR_SITE_URL.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = REPLACE (guid, 'http://localhost:8888/wordpress', 'http://www.YOUR_SITE_URL.com'); | |
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://localhost:8888/wordpress', 'http://www.YOUR_SITE_URL.com'); | |
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://localhost:8888/wordpress','http://www.YOUR_SITE_URL.com'); |
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
// include Columnizer-Jquery-Plugin | |
(function ($) { | |
$(document).ready(function ($) { | |
return (function () { | |
if (!Modernizr.csscolumns) { // eslint-disable-line no-undef | |
$('section.section-your-challenge-tabs .tab-content-sub ul').columnize({ | |
columns: 2, | |
lastNeverTallest: true | |
}); |
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() { | |
var s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.async = true; | |
s.src = 'http://yourdomain.com/script.js'; | |
var x = document.getElementsByTagName('script')[0]; | |
x.parentNode.insertBefore(s, x); | |
})(); |
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
Close out of VS. | |
1. Open solution directory with VSCode - editor should not auto-run c# (if vs code don't activate c# extention) | |
2. rename solution file | |
3. For each project | |
1. Get name of old project (perhaps from the solution file). | |
1. Rename oldProject folder | |
2. Rename oldProject .csProj file | |
3. Find and replace all files in directory (if vs code right click > select 'Find in Folder' for any directory inside the solution directory and change Files to include to ./) | |
4. The following keyboard shortcuts after entering old project name in Search and new project name in Replace |
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
"files.exclude": { | |
"**/bin": true, | |
"**/obj": true, | |
"**/*.csproj": true, | |
"**/*.csproj.*": true, | |
"**/*.cs": true, | |
"**/node_modules": true, | |
"**/bower_components": true, | |
"**/Scripts": true, | |
"**/Models": true, |
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
<!doctype html> | |
<html lang='en' xmlns='http://www.w3.org/1999/xhtml'> | |
<head> | |
<meta charset='utf-8' /> | |
<script> | |
function subst() { | |
// get query vars | |
var vars = {}; |
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
<style type="text/css" media="screen,print"> | |
/* Page Breaks */ | |
/***Always insert a page break before the element***/ | |
.pb_before { | |
page-break-before: always !important; | |
} | |
/***Always insert a page break after the element***/ | |
.pb_after { |
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
using System.Text; | |
namespace MyFunction | |
{ | |
public static class MyFunction | |
{ | |
public static async Task<IActionResult> ItsMyFunction () | |
{ | |
// this is needed so that an encoding error is avoided when merging the 2 ca pdfs with PDFSharp | |
// https://gunnarpeipman.com/net/no-data-is-available-for-encoding/ |
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
# PowerShell script to keep a Windows PC awake | |
Write-Host "Keeping PC awake... (send Ctrl+C to quit)" | |
while (1) { | |
$wsh = New-Object -ComObject WScript.Shell | |
$wsh.SendKeys('+{F15}') | |
Start-Sleep -seconds 59 | |
} |
OlderNewer