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
<connectionStrings> | |
<add name="DefaultConnection" connectionString="Data Source=[SERVER];Initial Catalog=[DATABASE];Persist Security Info=True;User ID=[USERID];Password=[PASSWORD]" providerName="System.Data.SqlClient" /> | |
</connectionStrings> |
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
using System; | |
using System.IO; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Threading.Tasks; | |
class stringGen | |
{ | |
private readonly Random _rng = new Random(); | |
private const string _chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; |
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
Sub QuoteCommaExport() | |
' Dimension all variables. | |
Dim DestFile As String | |
Dim FileNum As Integer | |
Dim ColumnCount As Integer | |
Dim RowCount As Integer | |
' Prompt user for destination file name. | |
DestFile = InputBox("Enter the destination filename" _ | |
& Chr(10) & "(with complete path):", "Quote-Comma Exporter") |
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
sudo apt-get install software-properties-common | |
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db | |
sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu raring main' | |
sudo apt-get update | |
sudo apt-get install mariadb-server | |
sudo /usr/bin/mysql_secure_installation |
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 | |
# These are for creation of the database | |
DBNAME="yourdbname" | |
DBUSER="yourdbuser" | |
DBPASS="yourdbpassword" | |
# Setup stuff for MariaDB | |
sudo apt-get install software-properties-common | |
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db |
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
$conn = fsockopen ('whois.verisign-grs.com', 43, $errno, $errstr, 1); | |
fputs($conn, $domain."\r\n"); | |
while(!feof($conn)){ | |
$output .= fgets($conn,128); | |
$registrar = reset(explode("\n",end(explode('Registrar:',$output)))); | |
} |
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
using System; | |
using System.DirectoryServices; | |
class Auth | |
{ | |
public static void Main(){ | |
string path= "LDAP://DC=domain,DC=local"; | |
string strAccountId = "[username]"; | |
string strPassword = "[password]"; |
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
using System; | |
using System.IO; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Threading.Tasks; | |
class stringGen | |
{ | |
private readonly Random _rng = new Random(); | |
private const string _chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; |
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
/**************************************************************************************************** | |
openmp_mmult.c performs square matrix multiplication using OpenMP. The program generates random matrices of the dimension specified by the user and performs multiplication using a simple three-loop algorithm. Parallelism is achieved by dividing the first matrix into a group of rows for each thread for multiplication. Each thread then multiplies their group of rows with the entire second matrix, calculating a group of rows of the resultant matrix. Since the threads calculate different portions of the matrix, there was not any need to use locks or other mechanisms to protect shared memory. | |
The program takes two arguments: | |
(1) The first is the number of threads to be used. If no arguments are provided, the program assumes 4 threads. | |
(2) The second is the dimension of the matrices to be multiplied. If only the first argument is provided, the program uses 100x100 matrices. | |
The program prints the time required f |
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
<?php | |
switch($_REQUEST['mode']){ | |
case 'savecontact': | |
echo "<pre>"; | |
$textinputs = $_REQUEST['textinput']; |