Original protocol (IRCv2): [RFC 1459][rfc1459]
Later updated by [RFC 2810][rfc2810], [RFC 2811][rfc2811], [RFC 2812][rfc2812], [RFC 2813][rfc2813], but few servers follow these completely. IRCnet is probably the most complete implementation.
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| # Based on the 'colors' zsh script I found online somewhere years ago. | |
| # It looks like it is based on works posted at http://crunchbanglinux.org/forums/topic/13645/ansi-colorschemes-scripts/page/2/ | |
| # I've basically just edited it a bit to work with IRC control codes as well. | |
| # ~~Filip H.F. "FiXato" Slagter, 2012 | |
| abort("You need at least Ruby 1.9 to run this script due to encoding issues") if RUBY_VERSION < '1.9' | |
| class String | |
| def center(str_length) | |
| delta = str_length - self.length |
| GNU GENERAL PUBLIC LICENSE | |
| Version 3, 29 June 2007 | |
| Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
| Everyone is permitted to copy and distribute verbatim copies | |
| of this license document, but changing it is not allowed. | |
| Preamble | |
| The GNU General Public License is a free, copyleft license for |
| #!/bin/sh | |
| # You might want to put this script in crontab, backup day by day. | |
| # | |
| # $ sudo -u git -H crontab -l | |
| # $ 0 0 1 * * /path/to/your/BackupGitlab.sh | |
| cd /home/git/gitlab | |
| /usr/local/bin/bundle exec rake gitlab:backup:create RAILS_ENV=production |
| wget https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-2.2.3-linux-x86_64.tar.gz | |
| tar -xvzf pooler-cpuminer-2.2.3-linux-x86_64.tar.gz | |
| # Replace USER, ID & PASS with your creds setup on http://litecoinpool.org/account | |
| echo "nohup nice -n 20 ./minerd --url http://litecoinpool.org:9332/ --userpass USER.ID:PASS" > litecoin.sh | |
| chmod a+x litecoin.sh | |
| ./litecoin.sh & | |
| # Find thir process | |
| # ps axl | grep lite |
| /* | |
| * Requires http://www.youtube.com/feather_beta | |
| * | |
| * Match this: ^https?:\/\/www\.youtube\.com\/watch | |
| */ | |
| body { | |
| background-color: #111; | |
| color: #FFF; | |
| } |
| # encoding: utf-8 | |
| xml.instruct! | |
| # Drop this file in your source directory | |
| # | |
| # Uses the builder gem. | |
| # Add | |
| # gem 'builder', '~> 2.0' | |
| # to the Gemfile, and run builder install | |
| # |
| GitHub.TreeSlider = function () { | |
| if (window.history && window.history.pushState) { | |
| function a() { | |
| if (e.sliding) { | |
| e.sliding = false; | |
| $(".frame-right").hide(); | |
| $(".frame-loading:visible").removeClass("frame-loading") | |
| } | |
| } | |
| if (!($("#slider").length == 0 || !GitHub.shouldSlide)) if (!navigator.userAgent.match(/(iPod|iPhone|iPad)/)) { |
Original protocol (IRCv2): [RFC 1459][rfc1459]
Later updated by [RFC 2810][rfc2810], [RFC 2811][rfc2811], [RFC 2812][rfc2812], [RFC 2813][rfc2813], but few servers follow these completely. IRCnet is probably the most complete implementation.
| #!/bin/bash | |
| # | |
| # IRC notification post-receive hook. | |
| # Based on https://wiki.icinga.org/display/community/GIT+Commit+Bot | |
| # | |
| # Author: Mikael Fridh <[email protected]> | |
| # | |
| # This script pulls out the commit information and sends it to | |
| # the Notify plugin in supybot via localhost 5050. | |
| # |
Grab ffmpeg from https://www.ffmpeg.org/download.html
It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.
The most trivial operation would be converting gifs:
ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
-crf values can go from 4 to 63. Lower values mean better quality.-b:v is the maximum allowed bitrate. Higher means better quality.