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
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K | |
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S | |
SFZHH-2Y246-Z483L-EU92B-LNYUA | |
GSZVS-5W4WA-T9F2E-L3XUX-68473 | |
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS | |
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4 | |
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU | |
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS |
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
certsDir="/certs" | |
dateString=$(date +%s) | |
mv "$certsDir/cert.pfx" "$certsDir/old/cert-$dateString" | |
openssl pkcs12 -export -out "$certsDir/cert.pfx" -inkey "$RENEWED_LINEAGE/privkey.pem" -in "$RENEWED_LINEAGE/cert.pem" -password pass:CERT_PASSWORD |
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 Dapper; | |
using Oracle.ManagedDataAccess.Client; | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Linq; | |
public class OracleDynamicParameters : Dapper.SqlMapper.IDynamicParameters | |
{ | |
private static Dictionary<SqlMapper.Identity, Action<IDbCommand, object>> paramReaderCache = new Dictionary<SqlMapper.Identity, Action<IDbCommand, object>>(); |
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
CREATE TABLE Customer ( | |
Id INT IDENTITY(1,1) PRIMARY KEY, | |
FamilyName NVARCHAR(50), | |
GivenName NVARCHAR(50), | |
Email NVARCHAR(50), | |
Gender NVARCHAR(10), | |
IpAddress NVARCHAR(20), | |
CreatedAt DATETIME | |
); | |
INSERT INTO Customer (FamilyName, GivenName, Email, Gender, IpAddress, CreatedAt) VALUES ('秋', '香茹', 'mmowsdell0@acquirethisname.com', '男', '31.253.158.172', '2019-05-18 00:50:03'); |
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; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Windows.Forms; | |
using Microsoft.Win32; | |
namespace RunOnStartup | |
{ | |
/// <summary> | |
/// It attempts to write to HKEY_LOCAL_MACHINE first, which will run on startup on all user accounts. |
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
angular.module('services') | |
.config(function($httpProvider){ | |
//Here we're adding our interceptor. | |
$httpProvider.responseInterceptors.push('globalInterceptor'); | |
}) | |
//Here we define our interceptor | |
.factory('globalInterceptor', function($q){ | |
//When the interceptor runs, it is passed a promise object | |
return function(promise){ |
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> | |
<head> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> | |
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script> | |
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.css' rel='stylesheet' /> |
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
{ | |
"workbench.colorTheme": "Visual Studio Light", | |
"editor.wordWrap": "on", | |
"breadcrumbs.enabled": true, | |
"git.autofetch": true, | |
"git.confirmSync": false, | |
"git.enableSmartCommit": true, | |
"workbench.startupEditor": "welcomePage", | |
"files.insertFinalNewline": true, | |
"editor.minimap.showSlider": "always", |
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 Lucene.Net.Analysis; | |
using Lucene.Net.Analysis.Core; | |
using Lucene.Net.Documents; | |
using Lucene.Net.Index; | |
using Lucene.Net.QueryParser.Classic; | |
using Lucene.Net.Search; | |
using Lucene.Net.Store; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; |
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
//https://www.codeproject.com/Articles/14848/Using-SMO-for-Backup-Restore-and-Security-Purposes | |
private static Server GetServer() | |
{ | |
ServerConnection conn = new ServerConnection(serverName, userName, password); | |
Server myServer = new Server(conn); | |
return myServer; | |
} | |
static void BackupDataBase(string databaseName, string destinationPath) | |
{ |
NewerOlder