This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception | |
fatal | |
NoMemoryError | |
ScriptError | |
LoadError | |
NotImplementedError | |
SyntaxError | |
SignalException | |
Interrupt | |
StandardError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception | |
fatal | |
NoMemoryError | |
ScriptError | |
LoadError | |
NotImplementedError | |
SyntaxError | |
SignalException | |
Interrupt | |
StandardError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
module PwGen | |
class Password | |
include Enumerable | |
attr_reader :let, :num | |
$timestamp = Time.now.strftime("%Y %m %d %T") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
@paclist = `pacman --query` | |
@listfile = ENV['HOME'] + '/paclist.txt' | |
@today = Time.now.strftime("%d %m %Y, %T") | |
f = File.new(@listfile, 'w+') | |
f.write(<<EOF | |
Pacman package list as of #{@today}: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
OlderNewer