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
## okubax 2014;i3 config file (v2) - Edited by Pry0c | |
#default, floating, tabbed | |
#new container floating | |
# TOGGLE FLOATING / TILING | |
#bindsym Mod4+SHIFT+t floating toggle | |
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
background no | |
out_to_console yes | |
out_to_x no | |
update_interval 1 | |
total_run_times 0 | |
short_units yes | |
pad_percents 3 | |
override_utf8_locale 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
#!/bin/sh | |
echo "{\"version\":1}" | |
echo "[[]" | |
conky -c ~/.i3/conkyrc |
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
#!/bin/bash | |
cd ~/.i3/ | |
clear | |
echo "Hello! This script will install my i3 config, and my conky config." | |
echo "Press enter to continue, CTRL-C to exit" | |
read | |
sleep 0.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
class Dice | |
def initialize(type) | |
@type = type | |
end | |
def roll | |
case @type | |
when 4 | |
return rand(4) + 1 | |
when 6 |
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/ruby | |
require 'uri' | |
require 'open-uri' | |
image_no = 365; year = 2014; filename = 1 | |
image_no.times{ | |
year = 2013 if image_no < 332 | |
source = open("http://www.facets.la/#{year}/#{image_no}/wallpaper/").read | |
url_index = URI.extract(source).select{ |l| l[/\.(?:jpe?g)\b/] } | |
image_no += -1 | |
url_index.each { |image_url| $url = image_url } |
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
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
url = 'https://kernel.org' | |
data = Nokogiri::HTML(open(url)) | |
version_no = data.at_css("#latest_link").text.strip | |
local_version = `uname -r` |
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
#!/bin/bash | |
cd ~/Pictures/Wallbase/ | |
while [ 1 ] | |
do | |
feh --bg-scale $(ls | grep $[ ( $RANDOM % 100 ) + 1 ]) | |
sleep 10 | |
done |
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
#!/bin/bash | |
wget $(wget -O - $1 | grep 'jpg\|png' | grep wallpaper | sed 's/<img src="//g' | sed 's/" class="wall stage1 wide">//g') |
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/perl | |
use warnings; | |
use strict; | |
use LWP::Simple; | |
my $distro; | |
if ($ARGV[0]) { | |
print "Searching $ARGV[0]\n"; |
OlderNewer