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
#!/bin/bash -e | |
# This is a modified `cat /usr/sbin/make-ssl-cert > create-snakeoil-ssl` script | |
# Use this to create your own snakeoil cert | |
# These certs are self-signed and ideal for local development/testing | |
make_snakeoil() { | |
AltName="DNS:$CERT_NAME" | |
HostName="localhost" | |
} |
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
#!/bin/sh | |
# https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent | |
# download this script an make it executable with `chmod +x create_ssh` | |
# ./create_ssh me@example.com mygit <-- creates ~/.ssh/mygit_ed25519.pub and ~/.ssh/mygit_ed25519 | |
if [ -n "$1" ]; then | |
COMMENT=$1 | |
else | |
COMMENT=$USER | |
fi |
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
IF EXISTS ( | |
SELECT TABLE_NAME | |
FROM INFORMATION_SCHEMA.VIEWS | |
WHERE TABLE_NAME = 'vw_Name' | |
) | |
DROP VIEW [vw_Name] | |
GO | |
CREATE VIEW [vw_Name] | |
AS |
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
function IsPostRequest() | |
IsPostRequest = Request.ServerVariables("REQUEST_METHOD") = "POST" | |
end function |
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
function HtmlSelectOptionSelected(value1, value2) | |
if (value1 = value2) then | |
HtmlSelectOptionSelected = "selected=""selected""" | |
else | |
HtmlSelectOptionSelected = "" |
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
function safe_filename(fname) | |
dim regExpObj, nameParts, ext | |
if cbool(len(fname)) then | |
nameParts = split(fname, ".") | |
if cbool(ubound(nameParts)) then | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title> | |
Bootstrap 101 Template | |
</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> | |
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"> |
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
$.ajax({ | |
type: "POST", | |
url: url, | |
data: data, | |
success: success, | |
dataType: dataType | |
}); |
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
public sealed class Singleton | |
{ | |
private static volatile Singleton instance; | |
private static object syncRoot = new object(); | |
private Singleton() | |
{ | |
} | |
public static Singleton Instance |
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
var queryStr = dojo.objectToQuery(formValues); | |
var url = action + '?' + queryStr; |