Skip to content

Instantly share code, notes, and snippets.

#include <unistd.h>
#include <stdio.h>
#include <string.h>
int main() {
char hostname[100] = {0};
int res = gethostname(hostname, sizeof(hostname));
printf("Old host name: %s. (Return %d)\n", hostname, res);
strcpy(hostname, "bambooshark.ics.cs.cmu.edu");
(*
* Finder Open iTerm Here - v1.0.2 - 4/14/2011
* http://benalman.com/
*
* Copyright (c) 2011 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*)
tell application "Finder"
@pystone
pystone / gist:2856454
Created June 2, 2012 03:49 — forked from zythum/gist:2848881
google收录的敏感词