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/bash | |
v=$1 | |
o=$2 | |
d=$4 | |
loaders=('grub') | |
test -r /etc/default/installkernel && | |
source /etc/default/installkernel |
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 ruby | |
# This script checks all your foreign packages against AUR to find newer versions | |
require 'net/http' | |
require 'json' | |
$packages = {} | |
$all = false |
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 ruby | |
$sucrose_points = 386.5 | |
$extract_potential = { | |
'2 row' => 0.79, | |
'crystal 10L' => 0.75, | |
'carapils' => 0.72, | |
} |
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 ruby | |
$hogares = {} | |
open('concentradohogar.csv').each_with_index do |l,i| | |
next if i == 0 | |
data = l.split(',') | |
viv, hog = data[0..1] | |
integ = data[13].tr('"', '').to_i | |
$hogares[[viv, hog]] = [integ, 0] |
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 ruby | |
CHARS = ('A'..'Z') | |
=begin | |
def stringify(array) | |
array.map(&:join).join(' ') | |
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
Processor Information: | |
Vendor: GenuineIntel | |
CPU Family: 0x6 | |
CPU Model: 0x3a | |
CPU Stepping: 0x9 | |
CPU Type: 0x0 | |
Speed: 2401 Mhz | |
4 logical processors | |
2 physical processors | |
HyperThreading: Supported |
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 ruby | |
require 'json' | |
$fix = false | |
$verbose = false | |
$git_marks = {} | |
$r_marks = {} | |
$note_marks = {} | |
$mode = 'hg' |
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 ruby | |
$autogroups = Hash.new { |h,k| h[k] = [] } | |
Dir.glob('/proc/*').each do |e| | |
pid = File.basename(e).to_i | |
next if pid == 0 | |
begin | |
cmdline = File.read(e + '/cmdline').split("\0").join(" ") | |
next if cmdline.empty? |
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
# This is now a gem | |
# https://rubygems.org/gems/parseopt | |
class ParseOpt | |
class Option | |
attr_reader :short, :long, :help | |
def initialize(short, long, help, &block) | |
@block = block | |
@short = short |
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
/* | |
* | |
* obj-m := fan.o | |
* KDIR := /lib/modules/$(shell uname -r)/build | |
* PWD := $(shell pwd) | |
* | |
* all: | |
* $(MAKE) -C $(KDIR) M=$(PWD) modules | |
* | |
* clean: |