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
| /* | |
| * Compile with -lxcb -lxcb-randr | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <xcb/xcb.h> | |
| #include <xcb/randr.h> | |
| int main() { |
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 | |
| installPackage=false | |
| function process | |
| { | |
| packageName=$1 | |
| echo "######### key : $packageName" | |
| v=$(eval "apt-cache policy $packageName | grep 'Candidate:' | cut -c 14-") | |
| echo "######### version: $v" |
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 | |
| # Build latest version of Emacs, version management with stow | |
| # OS: Ubuntu 14.04 LTS | |
| # version: 24.5 | |
| # Toolkit: lucid | |
| # Warning, use updated version of this script in: https://github.com/favadi/build-emacs | |
| set -e |
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
| url.txt | |
| *.pyc |
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/python | |
| # Title: Reddit Data Mining Script | |
| # Authors: Clay McLeod | |
| # Description: This script mines JSON data | |
| # from the Reddit front page and stores it | |
| # as a CSV file for analysis. | |
| # Section: Python | |
| # Subsection: Data Science | |
| want=["domain", "subreddit", "subreddit_id" "id", "author", "score", "over_18", "downs", "created_utc", "ups", "num_comments"] |
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 | |
| # automon.sh -- automatically configures multiple monitors. | |
| # | |
| # I use this script on Arch Linux. This handles my personal monitor setup more | |
| # correctly and robustly than either Ubuntu or Windows 7, however it is only | |
| # designed to work on my laptop. | |
| # | |
| # On that laptop it always calls "xrandr" using the exactly the same arguments. | |
| # The --auto option in xrandr is clever enough to do the rest. One day this | |
| # script might become more flexible. |