Skip to content

Instantly share code, notes, and snippets.

View chg_hostname.c
#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");
View finder-open-iterm-here.scpt
(*
* 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 Jun 2, 2012 — forked from zythum/gist:2848881
google收录的敏感词
View gist:2856454