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
RewriteEngine On | |
RewriteCond %{HTTPS} !on | |
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ | |
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^([^\.]+)$ $1.php [NC,L] |
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 | |
/** | |
* deploy.php by Hayden Schiff (oxguy3) | |
* Available at https://gist.github.com/oxguy3/70ea582d951d4b0f78edec282a2bebf9 | |
* | |
* No rights reserved. Dedicated to public domain via CC0 1.0 Universal. | |
* See https://creativecommons.org/publicdomain/zero/1.0/ for terms. | |
*/ | |
// random string of characters; must match the "Secret" defined in your GitHub webhook |
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
# set the items the store sells | |
shopItems = [ | |
{ | |
"item": "Beans", | |
"price": 1000, | |
}, | |
{ | |
"item": "Rice", | |
"price": 200, | |
}, |
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 | |
/*******EDIT LINES 3-8*******/ | |
$DB_Server = "localhost"; //MySQL Server | |
$DB_Username = "root"; //MySQL Username | |
$DB_Password = ""; //MySQL Password | |
$DB_DBName = "backoffice"; //MySQL Database Name | |
$filename = "excelfilename"; //File Name | |
/*******YOU DO NOT NEED TO EDIT ANYTHING BELOW THIS LINE*******/ | |
//create MySQL connection | |
$sql = 'Select * from $DB_TBLName'; |
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
<!-- Display the countdown timer in an element --> | |
<p id="demo"></p> | |
<script> | |
// Set the date we're counting down to | |
var localTime = new Date("Jan 5, 2021 15:37:25").getTime(); | |
// convert the time to the current timezone | |
var localOffset = new Date("Jan 5, 2021 15:37:25").d.getTimezoneOffset() * 60000; |
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
const statesInNigeria = [ | |
{ | |
state: "ABIA", | |
lga: ["AROCHUKWU", "INI ", "OBI NGWA", "UGWUNAGBO", "UKWA EAST "], | |
}, | |
{ | |
state: "ADAMAWA", | |
lga: [ | |
"DEMSA", | |
"FUFORE", |
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
cd "C:%HOMEPATH%\.IntelliJIdea*\config" | |
rmdir "eval" /s /q | |
del "options\other.xml" | |
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea" /f | |
:: This will work for idea 2018.3 and later | |
:: | |
:: It is Highly Advised to Purchase the JetBrain Softwares | |
:: This is only for the case You just want to Extend the | |
:: Trial Period and Evaluate the IDE for some more Time |
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 | |
$users2 = DB::select('select * from users where active = ?', [1]); // user raw sql and prepared statements | |
$users1 = DB::table('users')->get(); // using query builder | |
@endphp | |
dd($users1) | |
dd($users2) |
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
<GridRow reset> | |
<GridColumn col='half'> | |
<div className='form-group'> | |
<select | |
name='document_type[]' | |
id='document_type' | |
required | |
> | |
<option value=''>Document Type</option> | |
<option value'britain'> Britain </option> |
NewerOlder