Skip to content

Instantly share code, notes, and snippets.

@connerturner
connerturner / backup_db.sh
Created February 13, 2020 02:43
MySql DB Backup
#!/bin/bash
#
# Script: backup_sql_db.sh
#
# Author: Conner Turner
# Date: 2020-02-13
#
# Description: The script will take a full backup into .sql format of inputted
# DB's and store it in /var/local/sql-backups/
#
@connerturner
connerturner / Code.gs
Created August 31, 2019 23:49
App Script for Getting responses in confirmationMessages
/**
* @author Conner Turner <conner@powerposters.org>
* @see https://developers.google.com/apps-script/reference/forms/form-response
* @see https://developers.google.com/apps-script/guides/triggers/events#google_forms_events
*
* g.co/productexperts
*
*/
@connerturner
connerturner / code.gs
Last active February 13, 2020 02:45
Min - Max, Google Apps Script
/**
* @author Conner Turner <conner@powerposters.org>
*
* g.co/productexperts
*
*/
//Use concat to flatten the spreaded array (in the case of a >2 n-Array)
function flatten(arrayInput) {
var flat = [];

Keybase proof

I hereby claim:

  • I am connerturner on github.
  • I am cturner (https://keybase.io/cturner) on keybase.
  • I have a public key whose fingerprint is 6B89 02AA 16A2 E7F8 990A C165 FDC8 C747 465D 404D

To claim this, I am signing this object:

try {
if(File.Exists("score.txt"))
{
//read
string content = File.ReadAllText("test.txt");
lblHighpoints.Text = content
}
}
@connerturner
connerturner / zip.js
Created October 28, 2014 03:26
Google Drive Zip Utility (GoogleAppsScript)
/*
Zip Files within folder
*/
function zip(){
var ui = SpreadsheetApp.getUi();
var result = ui.prompt(
'Google Drive File Archive',
'Please enter the exact path to your folder:',
ui.ButtonSet.OK_CANCEL);
var button = result.getSelectedButton();
@connerturner
connerturner / Gen.php
Created October 21, 2014 11:13
Random Alphanumerical Generator
$EmailGen = substr(str_shuffle("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 1) . substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 10);