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
| Hello {$name}! |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head><title/some title/ | |
| <body<p>as>f | |
| <ul<li>foo<>bar</></> |
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 | |
| # Busy waiting is very dirty, but it is very simple... | |
| while find /var/tmp/portage/ -name '*_lockfile' | grep lockfile; do | |
| sleep 1 | |
| done | |
| notify-send -t $((30*60*1000)) "doemergováno" |
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 | |
| COUNT=1e6 | |
| FUNCTIONS=' | |
| function res($x){ | |
| //echo $x; | |
| }; | |
| ' | |
| #CREATE_ARRAY='$a = array_fill(0, '$COUNT', "fofo");' | |
| CREATE_ARRAY=' | |
| $a = array(); |
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
| package com.v6ak.example.geometry | |
| abstract sealed class Shape{ | |
| def color: String | |
| } | |
| abstract sealed class Ellipse extends Shape { | |
| def a: Int | |
| def b: Int | |
| } |
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 | |
| # input URLs: e.g.: http://www.oracle.com/technetwork/java/javase/downloads/jre-7u1-download-513652.html | |
| # (!) By using this script, you accept some license agreements automatically! | |
| URL_REGEXP='http\:\/\/([a-z0-9]+)(\.[a-z0-9]+)*\/(([0-9a-zA-Z\./]|-)+)' | |
| if [ "$#" == "0" ]; then # no URL given => get them from emerge | |
| echo Getting URLs from emerge... | |
| java_packages=$(grep -E '(sun|oracle)-(jre|jdk)' /var/lib/portage/world) | |
| urls=$( | |
| emerge -uf -- $java_packages 2>&1 | grep -o -E "$URL_REGEXP" | |
| ) |
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 | |
| ## | |
| ## DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| ## Version 2, December 2004 | |
| ## | |
| ## Copyright (C) 2012 Vít Šesták 'v6ak' <https://contact.v6ak.com/> | |
| ## | |
| ## Everyone is permitted to copy and distribute verbatim or modified | |
| ## copies of this license document, and changing it is allowed as long | |
| ## as the name is changed. |
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
| for url in $( | |
| curl https://www.box.com/api/2.0/folders/$FOLDER_ID -H "$AUTH" | | |
| (sed 's#.*"entries":\[{##' | sed 's/},{/\n/g') | grep file | sed 's#^"type":"file","id":"\([0-9]\+\)".*#https://www.box.com/api/2.0/files/\1#' | |
| ); do | |
| curl "$url" -H "$AUTH" | sed 's#\(.*\)"name":"\([^"]\+\)",\(.*\)"sha1":"\([^"]\+\)"\(.*\)$#\4 \2\n#' | |
| done |
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
| -http://twitter.v6ak.com/136264116 | |
| -http://twitter.v6ak.com/21125643 | |
| +http://twitter.v6ak.com/292489950 | |
| +http://twitter.v6ak.com/244909101 | |
| +http://twitter.v6ak.com/68161528 | |
| +http://twitter.v6ak.com/176118566 | |
| +http://twitter.v6ak.com/18788516 | |
| -http://twitter.v6ak.com/24889166 | |
| -http://twitter.v6ak.com/13898622 | |
| +http://twitter.v6ak.com/83027496 |
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
| val TwRegex = """^(http|https)://(api\.twitter\.com|twitter.com)(/1)?/statuses/user_timeline(/|\.rss\?screen_name=)([0-9A-Za-z_]+)(\.rss)?$""".r | |
| Set(XML.loadFile("/tmp/google-reader-subscriptions.xml") \\ "outline" \\ "@xmlUrl" map {_.toString} flatMap {_ match {case TwRegex(_, _, _, _, name, _) => Some(name); case _ => None}} : _*) map {"http://twitter.v6ak.com/"+_} foreach println; |