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 | |
namespace App\Console\Commands; | |
use App\Models\User; | |
use Illuminate\Console\Command; | |
class DummyData extends Command | |
{ | |
/** |
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
# Load file | |
$inFile = Read-Host -Prompt '👈 Input File' | |
# No idea what this does, but it needs it otherwise everything crashes | |
$officeFalse = [Microsoft.Office.Core.MsoTristate]::msoFalse | |
$officeTrue = [Microsoft.Office.Core.MsoTristate]::msoTrue | |
# Load Powerpoint Interop Assembly | |
[Reflection.Assembly]::LoadWithPartialname("Microsoft.Office.Interop.Powerpoint") > $null | |
[Reflection.Assembly]::LoadWithPartialname("Office") > $null |
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/bash | |
# This script is my all in one Laravel dev enviroment for | |
# remote working. DO NOT USE ON LIVE SERVICES AS THERE COULD | |
# BE ISSUES | |
# | |
# It does: | |
# - Sets up PHP dependancies | |
# - Installs Composer | |
# - Creates MYSQL user |
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/bash | |
# This script will take a default DigitalOcean droplet and | |
# install and configure all software needed to get an app | |
# running on it quickly. | |
# | |
# @author @JakeLPrice | |
# @created 11 May 2019 | |
# 0. Update apt-get |
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/bash | |
# Please only run IF YOU ARE SURE YOU SHOULD! | |
# | |
# This script will remove PHP and attempt to install the latest | |
# "Stable" version! To help me with LARAVEL installations, it'll | |
# also install composer and turn on mod_rewrite as well if it cannot | |
# be sure it is installed | |
# | |
# @author @JakeLPrice |
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/bash | |
# Please only run IF YOU ARE SURE YOU SHOULD! | |
# | |
# This script will remove PHP and attempt to install the latest | |
# "Stable" version! To help me with LARAVEL installations, it'll | |
# also install composer and turn on mod_rewrite as well if it cannot | |
# be sure it is installed | |
# | |
# @author @JakeLPrice |
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
11110100110011101000100 | |
1100111000010101011111000 | |
11010110010010011110100 | |
1111010011011100001001 | |
1100011010000111110101010 | |
1100111010011110010101011 | |
1010100000111110000010011 |
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
<div> | |
<iframe src="link-to-embed" style="width:100%;min-height:700px" seamless="seamless"></iframe> | |
</div> |
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/bash | |
for i in {2..10} | |
do | |
./pdftk 1.pdf $i.pdf cat output $(($i+1)).pdf | |
rm $i.pdf | |
done |
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 | |
//-- Run at least every 5 seconds | |
$diff = 5; | |
//-- Get my time | |
$time_check = 0; | |
//-- Always run | |
while (1) { |
NewerOlder