Skip to content

Instantly share code, notes, and snippets.

View HackRanger's full-sized avatar
🏠
Working from home

Subramanya HackRanger

🏠
Working from home
View GitHub Profile
@HackRanger
HackRanger / gist:e3e7726ff76ed032b7c84ce26ae2ddef
Created April 17, 2021 12:05
Please paste the code in comments
Please paste the code in comments
#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!"));
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)
)
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.
source "http://rubygems.org"
gem 'test-kitchen'
gem 'kitchen-vagrant'
gem 'kitchen-salt'
gem 'kitchen-linode'
gem 'serverspec'
gem 'kitchen-openstack'
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/
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
@HackRanger
HackRanger / gist:580a3171acbd69cd1ba8
Created May 28, 2014 20:16
Modified Main.mk from your code
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), ]
# 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",
@HackRanger
HackRanger / gist:8420063
Created January 14, 2014 15:26
Output from check_mk -d target_host
<<<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