Skip to content

Instantly share code, notes, and snippets.

Nick Walke nwalke

  • Lenexa, KS
Block or report user

Report or block nwalke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am nwalke on github.
  • I am nwalke (https://keybase.io/nwalke) on keybase.
  • I have a public key ASCEs-EVaIq43JclB50XFhI3CaAO73vs6e-0ncGFVgapxQo

To claim this, I am signing this object:

View gist:c11d11a9d3ddd3f17c0cee4596d67ec8
{
"region": "us-west-1",
"accountId": "111222333444",
"eventTriggerName": "Trigger-group-us-west-3-deploy-failed",
"applicationName": "ProductionApp-us-west-3",
"deploymentId": "d-75I7MBT7C",
"deploymentGroupName": "dep-group-def-456",
"createTime": "1446744188.595",
"completeTime": "1446744190.402",
"deploymentOverview": {
View xorgs.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 381.22 (buildmeister@swio-display-x86-rhel47-02) Thu May 4 01:29:00 PDT 2017
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
View gist:9d674d8f1e26e767e579eb0b78a9f58e
Jun 2 22:37:27 mia kernel: [10975.244085] snd_hda_codec_hdmi hdaudioC2D0: HDMI: invalid ELD data byte 0
Jun 2 22:37:27 mia rtkit-daemon[2493]: Supervising 3 threads of 1 processes of 1 users.
Jun 2 22:37:27 mia rtkit-daemon[2493]: Successfully made thread 7746 of process 3165 (n/a) owned by '1000' RT at priority 5.
Jun 2 22:37:27 mia rtkit-daemon[2493]: Supervising 4 threads of 1 processes of 1 users.
Jun 2 22:37:27 mia unity-settings-[3082]: GtkDialog mapped without a transient parent. This is discouraged.
Jun 2 22:37:27 mia compiz[3233]: WARN 2017-06-02 22:37:27 unity.screen UScreen.cpp:131 UScreen::GetMonitorName: Failed to get monitor name for monitor0
Jun 2 22:37:27 mia compiz[3233]: WARN 2017-06-02 22:37:27 unity.screen UScreen.cpp:131 UScreen::GetMonitorName: Failed to get monitor name for monitor0
Jun 2 22:37:27 mia colord[2045]: failed to get session [pid 3082]: No such device or address
Jun 2 22:37:27 mia colord[2045]: failed to get session [pid 3082]: No such device or address
Jun 2 22:
@nwalke
nwalke / gist:447f6b02e3350be939d2f32ce7915de1
Created Jun 1, 2017
AWS CodeDeploy Deployment Spec when launched from ASG
View gist:447f6b02e3350be939d2f32ce7915de1
{
"deploymentInfo": {
"applicationName": "myapp",
"status": "Succeeded",
"deploymentOverview": {
"Skipped": 0,
"Succeeded": 1,
"Failed": 0,
"Ready": 0,
"InProgress": 0,
View gist:4354f0840dfe3c2d0c6b5a43e0e99d88
RUN apt-get update \
&& apt-get install -y wget \
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
&& apt-get update \
&& apt-get install -y libpq-dev \
View gist:3d80653386ac144c301d0341801dc912
{
"sku": "F7H92E3N3TN52552",
"productFamily": "Compute Instance",
"attributes": {
"servicecode": "AmazonEC2",
"location": "US East (N. Virginia)",
"locationType": "AWS Region",
"instanceType": "t2.medium",
"instanceFamily": "General purpose",
"vcpu": "2",
View deactivateOldStuff.py
import boto3
import collections
from datetime import datetime
from time import gmtime, strftime
notOkayDays = 120
today = datetime.today().replace(tzinfo=None)
client = boto3.client('iam')
iam = boto3.resource('iam')
View gist:fcccaf7060c01004ac9a709c64d4fd0d
+----+---------------------+---------------------+------------+------------------+--------------+----------------+ │ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
| id | created_at | updated_at | deleted_at | name | possessor_id | possessor_type | │#18 /home/nick/projects/taas/artisan(35): Laravel\Lumen\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\
+----+---------------------+---------------------+------------+------------------+--------------+----------------+ │ConsoleOutput))
| 1 | 2016-11-15 06:08:34 | 2016-11-15 06:08:34 | NULL | my first project | 1 | App\User | │#19 {main}
+----+---------------------+---------------------+------------+---------
View php lul
php > echo (0 == null ? "Yes" : "No");
Yes
php > echo (1 > null ? "Yes" : "No");
Yes
php > echo (0 > null ? "Yes" : "No");
No
php > echo (-1 > null ? "Yes" : "No");
Yes
You can’t perform that action at this time.