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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.example</groupId> | |
| <artifactId>my-project</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <dependencies> | |
| <!-- none yet --> |
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
| def r(this) | |
| require this | |
| puts "#{this} is now loaded." | |
| rescue LoadError | |
| puts "The gem '#{this}' is missing." | |
| puts "Should I install it? [y/n]" | |
| if gets =~ /yes|y/i | |
| puts "Installing #{this}, hold on." | |
| if `gem install #{this}` =~ /Successfully/ | |
| Gem.clear_paths |
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 | |
| # Schedule this to run once a day with cron. Doesn't matter what time since it parses yesterday's hits (by default). | |
| # I only tested this on the Marco.org server, which runs CentOS (RHEL). No idea how it'll work on other distributions, but it's pretty basic. | |
| # Required variables: | |
| RSS_URI="/rss" | |
| MAIL_TO="[email protected]" | |
| LOG_FILE="/var/log/httpd/access_log" |
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
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Ates Goral <http://magnetiq.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. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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 | |
| # License: Public Domain. | |
| # Author: Joseph Wecker, 2012 | |
| # | |
| # Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile? | |
| # Are you tired of trying to remember how darwin/mac-osx treat them differently from linux? | |
| # Are you tired of not having your ~/.bash* stuff work the way you expect? | |
| # | |
| # Symlink all of the following to this file: | |
| # * ~/.bashrc |
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
| Robot r = new Robot(); | |
| System.out.println("Start!"); | |
| Thread.sleep(2000); // give yourself some margin to switch window | |
| int[] times = { 1, 5, 4, 4, 1, 3, 2 }; // number of shots for each distance | |
| int[] delays = { 400, 400, 575, 820, 850, 1150, 1350 }; // time holding the ball | |
| int[] delays2 = { 200, 650, 700, 600, 400, 450, 400 }; // time waiting for a new ball | |
| for (int i = 0; i < times.length; i++) | |
| for (int j = 0; j < times[i]; j++) { | |
| r.keyPress(KeyEvent.VK_SPACE); | |
| r.delay(delays[i]); |
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
| # Configuration suitable to display Apache/nginx access logs | |
| # Based on conf.proftpd by Pavol Domin | |
| # Crafted by Marcello Barnaba <[email protected]> | |
| # Get GRC at http://kassiopeia.juls.savba.sk/~garabik/software/grc.html | |
| # | |
| # ip number | |
| regexp=^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | |
| colours=bold magenta |
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
| # ip number | |
| regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | |
| colours=bold yellow | |
| ====== | |
| # list header | |
| regexp=(PORT|STATE|SERVICE|REASON|VERSION) | |
| colours=bold white | |
| ====== | |
| # open | |
| regexp=open |
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
| <html> | |
| <style type="text/css" media="screen"> | |
| #table { | |
| position: absolute; | |
| top: 30px; | |
| bottom: 0; | |
| left: 10px; | |
| right: 10px; | |
| } | |
| #header { |
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
Show hidden characters
| { | |
| "cmd": ["java", "-jar", "${packages}/Google Closure/compiler.jar", "--js", "$file", "--js_output_file", "/dev/null", "--compilation_level", "WHITESPACE_ONLY"], | |
| "file_regex": "^(.*):([0-9]+):() ERROR - (.*)", | |
| "selector": "source.js" | |
| } |
NewerOlder