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/perl | |
# by Michael Peternell | |
# Created: 23. Okt. 2012 | |
# Version 0.2 | |
use strict; | |
use Cwd qw(abs_path); | |
#use Getopt::Long; |
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/perl | |
# by Michael Peternell | |
# Created: 2013 | |
# Last modified: 2013 | |
# Search and replace on a whole directory. | |
# filenames are also searched and replaced. | |
# recursive. | |
# (Git files are excluded from the search. (when filename contains ".git")) |
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/perl | |
#by Michael Peternell | |
#Created: 2014-May-30 | |
# this fixes the broken open-cobol package on macports on OSX 10.8+ | |
# this is a dirty hack, use at your own risk. | |
# see also: | |
# https://sourceforge.net/p/open-cobol/discussion/help/thread/e1b4af35/ | |
use strict; |
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/bash | |
# Created: 2014-May-29 | |
# by Michael Peternell ( michael dot peternell at gmx dot at ) | |
# License: you may use it if you promise to never ever sue me for anything | |
# anytime, even if this script causes your computer to explode ;) | |
# This test case succeeds (returns 0) if the GNU Cobol compiler (cobc) is | |
# installed and if it can compile a simple hello world program |
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
/// sets the status bar text color. returns YES on success. currently, this only | |
/// works in iOS 7. It uses undocumented, inofficial APIs. | |
BOOL setStatusBarColor(UIColor *color) | |
{ | |
id statusBarWindow = [[UIApplication sharedApplication] valueForKey:@"statusBarWindow"]; | |
id statusBar = [statusBarWindow valueForKey:@"statusBar"]; | |
SEL setForegroundColor_sel = NSSelectorFromString(@"setForegroundColor:"); | |
if([statusBar respondsToSelector:setForegroundColor_sel]) { | |
// iOS 7+ |
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
# Generate all icon files from Icon_1024.png | |
#smaller app store icon | |
sips --resampleWidth 512 Icon_1024.png --out Icon_512.png | |
#iphone icons | |
sips --resampleWidth 114 Icon_1024.png --out Icon\@2x.png | |
sips --resampleWidth 57 Icon_1024.png --out Icon.png | |
#ipad icons |