This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum -y update | |
sudo yum -y groupinstall "Development Tools" | |
sudo yum -y install git libcurl-devel python-devel screen rsync yasm numpy openssl-devel | |
wget http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_64.run | |
sudo sh cuda_5.5.22_linux_64.run | |
cd ~ | |
git clone https://github.com/cbuchner1/CudaMiner | |
cd CudaMiner | |
./configure | |
PATH=/usr/local/cuda-5.5/bin:$PATH make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+----+---------------------+---------------------+------------+------------------+--------------+----------------+ │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} | |
+----+---------------------+---------------------+------------+--------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sku": "F7H92E3N3TN52552", | |
"productFamily": "Compute Instance", | |
"attributes": { | |
"servicecode": "AmazonEC2", | |
"location": "US East (N. Virginia)", | |
"locationType": "AWS Region", | |
"instanceType": "t2.medium", | |
"instanceFamily": "General purpose", | |
"vcpu": "2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"deploymentInfo": { | |
"applicationName": "myapp", | |
"status": "Succeeded", | |
"deploymentOverview": { | |
"Skipped": 0, | |
"Succeeded": 1, | |
"Failed": 0, | |
"Ready": 0, | |
"InProgress": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": { |
OlderNewer