Skip to content

Instantly share code, notes, and snippets.

View arleighdickerson's full-sized avatar
🇺🇲
🏴󠁵󠁳󠁷󠁶󠁿 Courage in the hollers

Arleigh Dickerson arleighdickerson

🇺🇲
🏴󠁵󠁳󠁷󠁶󠁿 Courage in the hollers
View GitHub Profile
@arleighdickerson
arleighdickerson / seamod_rings.lua
Created December 3, 2015 23:19
Conky seamod rings for 8 core cpu
--==============================================================================
-- seamod_rings.lua
--
-- Date : 05/02/2012
-- Author : SeaJey
-- Version : v0.1
-- License : Distributed under the terms of GNU GPL version 2 or later
--
-- This version is a modification of lunatico_rings.lua wich is modification of conky_orange.lua
--
<?php
/**
* A trait to add silent prompts to Yii2 Console Controller
* Requires bash shell
*/
trait SilentPromptingTrait {
/**
* @see http://www.dzone.com/snippets/password-prompt-php
* Interactively prompts for input without echoing to the terminal.
* Requires a bash shell and won't work with safe_mode settings (Uses `shell_exec`)
<?php
namespace console\controllers;
use Yii;
use yii\console\Controller;
use yii\helpers\Json;
use yii\helpers\FileHelper;
"xte 'keydown Super_L' 'key w' 'keyup Super_L'"
b:8
"xte 'keydown Return' 'keyup Return'"
release+b:8
"xte 'keydown Super_L' 'key s' 'keyup Super_L'"
b:2
@arleighdickerson
arleighdickerson / bootstrap.php
Last active June 11, 2017 23:00
Helper functions living in the global namespace. Drop into bootstrap
<?php
use ProxyManager\Factory\AccessInterceptorValueHolderFactory;
use React\ChildProcess\Process;
use React\EventLoop\LoopInterface;
use React\Filesystem\Filesystem;
use React\Filesystem\FilesystemInterface;
use React\Promise\PromiseInterface;
Yii::$container
@arleighdickerson
arleighdickerson / Underscore.php
Last active February 24, 2016 23:13
No attempt at being canonical
<?php
namespace common\helpers;
use yii\base\UnknownPropertyException;
use yii\helpers\ArrayHelper;
/**
* @author Arleigh Dickerson
*
@arleighdickerson
arleighdickerson / phpstorm64.vmoptions
Last active December 24, 2016 16:03
phpstorm64.vmoptions
-server
-XX:+UseG1GC
-XX:MaxGCPauseMillis=100
-XX:G1HeapRegionSize=2
-XX:ParallelGCThreads=8
-XX:ConcGCThreads=2
-XX:+UseStringDeduplication
-Xms3678m
-Xmx3678m
-XX:SoftRefLRUPolicyMSPerMB=50
@arleighdickerson
arleighdickerson / InstanceAuthorizationTest.php
Created July 22, 2015 13:49
Instance Authorization Test
<?php
namespace tests\codeception\unit\models;
use Yii;
use yii\codeception\TestCase;
use Codeception\Specify;
use yii\rbac\PhpManager;
class MockRule extends \yii\rbac\Rule {
inoremap jk <Esc>
#!/bin/bash
xcape -e '#66=Escape'