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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
NumpadIns::Numpad0 | |
NumpadEnd::Numpad1 | |
NumpadDown::Numpad2 | |
NumpadPgDn::Numpad3 | |
NumpadLeft::Numpad4 |
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
#include <stdlib.h> | |
#include <stdio.h> | |
int | |
main() | |
{int b=63 | |
,l,s,p;for( | |
int h=0;h<b/2 | |
+1;h++){l=h*2+1 | |
;s=(b-l)/2;for(int | |
i=0;i<s;i++) printf |
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
ffmpeg -f concat -i <(printf "file '$PWD/%s'\n" file/path/*.avi) -c copy output.avi |
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 | |
### BEGIN INIT INFO | |
# Provides: serviio | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 1 | |
# Short-Description: Serviio daemon | |
# Description: Serviio is a free media server. It allows you to stream your media files (music, video or images) to renderer devices (e.g. a TV set, Bluray player, games console or mobile phone) on your connected home network. | |
### END INIT INFO |
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
osascript -e 'tell application "Messages" to send "MESSAGE TEXT" to buddy "RECIPIENT_NUMBER_OR_EMAIL" of service "E:YOUR_ID_APPLE"' |
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'cgi' | |
if ARGV[0].nil? | |
puts "usage: #{$0} YOUTUBE_VIDEO_ID" | |
puts " sample: #{$0} wG6G4XBnvLQ" | |
exit | |
end |
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
2.0.0-p0 :001 > require 'gst' | |
=> true | |
2.0.0-p0 :002 > bin = Gst::ElementFactory.make('playbin') | |
NameError: uninitialized constant Gst::ElementFactory | |
from (irb):2 |
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
# simple preforking echo server in Ruby | |
require 'socket' | |
# Create a socket, bind it to localhost:4242, and start listening. | |
# Runs once in the parent; all forked children inherit the socket's | |
# file descriptor. | |
acceptor = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0) | |
address = Socket.pack_sockaddr_in(4242, 'localhost') | |
acceptor.bind(address) | |
acceptor.listen(10) |
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
#!/usr/bin/env ruby | |
require 'curses' | |
include Curses | |
init_screen | |
curs_set(frame = 0) | |
Thread.new { system "say -v Alex the rofl copter says #{'siff ' * 1000}" } |
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
# Written by Pioz. | |
# | |
# Deps: | |
# sudo apt-get install libgtk2.0-dev libgstreamer0.10-dev gstreamer0.10-plugins-base | |
# gem install gtk2 gstreamer | |
require 'gtk2' | |
require 'gst' | |
if ARGV.size != 1 |