I hereby claim:
- I am dgv on github.
- I am dgv (https://keybase.io/dgv) on keybase.
- I have a public key whose fingerprint is 73D6 28F7 00FB 2253 1299 876B B459 FC63 CBC4 109E
To claim this, I am signing this object:
| // compile it with: zig build-exe wol.zig | |
| // run it with: zig run wol.zig -- <mac-address> | |
| const std = @import("std"); | |
| pub fn main() !void { | |
| //var buf: [13]u8 = undefined; | |
| //var fba = std.heap.FixedBufferAllocator.init(&buf); | |
| const args = try std.process.argsAlloc(std.heap.page_allocator); | |
| if (args.len != 2 or args[1].len != 17) { | |
| std.debug.print("usage: {s} <mac-address>\n\t{s} 01:02:03:04:05:06\n", .{ args[0], args[0] }); |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| if [ "$GAE_PATH" == "" ]; then | |
| GAE_PATH=$HOME/go_appengine | |
| end | |
| if [ -d "$GAE_PATH" ]; then | |
| echo "Google AppEngine SDK found!" | |
| else | |
| echo "Please download last AppEngine SDK (Go) and unpack on home dir or specify the location on GAE_PATH variable." | |
| exit |
| // Gravatar image | |
| // http://en.gravatar.com/site/implement/ | |
| // Run it: http://go-vim.appspot.com/p/oAsi0WvLlf | |
| package main | |
| import ( | |
| "crypto/md5" | |
| "fmt" | |
| "io" | |
| "strings" |
| package main | |
| import ( | |
| "net" | |
| "os" | |
| "strings" | |
| "encoding/hex" | |
| "fmt" | |
| ) |
| #!/usr/bin/ruby | |
| require 'socket' | |
| begin | |
| addr = ['<broadcast>', 9] | |
| UDPSock = UDPSocket.new | |
| UDPSock.setsockopt(Socket::SOL_SOCKET, Socket::SO_BROADCAST, true) | |
| data = "\xFF\xFF\xFF\xFF\xFF\xFF" | |
| arr = ARGV[0].split(':') | |
| 16.times do |i| | |
| data<< arr[0].hex.chr+arr[1].hex.chr+arr[2].hex.chr+arr[3].hex.chr+arr[4].hex.chr+arr[5].hex.chr |
| { | |
| spark lines for your shell - for free pascal | |
| based: https://github.com/holman/spark | |
| $Spark: spark.lpr,v 1.0 2012/01/03 14:11:02 dgvargas Exp $ | |
| } | |
| program spark; | |
| {$mode objfpc}{$H+} |