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
call ((NSWindow *)[(NSArray *)[[NSApplication sharedApplication] windows] lastObject]).collectionBehavior = 1<<7|1<<8|1<<11 |
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
// | |
// UILabel+JumpingDots.swift | |
// JumpingDots | |
// | |
// Copyright (c) 2016 Arkadiusz Holko. All rights reserved. | |
// | |
import UIKit | |
import ObjectiveC |
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 | |
# Remux MP4/H264 videos (mkv, avi, etc.) to m4v. | |
TMPFILE = "/tmp/ffprobe_out.txt" | |
VIDEO_CONTAINER = ["mkv", "f4v", "avi", "divx", "ts"] | |
VCODECS = ["mpeg4", "h264"] | |
ACODECS = ["aac"] | |
if (`which ffmpeg` == "") | |
puts "You need ffmpeg to use this command." |
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 | |
# Download torrents from SOME WEBSITE. | |
require "rubygems" | |
require "open-uri" | |
require "hpricot" | |
require "uri" | |
require "colorize" | |
require 'uri' | |
require 'net/http' |
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
# | |
# Run as root | |
# $ bash <(curl -s https://raw.github.com/gist/1631411) | |
# | |
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential git-core curl \ | |
libssl-dev \ |
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
// | |
// NSData+hex.h | |
// NSData+hex | |
// | |
// Created by Alex Nichol on 3/29/11. | |
// Copyright 2011 Jitsik. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |