Skip to content

Instantly share code, notes, and snippets.

View katopz's full-sized avatar
🦀
Rust me if you can

Todsaporn Banjerdkit katopz

🦀
Rust me if you can
View GitHub Profile
@derencius
derencius / xcode.rb
Created March 10, 2011 03:05
Download Xcode using wget. Useful for slow or intermittent connections. it uses wget and mechanize.
require 'rubygems'
require 'mechanize'
if ARGV.size < 3
puts %q{Usage: ruby xcode.rb USERNAME PASSWORD "DOWNLOAD_URL" [WGET_PARAMS]}
puts %q{Example: ruby xcode.rb [email protected] 123456 "https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg" }
exit
end
a = Mechanize.new { |agent|
@pklaus
pklaus / clearRAM.sh
Last active September 27, 2025 02:50
A Script to Clear Cached RAM on Linux
#!/bin/bash
## Bash Script to clear cached memory on (Ubuntu/Debian) Linux
## By Philipp Klaus
## see <http://blog.philippklaus.de/2011/02/clear-cached-memory-on-ubuntu/>
if [ "$(whoami)" != "root" ]
then
echo "You have to run this script as Superuser!"
exit 1
fi
@epologee
epologee / Signal.h
Created January 24, 2011 19:13
Simple Objective-C take on Robert Penner's Signals-AS3
//
// Signal.h
//
// Created by Eric-Paul Lecluse on 22-01-11.
// Copyright 2011 epologee. All rights reserved.
//
// This class was actually inspired and named by the brilliant work of Robert Penner & friends
// with the ActionScript 3.0 library called Signals: https://github.com/robertpenner/as3-signals
// It's not even close to a port, but it meets the demands of my current project.