Skip to content

Instantly share code, notes, and snippets.

View kevyworks's full-sized avatar

Kevyworks kevyworks

View GitHub Profile
@kevyworks
kevyworks / webcatalog-unlimited-apps.md
Created November 25, 2024 10:16 — forked from HorridModz/webcatalog-unlimited-apps.md
WebCatalog Unlimited Apps Crack

WebCatalog is a tool to easily create desktop apps from websites. It's an awesome tool, but the free version (Basic account) limits you to 5 apps.

webcatalog5applimitation

However, I came up with a simple workaround to trick WebCatalog into letting you install as many apps as you want:

All WebCatalog apps are stored at %LocalAppData%\Programs\WebCatalogApps. On startup, WebCatalog makes a list of your installed apps by looking at this folder. If we make it so WebCatalog cannot find this folder, it won't think we have any apps installed, and it will let us install more.

@kevyworks
kevyworks / README.MD
Created May 19, 2024 04:52 — forked from artistro08/README.MD
How to setup a LEMP Development Environment with WSL2 & Valet Linux
@kevyworks
kevyworks / gist:be09706b3ee96d8c91074a4f3f1295d2
Created January 3, 2023 16:00 — forked from fj/gist:1597544
Slightly nicer way of writing large files to disk with PHP
// Copy big file from somewhere else
$src_filepath = 'http://example.com/all_the_things.txt'; $src = fopen($src_filepath, 'r');
$tmp_filepath = '...'; $tmp = fopen($tmp_filepath, 'w');
$buffer_size = 1024;
while (!feof($src)) {
$buffer = fread($src, $buffer_size); // Read big file/data source/etc. in small chunks
fwrite($tmp, $buffer); // Write in small chunks
}
@kevyworks
kevyworks / mailhog-install.sh
Created September 19, 2022 02:49 — forked from Caffe1neAdd1ct/mailhog-install.sh
Installation of MailHog on CentOS 7
## Install packages
sudo yum install wget curl vim epel-release
sudo yum install daemonize.x86_64
## Install mailhog
wget https://github.com/mailhog/MailHog/releases/download/v0.2.0/MailHog_linux_amd64
sudo chmod +x MailHog_linux_amd64
sudo chown root:root MailHog_linux_amd64
sudo mv MailHog_linux_amd64 /usr/sbin/mailhog
@kevyworks
kevyworks / SendNotificationEmail.php
Created June 23, 2020 20:31 — forked from faneder/SendNotificationEmail.php
Email notification in laravel
<?php
namespace Eder\Jobs;
use Eder\Jobs\Job;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Bus\SelfHandling;
use Illuminate\Contracts\Queue\ShouldQueue;
@kevyworks
kevyworks / SendNotificationEmail.php
Created June 23, 2020 20:31 — forked from faneder/SendNotificationEmail.php
Email notification in laravel
<?php
namespace Eder\Jobs;
use Eder\Jobs\Job;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Bus\SelfHandling;
use Illuminate\Contracts\Queue\ShouldQueue;
@kevyworks
kevyworks / ubuntu-server-setup-16.04.md
Created January 30, 2020 23:28 — forked from marcuslilja/ubuntu-server-setup-16.04.md
Server setup for Ubuntu 16.04 on Digital Ocean

Server setup for Ubuntu 16.04 on Digital Ocean

The setup installs the following software:

  • Nginx
  • MySQL
  • PHP
  • Node
  • Composer
@kevyworks
kevyworks / mailtrap-helper.js
Created October 10, 2018 07:13 — forked from icebob/LICENSE.md
Mailtrap API helper for NodeJS
"use strict";
var MAILTRAP_API = "xxxxxxxxxxxxxxxxxxxxxxx";
var MAILTRAP_INBOX = 12345;
var _ = require("lodash");
var request = require('request');
var baseURL = "https://mailtrap.io/api/v1/";
var headers = {
@kevyworks
kevyworks / uptimemonitor.sh
Created September 8, 2017 10:33 — forked from sweetmandm/uptimemonitor.sh
Cron job to monitor websites and send an email if the website is down.
#! /bin/sh
# A script to monitor uptime of websites,
# and notify by email if a website is down.
SITES="ADD COMMA-SEPARATED WEBSITES HERE"
EMAILS="ADD COMMA-SEPARATED EMAILS HERE"
for SITE in $(echo $SITES | tr "," " "); do
if [ ! -z "${SITE}" ]; then
RESPONSE=$(curl -s --head $SITE)
if echo $RESPONSE | grep "200 OK" > /dev/null
@kevyworks
kevyworks / jquery.pjax.js
Created July 10, 2017 05:46 — forked from oh-ren/jquery.pjax.js
pjax hacked, so it works with jQuery 3.0
/*!
* Copyright 2012, Chris Wanstrath
* Released under the MIT License
* https://github.com/defunkt/jquery-pjax
*/
(function($){
// When called on a container with a selector, fetches the href with
// ajax into the container or with the data-pjax attribute on the link