Skip to content

Instantly share code, notes, and snippets.

View zachary's full-sized avatar

Zachary - Full Stack & DevOps & ML zachary

View GitHub Profile
@zachary
zachary / Laravel-Scheduler-Windows.md
Created June 10, 2025 02:01 — forked from Splode/Laravel-Scheduler-Windows.md
Laravel Scheduler on Windows

Run Laravel Scheduled Tasks on Windows

The following are instructions for running scheduled tasks defined in a Laravel project on Windows. The Laravel documentation provides instructions for running scheduled tasks using cron jobs on Linux systems. However, cron jobs are not available on Windows. The built-in Windows Task Scheduler can be used to run scheduled tasks instead.

Create a Scheduled Task

  1. Open Task Scheduler
  2. Select Create Task...
  3. Give the task a name and description
  4. To run the task in the background, select Run whether the user is logged on or not and check the Hidden checkbox.
@zachary
zachary / Deploying a Laravel app on Windows using IIS.md
Last active June 7, 2025 20:42 — forked from amestsantim/Deploying a Laravel app on Windows using IIS.md
We try to describe the steps required to deploy a Laravel application on a Windows machine using IIS

Deploying a Laravel app on Windows using IIS

Install IIS

  1. Open Server Manager: Start the Server Manager from the Start menu or taskbar.
  2. Add Roles and Features: Click on "Manage" in the top right corner of the Server Manager, then select "Add Roles and Features".
  3. Role-based or Feature-based Installation: Choose "Role-based or feature-based installation" and click "Next".
  4. Select the Server: Select the server on which you want to install IIS and click "Next".
  5. Select Server Roles: In the roles list, check the box next to "Web Server (IIS)". This action will prompt you to add features that are required for Web Server (IIS); accept these by clicking "Add Features".
  6. Features: No additional features are required at this point, so you can click "Next".
@zachary
zachary / bag-of-word-vectors.py
Created February 28, 2024 19:11 — forked from edubey/bag-of-word-vectors.py
Code to generate bag of word vectors in Python
# import statments
import numpy
import re
'''
Tokenize each the sentences, example
Input : "John likes to watch movies. Mary likes movies too"
Ouput : "John","likes","to","watch","movies","Mary","likes","movies","too"
'''
def tokenize(sentences):
@zachary
zachary / LaravelWhereLikeMacro.php
Created November 26, 2023 18:09 — forked from MrPunyapal/LaravelWhereLikeMacro.php
Laravel Custom 'whereLike' Macro for Dynamic 'LIKE' Searches including relationships
<?php
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
class AppServiceProvider extends ServiceProvider
{
// ...
@zachary
zachary / cheatsheet.ps1
Created August 26, 2023 03:41 — forked from pcgeek86/cheatsheet.ps1
PowerShell Cheat Sheet / Quick Reference
Get-Command # Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft*
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item"
Get-Help # Get all help topics
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page)
Get-Help -Name Get-Command # Get help for a specific PowerShell function
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command
@zachary
zachary / installNeovim.sh
Created May 1, 2022 17:21 — forked from darcyparker/installNeovim.sh
Build and install neovim for Debian
#!/usr/bin/env bash
#Build and install neovim for Debian
#See: https://neovim.io/
#See: https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start
#See: https://gist.github.com/darcyparker/153124662b05c679c417
#Save current dir
pushd . > /dev/null || exit
@zachary
zachary / macos_big_sur_homebrew_apache_php_mariadb_2020.md
Created September 22, 2021 23:42 — forked from karlhillx/macos_big_sur_homebrew_apache_php_mariadb_2020.md
macOS Big Sur 11.0 Setup: Homebrew + Apache + PHP + MariaDB (Regularly updated)

macOS Big Sur 11.0 Setup: Homebrew + Apache + PHP + MariaDB

This document helps get your macOS development environment up and running with the latest versions of Homebrew, Apache, PHP, and MariaDB.

<?php
/**
* Insert an attachment from an URL address.
*
* @param String $url
* @param Int $parent_post_id
* @return Int Attachment ID
*/
function crb_insert_attachment_from_url($url, $parent_post_id = null) {
@zachary
zachary / BF888S_default_01012019.csv
Created March 10, 2021 03:10 — forked from kennedy/BF888S_default_01012019.csv
Baofeng BF888S default frequencies
Location Name Frequency Duplex Offset Tone rToneFreq cToneFreq DtcsCode DtcsPolarity Mode TStep Skip Comment URCALL RPT1CALL RPT2CALL DVCODE
1 462.125000 0.000000 TSQL 88.5 69.3 023 NN FM 5.00 S
2 462.225000 0.000000 88.5 88.5 023 NN FM 5.00 S
3 462.325000 0.000000 88.5 88.5 023 NN FM 5.00 S
4 462.425000 0.000000 TSQL 88.5 103.5 023 NN FM 5.00 S
5 462.525000 0.000000 TSQL 88.5 114.8 023 NN FM 5.00 S
6 462.625000 0.000000 TSQL 88.5 127.3 023 NN FM 5.00 S
7 462.725000 0.000000 TSQL 88.5 136.5 023 NN FM 5.00 S
8 462.825000 0.000000 TSQL 88.5 162.2 023 NN FM 5.00 S
9 462.925000 0.000000 DTCS 88.5 88.5 023 NN FM 5.00 S
@zachary
zachary / mail.php
Created January 25, 2021 19:44 — forked from mote0230/mail.php
PHP: Send email using amazon SES with AWS Signature Version 4
<?php
//class docs: http://www.orderingdisorder.com/aws/ses/
require_once('ses.php');
//get credentials at http://aws.amazon.com My Account / Console > Security Credentials
$ses = new SimpleEmailService('ACCESSkeyID', 'SECRETaccessKEY', 'eu-west-1', 'email.eu-west-1.amazonaws.com');
//print_r($ses->listVerifiedEmailAddresses());