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
Please paste the code in comments |
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
#include "DHT.h" | |
#define DHTPIN 7 | |
#define DHTTYPE DHT11 | |
DHT dht(DHTPIN, DHTTYPE); | |
const int buzzer = 8; //buzzer to arduino pin 9 | |
void setup() { | |
Serial.begin(9600); | |
Serial.println(F("DHTxx test!")); |
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
CREATE TABLE amazonindia.products ( | |
product_id uuid, | |
product_price double, | |
category_desc text, | |
category_name text, | |
product_name text, | |
PRIMARY KEY (product_id, product_price) | |
) |
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
virtualbox-iso: + [[ -n 4.3.46(1)-release ]] | |
virtualbox-iso: + export -fn __rvm_select_version_variables __rvm_ruby_string_parse_ __rvm_rm_rf_verbose __rvm_parse_args | |
virtualbox-iso: + return 0 | |
virtualbox-iso: + return 0 | |
virtualbox-iso: + true | |
virtualbox-iso: + mkdir /tmp/isomount | |
virtualbox-iso: + mount -t iso9660 -o loop /home/vagrant/VBoxGuestAdditions.iso /tmp/isomount | |
virtualbox-iso: mount: /dev/loop0 is write-protected, mounting read-only | |
virtualbox-iso: + /tmp/isomount/VBoxLinuxAdditions.run | |
virtualbox-iso: Verifying archive integrity... All good. |
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
source "http://rubygems.org" | |
gem 'test-kitchen' | |
gem 'kitchen-vagrant' | |
gem 'kitchen-salt' | |
gem 'kitchen-linode' | |
gem 'serverspec' | |
gem 'kitchen-openstack' |
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
KafkaOffsetMonitor git:(master) sbt assembly | |
[info] Loading project definition from /Users/subramanyajoshi/Workspace/imanage/github/KafkaOffsetMonitor/project | |
[warn] Multiple resolvers having different access mechanism configured with same name 'sbt-plugin-releases'. To avoid conflict, Remove duplicate project resolvers (`resolvers`) or rename publishing resolver (`publishTo`). | |
[info] Compiling 1 Scala source to /Users/subramanyajoshi/Workspace/imanage/github/KafkaOffsetMonitor/project/target/scala-2.10/sbt-0.13/classes... | |
[info] Set current project to KafkaOffsetMonitor (in build file:/Users/subramanyajoshi/Workspace/imanage/github/KafkaOffsetMonitor/) | |
[info] Updating {file:/Users/subramanyajoshi/Workspace/imanage/github/KafkaOffsetMonitor/}offsetmonitor... | |
[info] Resolving org.fusesource.jansi#jansi;1.4 ... | |
[info] Done updating. | |
[info] Compiling 6 Scala sources to /Users/subramanyajoshi/Workspace/imanage/github/KafkaOffsetMonitor/target/scala-2.10/classes... | |
[error] /Users/subramanyajoshi/Workspace/imanage/ |
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
class TravelAlerts(APIView): | |
renderer_classes = (JSONRenderer, YAMLRenderer) | |
def get(self, request, format=None): | |
req = urllib2.urlopen('http://www.faroo.com/api?q=dresden&start=1&length=2&l=en&src=news&i=false&f=json&key=J5-fclbm2oxX6E5vZQlH0H0d2fE_') | |
response = urllib2.urlopen(req) | |
data = json.loads(response.read()) | |
return data |
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
all_hosts = [ 'localhost' ] | |
all_hosts = [ 'SIO-Office-BackupServer', ] | |
ipaddresses = { “SIO-Office-BackupServer” : “127.0.0.1″ , } | |
extra_host_conf["check_command"] = [ ( "check_host_alive_by_ssh", ["check_ssh -p 12345"], ALL_HOSTS ), ( “check_mk_http”, [ "noping" ], ALL_HOSTS ), ] | |
datasource_programs += [ ( "cat /opt/omd/sites/sio/tmp/SIO-Office-BackupServer.txt", [ 'SIO-Office-BackupServer' ] , ALL_HOSTS), ] |
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
# Log information about notifications | |
notification_logging = 1 | |
# Alternative: more verbose debugging with all variables | |
# notification_logging = 2 | |
define_hostgroups = True | |
all_hosts += [ | |
'localhost|localhost', | |
"slave01", | |
"slave02", |
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
<<<local>>> | |
0 CPUTempMonitor temp1=55 OK - CPU temp is at 55 | |
0 CPUClocks core1=1400.000|core2=1400.000|core3=1400.000|core4=1400.000|core5=1400.000|core6=1400.000 OK - that are the CPU clocks of every single core | |
0 GlusterHealState healCount=0 OK - the total number of files to be healed is 0 (there might be duplicates) | |
0 GlusterSplitBrain splitBrainCount=0 OK - the number of split brains found is 0 | |
0 HDDTemp temp=48 OK - HDD temp is at 48 | |
0 DNSUpdaterTest processes=0 This is not the Cloud Controller, so a process count of 0 is the normal case. | |
0 HAProxyTest processes=0 This is not the Cloud Controller, so a process count of 0 is the normal case. | |
0 API_HAProxy_Test processes=0 This is not the Cloud Controller, so a process count of 0 is the normal case. | |
0 HDDTemp1 temp=53 OK - HDD temp is at 53 |
NewerOlder