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
function emailResponse(e) { | |
var form = FormApp.getActiveForm(); | |
var formResponses = form.getResponses(); | |
for (var i = 0; i < formResponses.length; i++) { | |
var formResponse = formResponses[i]; | |
var itemResponses = formResponse.getItemResponses(); | |
var output = ""; | |
var htmlOutput = "<h1>Form Response</h1><hr>"; | |
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
<?php | |
namespace App\Console\Commands; | |
use DB; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Schema; | |
class DBClear extends Command | |
{ |
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
<?php | |
namespace App\Http\Controllers\Auth; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Foundation\Auth\AuthenticatesUsers; | |
use Illuminate\Http\Request; | |
use Illuminate\Routing\UrlGenerator; | |
class LoginController extends Controller |
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
Const ForReading = 1 | |
Const ForWriting = 2 | |
Set objFSO = CreateObject("Scripting.FileSystemObject") | |
Set objRegEx = CreateObject("VBScript.RegExp") | |
objRegEx.Global = True | |
objRegEx.IgnoreCase = True | |
objRegEx.Pattern = "\""" | |
File1 = WScript.Arguments.Item(0) |
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
SELECT | |
`wp_postmeta_1`.`meta_value` | |
FROM | |
`wp_postmeta` | |
INNER JOIN `wp_postmeta` `wp_postmeta_1` | |
ON `wp_postmeta`.`meta_value` = `wp_postmeta_1`.`post_id` | |
WHERE | |
(`wp_postmeta`.`post_id` = 12345) AND | |
(`wp_postmeta`.`meta_key` = '_thumbnail_id') AND | |
(`wp_postmeta_1`.`meta_key` = '_wp_attached_file') |
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
<?php | |
if (class_exists('PhpCsFixer\Finder')) { | |
$finder = PhpCsFixer\Finder::create() | |
->in(__DIR__) | |
; | |
return PhpCsFixer\Config::create() | |
->setRules(array( | |
'@PSR2' => true, |
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
/node_modules | |
/public/storage | |
/vendor | |
/.idea | |
Homestead.json | |
Homestead.yaml | |
.env* | |
*bower_components* | |
*.js.map | |
*.css.map |
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
nano | |
bind-utils (dig) |
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
#!/bin/sh | |
# By Mike Jolley, based on work by Barry Kooij ;) | |
# License: GPL v3 | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
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
function powerPressHTTPStoHTTP( $ID = false, $post = false, $update = false ) | |
{ | |
if( ! $ID ) | |
return; | |
if( isset( $_REQUEST[ 'Powerpress' ] ) and is_array( $_REQUEST[ 'Powerpress' ] ) ) { | |
$powerPress = $_REQUEST[ 'Powerpress' ]; |