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
<html> | |
<head> | |
<meta http-equiv="refresh" content="10"> | |
</head> | |
<body> | |
<?php | |
ini_set('display_errors',1); |
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
ERRO[0000] [./go/bin/shiori account add accountname]: default addr for network 'localhost' unknown |
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
Param( | |
[Parameter( | |
Mandatory = $true, | |
ParameterSetName = '', | |
ValueFromPipeline = $true)] | |
[string]$Query | |
) | |
$MySQLAdminUserName = 'USER' | |
$MySQLAdminPassword = 'PASSWORD' | |
$MySQLDatabase = 'MYDBNAME' |
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
<# | |
.SYNOPSIS | |
Run schema migration scripts on a SQL Server databse | |
.DESCRIPTION | |
The database version is kept track of in an extended property ('db-version') on | |
the SQL Server database. The version number comes from the prefix of the | |
filename of each .sql migration script (see -SchemaDir parameter help for more | |
information). |
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
/* | |
SOURCE: https://dba.stackexchange.com/a/183991 | |
*/ | |
set nocount on; | |
-- Set the two variables newmodel and oldmodel to the appropriate database names and execute the script | |
declare @newmodel varchar(50), @oldmodel varchar(50); | |
Set @newmodel = '[NewModel to Compare]'; -- e.g. Dev environment |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<httpErrors errorMode="Custom"> | |
<remove statusCode="404" /> | |
<error statusCode="404" path="/my_path/" responseMode="Redirect"/> | |
</httpErrors> | |
</system.webServer> | |
</configuration> |
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
/* | |
Source: https://stackoverflow.com/a/32724748 (thx Todd ECU) | |
*/ | |
SELECT Table_Name, Column_Name | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE TABLE_CATALOG = 'YOUR_DATABASE' | |
AND COLUMN_NAME LIKE '%YOUR_COLUMN%' |
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
#!c:\Perl\bin\perl.exe | |
# A Fake SMTP Daemon for debugging SMTP connections | |
# (c) 2000,2001 John Brewer DBA Jera Design | |
# You are permitted to use, modify and redistribute this | |
# code under the terms of the Perl Artistic License. | |
use strict; | |
use IO::Socket; |
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
// thanks to realPatriot_ from freenode/#react for his code | |
import { configure, shallow, mount } from 'enzyme'; | |
import Adapter from 'enzyme-adapter-react-16'; | |
import {Form, Dropdown} from 'semantic-ui-react'; | |
import React from 'react'; | |
import ScheduleVisualizerForm from './ScheduleVisualizerForm'; |
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
import backend from '../backend'; | |
export const LOGIN_START = 'LOGIN_START'; | |
export const LOGIN_ERROR = 'LOGIN_ERROR'; | |
export const LOGIN_SUCCESS = 'LOGIN_SUCCESS'; | |
export const CHANGE_USERNAME = 'CHANGE_USERNAME'; | |
export const CHANGE_PASSWORD = 'CHANGE_PASSWORD'; |