Skip to content

Instantly share code, notes, and snippets.

View matowens's full-sized avatar
☠️
Hustlin'

Mat matowens

☠️
Hustlin'
View GitHub Profile
function createUUID(){
let dt = new Date().getTime()
const uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
const r = (dt + Math.random()*16)%16 | 0
dt = Math.floor(dt/16)
return (c=='x' ? r :(r&0x3|0x8)).toString(16)
})
@KryptoGB
KryptoGB / Krypto's All Pairs Gunbot Config and Advice
Last active August 2, 2019 10:37
Krypto's All Pairs Gunbot Config and Advice
Since it's been asked for so many times here is the way I run Gunbot 5.0.4. All the standard "This is not financial advice", "Your
mileage may very", "Previous results are not indicative of future gains", blah blah blah etc.. etc.. Apply. Shoutouts to Gunthar of
course, Diesel for being my muse and the one who got me started on this path. Berti, RchGrav, Rich Z, Allanster, Nate, TandyUK, Thor,
Exquitas and so many more people for the ideas, advice and testing.
Did this advice help you? Send me beer money! BTC: 1Per7XsUsCUv4zWNPnrHUizDQX33XxVvKL
Or msg me on Telegram @KryptoGB if you want to tip me in any coin available at Bittrex.
I STRONGLY recommend that everyone have a seperate trading account that you use for testing purposes. When you want to try different
settings or a new version of Gunbot comes out, having a small seperate pool of money to test with can be invaluable before making
@matowens
matowens / index.html
Last active September 26, 2023 17:17
Base index.html file for quick starting an app.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<link rel="stylesheet" href="assets/styles/main.css">
@tscheepers
tscheepers / GeoSpatialThingController.php
Last active August 11, 2021 04:45
Geospatial sort by distance using Laravel and MySQL. I'm using a point column named geolocation in a table called things.
<?php
class GeoSpatialThingController extends \BaseController {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
@marcoslin
marcoslin / app.js
Last active October 8, 2021 08:52
Simple angularAMD Sample
define(['angularAMD', 'angular-route'], function (angularAMD) {
var app = angular.module("webapp", ['ngRoute']);
app.config(function ($routeProvider) {
$routeProvider
.when("/home", angularAMD.route({
templateUrl: 'view_home.html', controller: 'HomeCtrl', controllerUrl: 'controller_home'
}))
.when("/view1", angularAMD.route({
templateUrl: 'view_view1.html', controller: 'View1Ctrl', controllerUrl: 'controller_view1'
@salcode
salcode / .gitignore
Last active September 27, 2025 02:50
See https://salferrarello.com/wordpress-gitignore/ for the latest version of my WordPress .gitignore file
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@sumpygump
sumpygump / getting-started.md
Created February 20, 2014 05:50
symfony getting started

Symfony Standard Getting Started Guide

Requirements

You must have composer and phing installed.

Create New Project

Create a new project by running the command

@plentz
plentz / nginx.conf
Last active May 28, 2026 05:18
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer