Debian
cd /tmp
# 下载源码
git clone https://github.com/shadowsocks/shadowsocks-libev.git
# 开始编译
cd shadowsocks-libev
./autogen.sh
./configure --prefix=/usr && make
make install
// Photoshop Script to Create iPhone Icons from iTunesArtwork | |
// | |
// WARNING!!! In the rare case that there are name collisions, this script will | |
// overwrite (delete perminently) files in the same folder in which the selected | |
// iTunesArtwork file is located. Therefore, to be safe, before running the | |
// script, it's best to make sure the selected iTuensArtwork file is the only | |
// file in its containing folder. | |
// | |
// Copyright (c) 2010 Matt Di Pasquale | |
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com |
#!/bin/bash | |
# This script need ImageMagick | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
for file in *.png | |
do | |
echo "trim: $file" | |
convert $file -trim $file | |
done |
Debian
cd /tmp
# 下载源码
git clone https://github.com/shadowsocks/shadowsocks-libev.git
# 开始编译
cd shadowsocks-libev
./autogen.sh
./configure --prefix=/usr && make
make install
// 1. open DownloadMaster in chrome | |
// 2. use the code in chrome console | |
urls = ["", ""] //urls array | |
addDownload = function(url) { | |
showPanel(); | |
document.getElementById("HTTP_usb_dm_url").value = url; | |
dm_add_status(); | |
} |
Prerequisites : the letsencrypt CLI tool
This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.
You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge
.
Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.
I redirect all HTTP requests on HTTPS, so my nginx config looks like :
server {
I hereby claim:
To claim this, I am signing this object:
// My version of pimpl ([email protected]) | |
// See http://en.cppreference.com/w/cpp/language/pimpl | |
#include <iostream> | |
// interface (widget.h) | |
class widget { | |
struct impl; | |
public: | |
static widget* create(int); // replacement of new |
/* ======================================================================== | |
$File: tools/ctime/ctime.c $ | |
$Date: 2016/05/08 04:16:55PM $ | |
$Revision: 7 $ | |
$Creator: Casey Muratori $ | |
$Notice: | |
The author of this software MAKES NO WARRANTY as to the RELIABILITY, | |
SUITABILITY, or USABILITY of this software. USE IT AT YOUR OWN RISK. |
// #Warning! You Should Use this Code Carefully, and As Your Own Risk. | |
package main | |
import ( | |
"fmt" | |
"net/url" | |
"strings" | |
) | |
/* | |
After hours searching, I can't find any method can get the result exact as the JS encodeURIComponent function. |
#!/bin/bash | |
NAME=Adam | |
TESTDATE=`date "+%B %e, %Y"` | |
TESTTIME=`date "+%H:%M:%S"` | |
auto_init() { | |
runTest | |
} | |
runTest() { |