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
// Zoom script | |
set do_zoom_on "ut_zoomin" | |
set do_zoom_off "ut_zoomreset" | |
bind MOUSE2 "+vstr do_zoom_on do_zoom_off" |
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
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function() { | |
$('#example').dataTable( { | |
"bServerSide":false, | |
"bProcessing":true, | |
"sAjaxDataProp": "feed.entry", | |
"sAjaxSource": "https://spreadsheets.google.com/feeds/list/0AqTGLmDhGMFSdHYzUWhZaFdmdXZRLXdLWDBMVHk4c1E/od6/public/values?alt=json", | |
"aoColumns": [ | |
{ "mDataProp": "gsx$name.$t" }, | |
{ "mDataProp": "gsx$proficiency.$t" }, |
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 | |
# Dependencies: fdupes | |
# | |
# This is a script I made to download all images in | |
# an imgur album. May need to be changed in the future. | |
# Example: ./imgurAlbumDownload.sh 3BBMp j6dac AZHdc | |
INPUT="$@" | |
REMOVEDUPES=true |
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
server { | |
listen 80; | |
server_name www.myserver.com myserver.com; | |
root /home/public_html/Prosper202; | |
index index.php index.html index.htm; | |
access_log /home/public_html/Prosper202/log/access.log; | |
error_log /home/public_html/Prosper202/log/error.log; | |
} |
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
# application.py | |
app = Flask(__name__, instance_relative_config=True) | |
app.config.from_pyfile('application.cfg', silent=False) | |
@app.route('/') | |
def voltaire(): | |
NUMSERVERS = len(MCSERVERS) | |
return render_template('index', SITE_TITLE=SITE_TITLE, MCSERVERS=MCSERVERS, NUMSERVERS=NUMSERVERS) | |
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
server { | |
listen 80; | |
server_name ; | |
root /srv/www/anchor; | |
index index.php index.html; | |
try_files $uri $uri/ /index.php; | |
autoindex off; |
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
server { | |
listen 80; | |
server_name cloud.sjchen.net; | |
return 301 https://$server_name$request_uri; # enforce https | |
} | |
server { | |
server_name cloud.sjchen.net; | |
root /srv/owncloud; |
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
>>> huh = [x for x in huh if x != 0] | |
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 10, 11, 11, 11, 12, 13, 13, 14, 14, 14, 15, 16, 16, 19, 50] | |
>>> numpy.percentile(huh,25) | |
1.0 | |
>>> numpy.percentile(huh,50) | |
2.0 | |
>>> numpy.percentile(huh,75) | |
5.0 | |
>>> numpy.percentile(huh,100) | |
50 |
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
====================================================================== | |
ERROR: test_create_node_password_auth (libcloud.test.compute.test_linode.LinodeTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jchen/git/cloudapi/libcloud/libcloud/test/compute/test_linode.py", line 66, in test_create_node_password_auth | |
auth=NodeAuthPassword("test123")) | |
File "/Users/jchen/git/cloudapi/libcloud/libcloud/compute/drivers/linode.py", line 375, in create_node | |
nodes = self._to_nodes(data) | |
File "/Users/jchen/git/cloudapi/libcloud/libcloud/compute/drivers/linode.py", line 523, in _to_nodes | |
which = nodes[lid].public_ips if ip["ISPUBLIC"] == 1 else\ |
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
{ | |
"ERRORARRAY": [ | |
{ | |
"ERRORCODE": 5, | |
"ERRORMESSAGE": "Object not found" | |
} | |
], | |
"DATA": {}, | |
"ACTION": "domain.resource.list" | |
} |
OlderNewer