Skip to content

Instantly share code, notes, and snippets.

Daniel Gomes Vargas dgv

Block or report user

Report or block dgv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

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 B15F 61D1 4798 7209 EC8B 3C7F 95AD 92CC 3CB5 AADC

To claim this, I am signing this object:

@dgv
dgv / rebuild_gae.sh
Created Dec 19, 2016
small script for google appengine golang sdk recompilation for other arch/os support
View rebuild_gae.sh
#!/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
@dgv
dgv / gravatar_img.go
Last active Apr 23, 2017
Gravatar image
View gravatar_img.go
// 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"
@dgv
dgv / go-wol.go
Created Oct 29, 2012
Go Wake-On-Lan
View go-wol.go
package main
import (
"net"
"os"
"strings"
"encoding/hex"
"fmt"
)
@dgv
dgv / sample_wol.rb
Created Jun 4, 2012
Ruby Wake-On-Lan Script
View sample_wol.rb
#!/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
@dgv
dgv / gist:1593205
Created Jan 11, 2012
spark lines for your shell - spark of @holman in free pascal
View gist:1593205
{
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+}
You can’t perform that action at this time.