This file contains hidden or 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
| == Admin Commands | |
| disableoutput <int> -> getnone | |
| enableoutput <int> -> getnone | |
| kill -> None | |
| update [<str>] -> getitem | |
| == Informational Commands | |
| status -> getobject | |
| stats -> getobject | |
| outputs -> getoutputs | |
| commands -> getlist |
This file contains hidden or 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
| # Ruby-based configuration file for wmii. | |
| require 'rubygems' | |
| ################################################################################ | |
| # GENERAL CONFIGURATION | |
| ################################################################################ | |
| module Key | |
| MOD = 'Mod4' | |
| UP = 'k' |
This file contains hidden or 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
| IO.popen('gist', 'w') do |g| | |
| g.puts File.read(__FILE__) | |
| end |
This file contains hidden or 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 ruby19 | |
| @paclist = `pacman -Qqe | grep -v "$(pacman -Qmp)"` | |
| @listfile = ENV['HOME'] + '/abs/paclist.txt' | |
| File.open(@listfile, 'w+') do |f| | |
| f.puts f.atime | |
| f.puts | |
| f.puts @paclist | |
| end |
This file contains hidden or 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 ruby19 | |
| # encoding: utf-8 | |
| require 'fileutils' | |
| module ToGit | |
| Gitdir = File.join( ENV['HOME'], 'github/dotfiles' ) | |
| class << self | |
| Git = lambda { |command, dir| `git --git-dir=#{dir}/.git #{command}` } |
This file contains hidden or 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 ruby19 | |
| # encoding: utf-8 | |
| require 'fileutils' | |
| module ToGit | |
| Gitdir = File.join( ENV['HOME'], 'github/dotfiles' ) | |
| class << self | |
| Git = lambda { |command, dir| `git --git-dir=#{dir}/.git #{command}` } |
This file contains hidden or 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 ruby19 | |
| # encoding: utf-8 | |
| require 'fileutils' | |
| module ToGit | |
| Gitdir = File.join( ENV['HOME'], 'github/dotfiles' ) | |
| class << self | |
| Git = lambda { |command, dir| `git --git-dir=#{dir}/.git #{command}` } |
This file contains hidden or 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 ruby19 | |
| # encoding: utf-8 | |
| require 'fileutils' | |
| module ToGit | |
| Gitdir = File.join( ENV['HOME'], 'github/dotfiles' ) | |
| class << self | |
| Git = lambda { |command, dir| `git --git-dir=#{dir}/.git #{command}` } |
This file contains hidden or 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
| puts 'How many numbers do you want?' | |
| numbers = $stdin.gets.chomp | |
| (1..numbers.to_i).each do |l| | |
| puts "The element is #{l}" | |
| end |
This file contains hidden or 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
| #!/bin/sh | |
| # wifiscan | |
| # Wireless interface | |
| iface='wlan0' | |
| # Extract info and format the output | |
| (echo ESSID~~~Channel~~~Quality~~~Encryption && \ | |
| echo "---~~~---~~~---~~~---" && \ | |
| iwlist $iface scan | \ |