Skip to content

Instantly share code, notes, and snippets.

View mackey0908's full-sized avatar

mackey mackey0908

  • Keio University
  • Yokohama, Japan
View GitHub Profile
@mackey0908
mackey0908 / gtk-warning
Created November 18, 2015 22:28
Gtk warning
$ git pull origin master
(process:6781): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(gnome-ssh-askpass:6781): Gtk-WARNING **: cannot open display:
@mackey0908
mackey0908 / wget-proxyftp2
Last active August 29, 2015 14:25
プロキシを通して wet (FTP) する際の wgetrc の設定
# If you do not want to use proxy at all, set this to off.
use_proxy = on
http_proxy = 10.58.59.34:3128
ftp_proxy = 10.58.59.34:3128 //追加
@mackey0908
mackey0908 / wget-proxyftp
Last active August 29, 2015 14:25
プロキシを通して wget (FTP) する際のエラー
[root@localhost ~]# wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-2.4.2.tar.bz2
--2015-07-20 23:29:45-- ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-2.4.2.tar.bz2
=> “mpfr-2.4.2.tar.bz2.6”
Connecting to 10.58.59.34:3128... connected.
Logging in as anonymous ... //ここで止まってしまう
@mackey0908
mackey0908 / debug.h
Last active August 29, 2015 14:18
Syslog Debug for FUSE
#ifndef _DEBUG_H_
#define _DEBUG_H_
//Set DEBUG_LEVEL
#define DEBUG_LEVEL 3
//Definition of each DEBUG_LEVEL
#define DINFO 0
#define DERR 1
#define DMSG 2
@mackey0908
mackey0908 / wscript
Created March 18, 2015 20:18
waf-1.8系 wscript
def set_options(opt):
#opt.tool_options('compiler_cxx') //これが古い
opt.load('compiler_cxx')
def configure(conf):
#conf.check_tool('compiler_cxx') //これが古い
conf.load('compiler_cxx')
def build(bld):
#bld(features = 'cxx cprogram', //これが古い