Coder Social home page Coder Social logo
  • šŸ‘‹ Hi, Iā€™m @Heyvaert
  • šŸ‘€ Iā€™m interested in ...
  • šŸŒ± Iā€™m currently learning ...
  • šŸ’žļø Iā€™m looking to collaborate on ...
  • šŸ“« How to reach me ...

Mike.Heyvaert's Projects

api icon api

GET / search / 1 / track? Q = true + genegenheid HTTP / 1.1 Accepteren: application / json

api-samples icon api-samples

Code samples for YouTube APIs, including the YouTube Data API, YouTube Analytics API, and YouTube Live Streaming API. The repo contains language-specific directories that contain the samples.

corefx icon corefx

This repo contains the .NET Core foundational libraries, called CoreFX. It includes classes for collections, file systems, console, XML, async and many others.

global icon global

44KB of Helpers: Http/Rest, Serialization/Deserialization, Extensions, IO, Email, Security and a light curl/wget like cli for windows users!

html icon html

Deliverables of the HTML Working Group

ipxe-1 icon ipxe-1

iPXE network bootloader. This is a mirror of the iPXE git tree at http://git.ipxe.org/ipxe.git

ispy icon ispy

Open source surveillance software

netconnectionsmart icon netconnectionsmart

A replacement class for the standard NetConnection actionscript class. This easily enables multiple port/protocol attempts to resolve at the best functioning connection.

osquery icon osquery

SQL powered operating system instrumentation, monitoring, and analytics.

playback icon playback

Video player built using electron and node.js

rest icon rest

#!/usr/bin/env ruby require 'rubygems' require 'sinatra' require 'json' require 'ipaddr' # curl -X POST -H 'Content-Type: application/json' -H 'X-Api-Key: secret' -d '{ "hostname": "host12.apple.com", "ip": "1.1.1.12" }' http://localhost:4567/dns # curl -X DELETE -H 'Content-Type: application/json' -H 'X-Api-Key: secret' -d '{ "hostname": "host12.apple.com", "ip": "1.1.1.12" }' http://localhost:4567/dns dns_params = { :server => '127.0.0.1', :rndc_key => 'rndc-key', :rndc_secret => 'MHGIj19UPT5EmWeHWFJLOw==', :ttl => '300' } # Reverse the IP address for the in-addr.arpa zone def reverse_ip(ipaddress) reverse_ip = IPAddr.new ipaddress reverse_ip.reverse end # Authenticate all requests with an API key before do # X-Api-Key error 401 unless env['HTTP_X_API_KEY'] =~ /secret/ end post '/dns' do request_params = JSON.parse(request.body.read) reverse_zone = reverse_ip(request_params["ip"]) ttl = if request_params["ttl"].nil? then dns_params[:ttl] else request_params["ttl"] end # Add record to forward and reverse zones, via TCP IO.popen("nsupdate -y #{dns_params[:rndc_key]}:#{dns_params[:rndc_secret]} -v", 'r+') do |f| f << <<-EOF server #{dns_params[:server]} update add #{request_params["hostname"]} #{ttl} A #{request_params["ip"]} send update add #{reverse_zone} #{ttl} PTR #{request_params["hostname"]} send EOF f.close_write end error 500 unless $? == 0 status 201 end delete '/dns' do request_params = JSON.parse(request.body.read) reverse_zone = reverse_ip(request_params["ip"]) # Remove record from forward and reverse zones, via TCP IO.popen("nsupdate -y #{dns_params[:rndc_key]}:#{dns_params[:rndc_secret]} -v", 'r+') do |f| f << <<-EOF server #{dns_params[:server]} update delete #{request_params["hostname"]} A send update delete #{reverse_zone} PTR send EOF f.close_write end error 500 unless $? == 0 end

simpl icon simpl

Simplest possible examples of HTML, CSS and JavaScript

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.