Skip to content

Instantly share code, notes, and snippets.

View NoMan2000's full-sized avatar

Michael Ryan Soileau NoMan2000

  • Surge Forward
  • Reno, Nevada
View GitHub Profile
@NoMan2000
NoMan2000 / bearclick.js
Last active August 25, 2017 13:48
Some bear clicking!
(function bearClickerStart(global, doc) {
// use strict is a configuration that prevents errors from javascript's older days
'use strict';
// This is the root container that will hold everything else
let parent = doc.querySelector('#bear_insertion');
parent.innerHTML = '';
let bears = [];
// Create five bears
for (let i = 0; i < 5; i += 1 ) {
bears.push('http://placebear.com/g/200/300');
INSERT INTO public.city (id, name, countrycode, district, population) VALUES (1, 'Kabul ', 'AFG', 'Kabol ', 1780000);
INSERT INTO public.city (id, name, countrycode, district, population) VALUES (2, 'Qandahar ', 'AFG', 'Qandahar ', 237500);
INSERT INTO public.city (id, name, countrycode, district, population) VALUES (3, 'Herat ', 'AFG', 'Herat ', 186800);
INSERT INTO public.city (id, name, countrycode, district, population) VALUES (4, 'Mazar-e-Sharif ', 'AFG', 'Balkh ', 127800);
INSERT INTO public.city (id, name, countrycode, district, population) VALUES (5, 'Amsterdam ', 'NLD', 'Noord-Holland ', 731200);
INSERT INTO public.city (id, name, countrycode, district, population) VALUES (6, 'Rotterdam ', 'NLD', 'Zuid-Holland ', 593321);
INSERT INTO public.city (id, name, countrycode, district, popul
@NoMan2000
NoMan2000 / .gitignore
Last active July 22, 2017 16:08
PostGres World
.idea
@NoMan2000
NoMan2000 / Alert.vue
Created April 7, 2017 23:40 — forked from martinlindhe/Alert.vue
jasmine + karma for vue test
<style>
.Alert {
padding: 2em;
}
.Alert-Success {
border: 10px solid green;
}
.Alert-Error {
border: 10px solid red;
}
@NoMan2000
NoMan2000 / clear.sh
Created March 6, 2017 22:34
Debug Config PHP
php artisan route:clear
php artisan cache:clear
php artisan debugbar:clear //likely not necessary since it returned "No Debugbar Storage found.."
php artisan config:clear
@NoMan2000
NoMan2000 / openssl.md
Last active March 14, 2024 17:31 — forked from zhiguangwang/openssl.md
Common OpenSSL Commands with Keys and Certificates

Common OpenSSL Commands with Keys and Certificates

SSL Info

Generate RSA private key with certificate in a single command

openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar

Generate Certificate Signing Request (CSR) from private key with passphrase

openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar

@NoMan2000
NoMan2000 / xdebug.ini
Created July 29, 2016 20:53
Xdebug with PHPStorm and homestead
zend_extension=xdebug.so
xdebug.remote_enable = on
xdebug.remote_connect_back = on
xdebug.idekey = "vagrant"
@NoMan2000
NoMan2000 / Blacklister.php
Created June 22, 2016 16:07
PHP and Redis Throttler
<?php
namespace cellControl\SecurityThrottle;
require_once dirname(dirname(__DIR__)) . '/init.php';
use \Redis;
use cellControl\RedisSingleton;
use cellControl\IPFilter\IPFilter;
use cellControl\Traits\Environment;
use cellControl\Interfaces\Timer\TimeInterface;
/**
* Class BlackLister
@NoMan2000
NoMan2000 / coredump-php-fpm7.0.4223
Last active June 16, 2022 20:23
Crashing mysqli in php.
[New LWP 1831]
Core was generated by `php-fpm: pool www '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f71a83f8c22 in ?? ()
@NoMan2000
NoMan2000 / CountryCodesAndAbbr.php
Created March 3, 2016 20:59
Translating between TimeZones and Country Regions
<?php
namespace CountryCodesAndAbbr;
require_once dirname(dirname(__DIR__)) . '/init.php';
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use cellControl\Traits\StatusCodeTraits;
use Exception;