Skip to content

Instantly share code, notes, and snippets.

@Prophet731
Prophet731 / encrypter.js
Created December 7, 2022 07:23 — forked from Agoreddah/encrypter.js
Laravel encrypt & decrypt in Node.js
// load variables
require('dotenv').config();
// load dependencies
const crypto = require('crypto');
'use strict';
const APP_KEY = process.env.APP_KEY;
@Prophet731
Prophet731 / .gitlab-ci.yml
Created January 6, 2020 10:55 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@Prophet731
Prophet731 / my.cnf
Created November 29, 2019 22:15 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers)
# Optimized my.cnf configuration for MySQL/MariaSQL
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# === Updated December 2018 ===
#
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.
# If you have less or more resources available you should adjust accordingly to save CPU,
# RAM and disk I/O usage.
# The settings marked with a specific comment or the word "UPD" after the value
@Prophet731
Prophet731 / Laravel on VestaCP.md
Created November 5, 2019 12:37 — forked from peterbrinck/Laravel on VestaCP.md
Laravel web templates for VestaCP

I'm not using this or VestaCP anymore, so I can't confirm if still working or not.

I've made a new web template to make Laravel work easily on VestaCP, and so I wouldn't have to change my Laravel installation, if I ever wanted to deploy it elsewhere.

Each file should be put in /usr/local/vesta/data/templates/web/apache2

Then, when you edit your domain/site, you can change the web template to Laravel and just upload your whole project into public_html

@Prophet731
Prophet731 / selectors.txt
Created February 17, 2018 17:38
Zenbot Exchange Selectors
_stub:
_stub.BTC-USD (BTC/USD)
binance:
binance.123-456 (123/456)
binance.ADA-BTC (ADA/BTC)
binance.ADA-ETH (ADA/ETH)
binance.ADX-BNB (ADX/BNB)
binance.ADX-BTC (ADX/BTC)
binance.ADX-ETH (ADX/ETH)
binance.AE-BNB (AE/BNB)
DELIMITER $$
DROP PROCEDURE IF EXISTS addLogPlayerID $$
CREATE PROCEDURE addLogPlayerID()
BEGIN
-- add logPlayerID column safely
IF NOT EXISTS( (SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE()
AND COLUMN_NAME='logPlayerID' AND TABLE_NAME='tbl_chatlog') ) THEN
ALTER TABLE `tbl_chatlog` ADD COLUMN `logPlayerID` INT(10) UNSIGNED DEFAULT NULL;