View aaraymarcher.cpp
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
/* | |
* Build with: | |
* g++ aaraymarcher.cpp $(aalib-config --cflags) $(aalib-config --libs) -lm -o aaraymarcher | |
*/ | |
#include <math.h> | |
#include <unistd.h> | |
#include <time.h> | |
#include <stdlib.h> | |
#include <stdio.h> |
View kruskal.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Kruskal Count test</title> | |
<style type="text/css"> | |
.hearts, .diamonds { | |
color: #c00; | |
} |
View rubygems-completion.bash
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 | |
# -*- mode: bash -*- | |
# | |
# --------------------------- | |
# --= bash completion for the =-- | |
# --= rubygems "gem" program =-- | |
# --------------------------- | |
# | |
# Copyright C 2011 Brent Sanders <git@thoughtnoise.net> | |
# -> Derived losely from "git-completion.sh" in the git-sh |
View getopt_example.sh
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 | |
VERSION="1.0" | |
AUTHOR="John Doe" | |
COPYRIGHT_YEAR="2000" | |
SCRIPT_NAME="getopt_example" | |
# or maybe SCRIPT_NAME="$(basename "$0")" | |
show_usage() { |
View trap_cleanup_demo.sh
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 | |
##################################################### | |
# An example of using a trap to cleanup a temporary # | |
# even during errors or early script exit. # | |
##################################################### | |
# an easy way to observe the tempfile: | |
# watch "command ls -l -tc --reverse /tmp | tail" |
View ytdltracks.sh
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 | |
# | |
# ytdltracks - GUI track selector front end for youtube-dl | |
# | |
# Author: pdkl95 (2819) | |
# | |
# Requires: https://github.com/v1cont/yad | |
# |
View whistleblower_prayer.txt
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
(To the whistleblowers, | |
in hope that they stay alive.) | |
Thanks for systemic corruption | |
and disregard for the rule of law. | |
Thanks for the transparent lies and | |
carefully framed talking points. | |
Thanks for the profitable arms sales |
View bash_only_mergesort.bash
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 | |
############################################################################# | |
## ## | |
## bash_only_mergesort.bash -- mergesort written in pure bash ## | |
## ## | |
## Why: I have no idea. This isn't going to ever be useful. ## | |
## Sanity: Do not use this. Ever. Just use sort(1) ## | |
## Author: pdkl95@thoughtnoise.net ## | |
## Homepage: https://gist.github.com/pdkl95 ## |
View mcjar-aether.bash
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 | |
## This script is Copyright Brent Sanders 2012, and is released | |
## for general use under the GPLv3 | |
## | |
## INSTRUCTIONS: | |
## Put this script and all the downloaded .zip files for the various | |
## mods in a folder. 'cd' over to that folder. Run this script. | |
## | |
## e.g. |
View mident.bash
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 | |
##################################################### | |
###/ \### # | |
### mident ### This is a wrapper script around # | |
###\ /### the "-identify" feature provided # | |
################ by mplayer/mplayer2, similar to # | |
# the "mplayer.sh" script that is # | |
# distributed with mplayer itself. This version # | |
# should be significantly more reliable, easier # |
NewerOlder