打开论坛,按下F12
,运行以上代码。
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
class LinearRegression { | |
w: Mat; | |
constructor() { } | |
//x: M-by-N matrix. M data with N dimensions. Each row is an N-dim vector | |
//y: M-by-1 matrix | |
fit(x_: Mat, y_: Mat) : LinearRegression{ | |
let y = y_; | |
if (y_.rows != 1 && y_.cols == 1) {y = y_.T();} //check the dimension of y | |
var x = x_.resize(x_.rows, x_.cols + 1, 1); //expan x_ with one more column with 1 |
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
-- 只扫原生WS,不要太恐慌. | |
local stdnse = require "stdnse" | |
local http = require "http" | |
categories = { "default", "discovery", "safe" } | |
portrule = function(host, port) | |
return true | |
end |
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 requests | |
import json | |
import base64 | |
import sqlite3 | |
import zlib | |
import time | |
from datetime import datetime | |
from gql import gql, Client | |
from gql.transport.requests import RequestsHTTPTransport |
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
#include<cstdio> | |
#include<cstring> | |
#include<cstdlib> | |
#include<windows.h> | |
#include<conio.h> | |
#include<ctime> | |
using namespace std; | |
clock_t t1,t2; | |
int ti; | |
POINT pt; |
- Add this code to your
~/.bash_aliases
file.
function gdrive_download () {
CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://docs.google.com/uc?export=download&id=$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2
rm -rf /tmp/cookies.txt
}
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
@echo off | |
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
if '%errorlevel%' NEQ '0' ( | |
goto UACPrompt | |
) else ( goto gotAdmin ) | |
:UACPrompt | |
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" | |
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" | |
"%temp%\getadmin.vbs" | |
exit /B |
I hereby claim:
- I am zhiiker on github.
- I am zhiiker (https://keybase.io/zhiiker) on keybase.
- I have a public key ASDn98stR7K5nnpSLTtIoMFuNKQwXpXu85B2u25mrhXWIgo
To claim this, I am signing this object:
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 | |
set -e | |
# Put | |
# 1. CUDA installation script (cuda_*.run, see https://developer.nvidia.com/cuda-downloads) | |
# 2. cuDNN archive (cudnn-*.tgz, see https://developer.nvidia.com/rdp/cudnn-download) | |
# 3. Intel MKL archive (l_mkl_*.tgz, see https://software.intel.com/en-us/intel-mkl) | |
# under $HOME | |
# Also set INTEL_MKL_SN to Intel MKL's serial number (XXXX-XXXXXXXX) |
先把rclone的可执行文件复制到/usr/bin:
cp /root/rclone-v1.39-linux-amd64/rclone /usr/bin/rclone
新建一个rclone.service文件:
vi /usr/lib/systemd/system/rclone.service
写入:
NewerOlder