Skip to content

Instantly share code, notes, and snippets.

View kdwinter's full-sized avatar

Kenneth De Winter kdwinter

  • Belgium
  • 07:11 (UTC +02:00)
View GitHub Profile
Exception
fatal
NoMemoryError
ScriptError
LoadError
NotImplementedError
SyntaxError
SignalException
Interrupt
StandardError
Exception
fatal
NoMemoryError
ScriptError
LoadError
NotImplementedError
SyntaxError
SignalException
Interrupt
StandardError
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes"/>
#!/usr/bin/env ruby
require 'net/https'
require 'rexml/document'
require 'time'
@username = "" # (without @gmail.com)
@password = ""
http = Net::HTTP.new('mail.google.com', 443)
#!/usr/bin/env ruby
require 'net/https'
require 'rexml/document'
require 'time'
@username = "" # (without @gmail.com)
@password = ""
http = Net::HTTP.new('mail.google.com', 443)
#!/usr/bin/env ruby
module PwGen
class Password
include Enumerable
attr_reader :let, :num
$timestamp = Time.now.strftime("%Y %m %d %T")
#!/usr/bin/env ruby
module PwGen
class Password
include Enumerable
attr_reader :vwl, :con, :num
$timestamp = Time.now.strftime("%Y %m %d %T")
def initialize(size=6, nums=2)
#!/usr/bin/env ruby
module PwGen
class Password
include Enumerable
$timestamp = Time.now.strftime("%Y %m %d %T")
def initialize(size=6, nums=2)
$size, $nums = size, nums
#!/usr/bin/env ruby
module PwGeneRB
module PasswordGenerator
class Password
include Enumerable
$timestamp = Time.now.strftime("%Y %b %d %T")
@chars = ('a'..'z').to_a + ('0'..'9').to_a
#!/usr/bin/env ruby
=begin
Author: Gigamo <gigamo@gmail.com>
This script generates a passphrase consisting of <size> letters in the start
and <nums> numbers in the end. Every even size it will use a vowel, uneven
will use a consonant.