Here's my experience of installing the NVIDIA CUDA kit 8.0 on a fresh install of Ubuntu Desktop 16.04.3 LTS.
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 | |
# | |
# simple script to choose the BEST shadowsocks server from serveral ips | |
# by wq.yang@2015-10-20 | |
# | |
TEST_RESOURCES="https://www.google.co.jp/webhp?hl=en&gws_rd=cr&ei=PEZHVoWJOeS9mgXD2ro4#hl=en&q=google \ | |
https://twitter.com/ \ | |
https://www.facebook.com/?_rdr=p | |
" | |
LOG_FILE="/tmp/ss.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
package bilibili.tv; | |
import java.awt.Color; | |
import java.awt.Font; | |
import java.awt.Graphics; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.PrintWriter; |
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 | |
# file: ping-shortest | |
# created by make-template :) | |
# vivi@2014-06-29_18:16:12 | |
ipfile=ips.txt | |
tmp=ping-ip-tmp.txt | |
while read IP; do | |
average=`ping -nq -w 1 -i 0.2 -c 3 $IP | grep rtt | cut -d '/' -f 5` | |
if [ "X$average" == "X" ]; then |
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 | |
# | |
# smiple script to manage goagent proxy | |
# | |
root=~/scripts | |
localroot=$root/goagent/local | |
log=$root/goagent.log | |
is_running(){ |
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
set fileencodings=gb18030,utf-8,default | |
set fileencoding=utf8 | |
set encoding=utf8 | |
set formatoptions+=m | |
set formatoptions+=B | |
" -------------------------------------------------------------------------------- | |
" configure editor with tabs and nice stuff... | |
" -------------------------------------------------------------------------------- |
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
; vivisidea's proxy site list | |
; Date: 1/20/2014 | |
#BEGIN | |
[wildcard] | |
; google sites related | |
*://*google.com* | |
*://*youtube.com/* | |
*://*gstatic.com/* |
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
#!/usr/bin/env python | |
# -*- encoding=utf-8 -*- | |
# | |
# convert files from encoding to another encoding | |
# | |
import os | |
directory = '.' | |
surfix='.txt' | |
fromenc='gbk' |
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 | |
# file ssh.proxy | |
# created by make-template :) | |
# vivi@2012-02-20_21:30:05 | |
# | |
# a simple script to connect ssh.proxy server at startup | |
# and handle the broken pipe error automatically | |
# | |
ROOT=$HOME/scripts/ssh.proxy |
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
/** 带有html文本的关键词高亮 */ | |
var hilight = function(input, word){ | |
var splits = split(input); | |
for(i = 0; i<splits.length; i++){ | |
if(splits[i][0] === '<' && splits[i][splits[i].length-1] ==='>') continue; | |
splits[i] = splits[i].replace(new RegExp(word, 'gi'), '<span class="hilight">'+word+'</span>'); | |
} | |
return splits.join(''); | |
} |
NewerOlder