-
Go to Steam Licenses List and login your account.
-
Use browser javascript console (such as F12 on Chrome/Firefox)
-
Execute javascript code, after console display
Object {readyState: 1}
jQuery.ajax( { type:'POST',
dataType:'text',
var cv = document.getElementById('cv'); | |
var c = cv.getContext('2d'); | |
var txtDiv = document.getElementById('txt'); | |
var fileBtn = document.getElementById("up-button"); | |
var img = new Image(); | |
img.src = 'a.jpg'; | |
img.onload = init; // 图片加载完开始转换 | |
fileBtn.onchange = getImg; | |
// 根据灰度生成相应字符 |
# /etc/nginx/sites-available/fanfou.shellex.info | |
# 这儿假设的域名是 fanfou.shellex.info | |
# 请替换为实际的域名 | |
server { | |
resolver 8.8.8.8; | |
listen 443; | |
server_name fanfou.shellex.info; | |
ssl on; |
in CPP------------------ | |
unsigned int CPixelBlueSkyWhiteSun::CalculatePixel(unsigned int x, unsigned int y) | |
{ unsigned int red = 0xffff0000; | |
unsigned int white = 0xffffffff; | |
unsigned int blue = 0xff0000ff; | |
float w = m_width*0.5f; | |
float h = m_height*0.5f; | |
if ((float)x > w || (float)y > h) | |
{ | |
return red; |
#!/bin/bash | |
# Find out current screen width and hight | |
_COLUMNS=$(tput cols) | |
# Set default message if ( input not provided | |
_MESSAGE=" FBI Warining " | |
# Calculate x and y coordinates so that we can display $MESSAGE | |
# centered in the screen | |
y=$(( ( $_COLUMNS - ${#_MESSAGE} ) / 2 )) | |
spaces=$(printf "%-${y}s" " ") | |
# Alright display message stored in $_MESSAGE |
-NORESTRICTIONS |
Go to Steam Licenses List and login your account.
Use browser javascript console (such as F12 on Chrome/Firefox)
Execute javascript code, after console display Object {readyState: 1}
jQuery.ajax(
{
type:'POST',
dataType:'text',
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import subprocess | |
import re | |
ntfs_pattern = re.compile(r'File System Personality: NTFS') | |
ntfs_device_node = re.compile(r'.*Device Node:.*') | |
device_dict = {} |
[Proxy] | |
WIFI = direct, interface=en2 | |
VPN = direct, interface=utun0 | |
[Rule] | |
DOMAIN-SUFFIX,yach.me,WIFI | |
FINAL,VPN |
good, 你已经有了一个自己的shadowsocks代理了,现在想要把这个代理公布出去给所有人分享。 | |
但是没有两个小时,代理就没法使用了,为什么?因为你需要额外注意以下事项(以下步骤需要比较高的linux技能) | |
本文只关注于确保shadowsocks服务还“活着”,如果你希望让其跑得更快,请参考 | |
https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks | |
1、 shadowsocks的timeout设置 | |
超时时间越长,连接被保持得也就越长,导致并发的tcp的连接数也就越多。对于公共代理,这个值应该调整得小一些。推荐60秒。 | |
2、 检查操作系统的各种限制 | |
对于openvz的vps,特别需要检查一下 |
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
This solution fixes the error caused by trying to run npm update npm -g
. Once you're finished, you also won't need to use sudo
to install npm modules globally.
Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.