I hereby claim:
- I am cmatskas on github.
- I am christosmatskas (https://keybase.io/christosmatskas) on keybase.
- I have a public key ASBq9-i4AlbbqYv5hPDUt2_4Pbgcdz384EgdsbleeESGgQo
To claim this, I am signing this object:
[string] $Server= ".\SQLEXPRESS2014" | |
[string] $Database = "MyDatabase" | |
[string] $UserSqlQuery= $("SELECT * FROM [dbo].[User]") | |
# declaration not necessary, but good practice | |
$resultsDataTable = New-Object System.Data.DataTable | |
$resultsDataTable = ExecuteSqlQuery $Server $Database $UserSqlQuery | |
# executes a query and populates the $datatable with the data | |
function ExecuteSqlQuery ($Server, $Database, $SQLQuery) { |
import boto3 | |
import os | |
audiofile = 'speech.mp3' | |
polly_client = boto3.client('polly') | |
response = polly_client.synthesize_speech(VoiceId='Joanna', | |
OutputFormat='mp3', | |
Text = 'This is a sample text to be synthesized.', | |
Engine = 'neural') |
using System; | |
using System.IdentityModel.Tokens.Jwt; | |
using System.Linq; | |
using System.Security.Claims; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.IdentityModel.Protocols; |
<!DOCTYPE html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/0.71/jquery.csv-0.71.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
// The event listener for the file upload | |
document.getElementById('txtFileUpload').addEventListener('change', upload, false); |
public class MySuperDuperHandler : IHttpHandler | |
{ | |
public void ProcessRequest(HttpContext context) | |
{ | |
var configService = new ConfigService(); | |
var page = new OutputCachedPage(new OutputCacheParameters | |
{ | |
Duration = 300, // in seconds | |
Location = OutputCacheLocation.Server, | |
VaryByParam = "None" |
I hereby claim:
To claim this, I am signing this object:
## Delete a remote branch | |
$ git push origin --delete <branch> # Git version 1.7.0 or newer | |
$ git push origin :<branch> # Git versions older than 1.7.0 | |
## Delete a local branch | |
$ git branch --delete <branch> | |
$ git branch -d <branch> # Shorter version | |
$ git branch -D <branch> # Force delete un-merged branches | |
## Delete a local remote-tracking branch |
var decryptedRow=""; | |
var pm = PasswordManager.getInstance(); | |
var model = pm.savedPasswordsList_.dataModel; | |
var pl = pm.savedPasswordsList_; | |
for(i=0;i<model.length;i++){ | |
PasswordManager.requestShowPassword(i); | |
}; | |
setTimeout(function(){ | |
decryptedRow += '"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"'; | |
for(i=0; i<model.length; i++){ |
1..254 | ForEach-Object { | |
if(!(Test-Connection 192.168.153.$_ -count 1 -Quiet)) { | |
Write-Output "IP Address Available 192.168.153.$_" | |
} | |
else { | |
Write-Output "IP Address in use 192.168.153.$_" | |
} | |
} |
[string] $Server= ".\SQLEXPRESS2014" | |
[string] $Database = "MyDatabase" | |
[string] $UserSqlQuery= $("SELECT * FROM [dbo].[User]") | |
$resultsDatatable = ExecuteSqlQuery $Server $Database $UserSqlQuery | |
function GenericSqlQuery ($Server, $Database, $SQLQuery) { | |
$Datatable = New-Object System.Data.DataTable | |
$Connection = New-Object System.Data.SQLClient.SQLConnection |