Skip to content

Instantly share code, notes, and snippets.

@sole
sole / xcursor theme tutorial
Created September 9, 2010 12:34
A lightly edited version of the xcursor theme tutorial by the_One at http://kde-look.org/content/show.php?content=11428
<---TUTORIAL FOR CREATING XCURSOR THEMES.--->
<---By ThEOnE @ kde-look--->
<---My_foros@yahoo.com.ar-->
_______________________________________________________________________________________
| |
| First of all, let me tell you that everything I know I've learned it by inspecting |
| some xcursor themes like jaguarx, and others. |
@yamaya
yamaya / xcode-clang-vers
Last active May 11, 2024 08:14
Xcode clang version record
# Xcode 4.3.3
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.3.2
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
@jjgod
jjgod / CCacheMacNinja.md
Last active October 31, 2023 06:57
Using ccache for Mac builds

Introduction

ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching previous compilations and detecting when the same compilation is being done again. This often results in a significant speedup in common compilations, especially when switching between branches. This page is about using ccache on Mac with clang and ninja build system. If you want to use Xcode, please refer to the old CCacheMac page.

In order to use ccache with clang, you need to use the current git HEAD, since the most recent version (3.1.9) doesn't contain the patch needed for using chromium style plugin.

Installation

To install ccache with [homebrew](http://mxcl.

@liangqi
liangqi / Makefile.diff
Created April 26, 2013 18:12
The patch for Makefile in fairymax-4.8S.tar.gz, used by homebrew.
diff -u a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,8 @@
CC?=gcc
CFLAGS?= -O2 -s
-INI_F?=$(DESTDIR)/usr/share/games/fairymax/fmax.ini
-INI_Q?=$(DESTDIR)/usr/share/games/fairymax/qmax.ini
+INI_F?=$(DESTDIR)/share/games/fairymax/fmax.ini
@tualatrix
tualatrix / download_picasa_photos_and_upload_to_flickr.sh
Created January 8, 2014 14:29
Download photos from Google Picasa and upload to Flickr, the album name will be read from album_list.txt
#!/bin/bash
while read album
do
echo -e "Will download album $album"
google picasa get "$album" .
pushd "$album"
echo -e "Start to upload $album to Flickr"
find -type f|sort|xargs -I{} flickr_upload {}
popd
$ brew install octave
Warning: No developer tools installed.
You should install the Command Line Tools.
Run `xcode-select --install` to install them.
==> Installing dependencies for octave: lua, gmp, mpfr, libmpc, isl, cloog, gfortran, gnu-sed, texinfo, fftw, readline, arp
==> Installing octave dependency: lua
==> Downloading http://www.lua.org/ftp/lua-5.1.5.tar.gz
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
This file has been truncated, but you can view the full file.
阿爸 a1'ba4 18137
阿昌族 a1'chang1'zu2 50849
阿斗 a1'dou3 42632
阿飞 a1'fei1 48603
阿富汗 a1'fu4'han4 3461
阿訇 a1'hong1 34432
阿拉伯数字 a1'la1'bo2'shu4'zi4 35937
阿拉伯语 a1'la1'bo2'yu3 30476
阿妈 a1'ma1 16220
阿门 a1'men2 47913
@lamw
lamw / gist:487c9ecb2dc7d043eec8
Last active October 30, 2022 06:21
Automate silent installation of VMware Tools for Mac OS X
#!/bin/bash
# 1 = VMware Tools ISO is mounted from vSphere
# 2 = Download VMware Tools (assumes you can connect to internet)
INSTALL_METHOD=2
# Thanks to Rich Trouton for tip on Tools being available online
VMWARE_TOOLS_DOWNLOAD_URL=http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/7.1.2/2779224/packages/com.vmware.fusion.tools.darwin.zip.tar
# DO NOT MODIFY BEYOND HERE #
@lambdamusic
lambdamusic / define.py
Last active February 15, 2023 14:52
Access osx dictionary in python
#!/usr/bin/env python
"""
# Version
2021-08-31
# Tested on
Python 3.9
@nuomi1
nuomi1 / PrintBootCampESDInfo.swift
Last active May 16, 2024 01:17
macOS and BootCamp Latest
#!/usr/bin/env swift
//
// PrintBootCampESDInfo.swift
//
// Created by nuomi1 on 8/5/18.
// Copyright © 2018年 nuomi1. All rights reserved.
//
import Foundation