PKG_CONFIG_PATH=~/.pyenv/versions/3.6.5/lib/pkgconfig:~/.pyenv/versions/3.5.6/lib/pkgconfig: ./configure --prefix=/usr/local/pyflame
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
import java.lang.reflect.Method; | |
import java.util.ArrayList; | |
import java.util.List; | |
import net.sf.cglib.proxy.Enhancer; | |
import net.sf.cglib.proxy.MethodInterceptor; | |
import net.sf.cglib.proxy.MethodProxy; | |
public class CGLibProxySample { | |
@SuppressWarnings("unchecked") |
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
import getpass | |
import os | |
import threading | |
import time | |
from urllib.parse import urlparse | |
import zipfile | |
import numpy | |
try: | |
from PIL import Image |
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
<!-- For Syntax Highlighting --> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css"></link> | |
<script src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"></script> | |
<script> | |
function styleCode() { | |
if (typeof disableStyleCode != 'undefined') { return; } | |
var a = false; | |
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
nodes |
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 | |
free | |
sudo sync | |
echo 3 | sudo tee /proc/sys/vm/drop_caches | |
free |
Unisntalling rails command needs to uninstall railties, not only rails.
% gem uninstall railties -v 5.0.0.rc1
You have requested to uninstall the gem:
railties-5.0.0.rc1
coffee-rails-4.1.1 depends on railties (< 5.1.x, >= 4.0.0)
jquery-rails-4.1.1 depends on railties (>= 4.2.0)
CentOS
wget https://raw.github.com/ksauzz/s3curl/master/s3curl.pl
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
sudo cpanm YAML HTTP::Date Digest::HMAC_SHA1 URI::Escape
cpanminus https://github.com/miyagawa/cpanminus
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
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import java.io.Serializable; | |
import java.util.List; |
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
import com.basho.riak.client.IRiakClient; | |
import com.basho.riak.client.RiakFactory; | |
import com.basho.riak.client.bucket.Bucket; | |
import com.basho.riak.client.raw.config.Configuration; | |
import com.basho.riak.client.raw.http.HTTPClientConfig; | |
import com.basho.riak.client.raw.pbc.PBClientConfig; | |
public class RiakCounterSample { |
NewerOlder