Thursday, July 30, 2020
[Resources] JS files in ajax.googleapis.com
markdown
If you lived in China, you may noticed, if you access some site that included any scripts in 'ajax.googleapis.com', it may loading so slow or can't load at all.
That's because GFW, ajax.googleapis.com was been 'blocked'. So I downloaded 'all' js files(I mean, not all of them, the scripts listed in [https://developers.google.com/speed/libraries](https://developers.google.com/speed/libraries)).
You can download at my github. [Portal](https://raw.githubusercontent.com/orange2008/postitem/master/gajax-Postitem/ajax_googleapis_com.zip)
Tuesday, July 21, 2020
F**k of BaiduNetDisk(Episode 2)!!! ----- Download BaiduNetDisk's files via DuPan and IDM
markdown
I believe everyone has read my "F**k off BaiduNetDisk" article last time, and some people reported that it can't be used anymore, so I made a tool "DuPan" by myself, which is very fast with IDM. Then I will teach you how to use it.
1. Download 'DuPan.exe'[Portal](https://raw.githubusercontent.com/orange2008/postitem/master/fk-off-bdy-Postitem/DuPan.exe)
2. Download Internet Download Manager(Pirate, if you already had one, ignore this.)[Portal](https://raw.githubusercontent.com/orange2008/postitem/master/fk-off-bdy-Postitem/idm-pirate.7z)
3. Extract idm-pirate.7z and Run 'IDMan.exe'.
4. Share your BaiduNetDisk folder and you will get a link such as "链接: https://pan.baidu.com/s/1cHczIzPl9qeAxswjXM4-fg 提取码: fq2k"
5. Paste it into DuPan.exe, it will take a moment to get the direct link, then we can download it via IDM.
6. Right click it and click '复制下载地址', then paste it into IDM.
7. Then we can start download. The speed is unbelievable.
That's all.
Google TEAM Drive generate Service Accounts
markdown
I believe everyone has read the article I wrote last time about transferring files between Google Cloud Disk team disks. The website that created SA cannot be opened, so I will show you how to create it here.[Last article](/2020/07/transfer-data-between-google-team-drive.html)
1. Go and download Python 3 [Portal](https://www.python.org/ftp/python/3.8.5/python-3.8.5.exe).
2. Go and download rclone(Windows, read official document to know how to install on linux [Portal](https://rclone.org/downloads/)) [Portal](https://downloads.rclone.org/v1.52.2/rclone-v1.52.2-windows-amd64.zip).
3. Go and download AutoRclone [Portal](https://github.com/xyou365/AutoRclone/archive/master.zip).
4. Go to that folder, and execute command:
```shell
pip install -r requirements.txt
```
If you are Linux, use this:
```shell
pip3 install -r requirements.txt
```
5. Go and Enable Drive API.[Portal](https://developers.google.com/drive/api/v3/quickstart/python), use whatever name, Desktop app, then download the file, it should named __'credentials.json'__
6. Create Service Account.
Upload __credentials.json__ to your AutoRclone folder.
Then divided into three cases
If you haven't created a project before, just run
```shell
python gen_sa_accounts.py --quick-setup 5
```
Create 6 projects (Project 0 to Project 5)
Turn on related services
Create 600 service accounts (6 projects, 100 for each project)
Download the authorization files of 600 service accounts to the accounts folder
If you already have many projects, now you need to create a new project and create service accounts in the new project, run directly
```shell
python gen_sa_accounts.py --quick-setup 2 --new-only
```
Create 2 additional projects (Project N+1 to Project N+2)
Turn on related services
Create 200 service accounts (2 projects, 100 for each project)
Download the authorization file of 200 service accounts to the accounts folder
If you want to use an existing project to create service accounts (do not create a new project), just run
```shell
python gen_sa_accounts.py --quick-setup -1
```
Note that this will overwrite the existing service accounts
After successful completion, there will be many json files in the accounts folder under the AutoRclone file.
Then you need to associate the SA file to your account.
You need to know your team disk ID. If you don’t know it, open your team disk and check the string of characters after "folders/" in the address bar. The team disk ID will look like this: 0AIly3TxVb3jlUk9PVA
Then enter the following command:
```shell
python add_to_team_drive.py --credentials credentials.json --drive-id DRIVE-ID
```
Please replace DRIVE-ID with your DRIVE ID
The final command will look like this:
```shell
python add_to_team_drive.py --credentials credentials.json --drive-id 0AIly3TxVb3jlUk9PVA
```
That's all, your SA should be configured.
Transfer data between Google TEAM Drive
markdown
I believe everyone has used the Google Cloud **Team Disk**. Everyone will inevitably dump some files. However, Google does not provide a transfer service, and can only create a link on its own. If you cancel the sharing, we will not have it. If the files are large and downloading them one by one is obviously unrealistic, then today I will teach you to transfer them.
## Tools and raw materials
### Google account
### A computer
### A healthy Internet Connection (If you are in a blocked area, you know what I am talking about)
## Tutorial
1. Open [Colaboratory](https://colab.research.google.com) and login to your Google account.
2. Open [Colab Script](https://colab.research.google.com/drive/1i1W9nAzgiDtfA_rmTBcpMpwxVUhwgLsq)
3. **Don’t execute commands here, everyone can see them!** You should click "File" and click "Save a copy in Drive".
4. Now it's time to install the runtime!Click the play button.
5. It’s time to copy our SA (Service Account) to **In a folder called accounts in my Drive**, why use SA, because Google has a limit, each account can not copy more than 750G files per day, so we use multiple users To circumvent this limitation. And this script only supports SA account replication. If you don’t know how to create and use SA, then go to Google or open [This website](/2020/07/google-team-drive-generate-service.html) If you do not understand Chinese, then translate it. It should look like this if done.
6. Then we return to the colab page and click "SA账号配置"'s play button. You should authenticate your Google account and get the authentication code and paste it to the input prompt.
It may take a moment, when you see "SA配置完成", it means your SA is configured.
7. It's time to copy some stuff. Click this button. Put your file ID(the string after https:/drive.google.com/drive/folders/) in "文件ID", put your Destination ID(the string after https:/drive.google.com/drive/folders/) in "目标ID". Then the program should start copy.

8. When you see "拷贝完成", it means your copy is done, you can go and check your files!

## End
This is all, thanks for watching! I hope this article can help you something.
F**k off BaiduNetDisk!!! ----- Download BaiduNetDisk's files via no speed limit without paying for membership.
markdown
# At first
**If you are in China, you must have used Baidu Web Disk, and if you do not open the membership is very slow, only a few KB per second. So today I ’m going to teach everyone to download without speed limit.**
# Before
Before this, you should go and see our another topic [Portal](/2020/07/the-worlds-fastest-download-tools-aria2.html).
Download Aria2Tools, you can find the download link in another topic.
A Windows PC.
Internet Connection.
Baiduyun account and the file(s) you wanted to download.
# Operation
## Step 1
Download the customize chrome browser, [Download here](http://www.mediafire.com/file/b7mlapm46usc4ee/Chrome_%25E6%2587%2592%25E4%25BA%25BA%25E7%2589%2588_x86_64.7z/file)
## Step 2
When you downloaded the file, extract to a folder.

## Step 3
Run chrome.exe
## Step 4
If you see this prompt, click enable.

## Step 5
Go to [https://pan.baidu.com](https://pan.baidu.com). And login your account.
## Step 6

If you see this thing, please scan this QR code using WeChat, and get the code. If you don't have any WeChat account, you can just click "确定", it will crash, then you can skip it.
## Step 7
Now we can download files now.
Select the file(s) you need to download (DON'T SELECT FOLDER!!!)


Before click this button, make sure your aria2tools server is online.
## Step 8
Please allow the permission.
Click "Always Allow"
## Step 9
Then you can open the aria2tools console.
The speed will over the sky!!!
If the speed still on several kilobyte per second, make sure you are not banned, if you have been banned, the account will be unban under 7 days.
# End
Thanks for seeing! Hope I can help you!
Convert media files via ffmpeg
markdown
I think everyone will have some media files.
But sometimes the format may be wrong. Today I will teach everyone to convert.
First, you have to download [ffmpeg](https://ffmpeg.org/download.html). This software supports all major operating systems (Windows 10 is the best for Windows, this tutorial is for Windows 10), and the commands are the same.
After downloading, extract the 3 exe files in the “bin” folder to any position. Non-utf-8 characters cannot appear in the middle of the position. Chinese does not support it. After decompressing, right click on the “This PC” icon, click on “Properties”, then click on “Advanced system settings”, in the “Advanced” column, click on the “Environment Variables” in the lower right corner, the user variable above Inside the “Path” create a new one, the content is the location of your 3 exe files, such as my D:\video, the content is D:\video.
Then open Command Prompt.
Enter
```shell
ffmpeg -i "Source File" "Destination File"
```
Hope can help you!
The world's fastest download tools ----- Aria2 Tools
markdown
Are you still suffering from the speed limit of downloading software?
Are you still paying for membership?
There are unlimited speed download tools here! Let me teach you how to use it!
First you need to go to download it.[Aria2Tools](https://raw.githubusercontent.com/orange2008/postitem/master/Aria2-Postitem/Aria2_Tools.zip)
Next, extract it into a folder. Just likes this.

Then, run _aria2c_Run.exe_. You will see this icon in your taskbar.It called: aria-ng-0.3.0 Server v1.0

Your web browser will open. URL is localhost:8086

Now, the RPC server was done! Now we should configure the properties.
Visit the URL: http://localhost:8086/#!/settings/aria2/basic
And config the download path.
EVERY TIME YOU START THE SERVER,THE CONFIG WILL CLEAR!!!
My path will D:\srsto
You should config likes this:

Then you can config everything.
You can download something using aria2, and the speed.....

I am the home network, using 100Mbps network, it even can download at full speed.
If you have a server, you'll see the user-agent is Transmission, so, you guys know what can you do.
This program can download http/https/ftp/sftp/ftps/magnet/bittorrent
But very unfortunately, it didn't support ed2k, but ed2k was already out of date, so it doesn't a huge problem.
Hope can help you!
Convert NCM to MP3/FLAC
markdown
I believe that everyone who reads this article must have filled the Netease Cloud Music VIP. Otherwise you won't get the ncm file, and you won't be reading this article.
Some music you have filled up vip and download it will be the format of NetEase cloud music, which is the "ncm" format. It is useless after the vip expires, so today I will teach you to convert ncm files to flac or similar. The format.
First go to my website to download a tool.[Portal](https://raw.githubusercontent.com/orange2008/postitem/master/NCM-Convert-Postitem/main.exe)
Make sure your operating system is Microsoft Windows, this program can only run on Windows 7 or newer systems.
Enter the following instructions:
```
main.exe "NCM file name"
```
Then the program will automatically generate the file.
You can also drag your NCM file**s** to main.exe(I mean, drag your ncm files to main.exe, until Windows says "Open with main.exe"), it will convert every NCM file.

This is all, I hope to help everyone, thank you.
Minecraft Server on Raspberry Pi
markdown
I think there are some people want to build a _Minecraft Server_ And play with your friend.
Now i will teach you to build a _MC Server_ In your _Raspberry Pi 3B+_
**Install Lib**:
```shell
$ sudo apt-get update
$ sudo apt-get install default-jre default-jdk
$ sudo apt-get install wget gcc g++ zip tar unzip
$ cd /
$ cd home
$ cd pi
$ mkdir Minecraft
$ cd Minecraft
$ echo "IP Config" >> ip
$ sudo ifconfig > ip
```
**Start MC Server**
```shell
$ wget --no-check-certificate https://raw.githubusercontent.com/orange2008/postitem/master/MineCraft-Postitem/eula.txt
```
Please replace your version in {Versions}
```shell
$$ wget --no-check-certificate https://s3.amazonaws.com/Minecraft.Download/versions/ {Versions} /minecraft_server_{Versions}.jar
```
If you don't want to use original server, you can just download whatever core you want, and put it into this folder.
I use 1.12.2.
```shell
$ wget --no-check-certificate https://s3.amazonaws.com/Minecraft.Download/versions/1.12.2/minecraft_server_1.12.2.jar
$ mv *.jar server.jar
```
```shell
$ echo "java -Xms{Minimal RAM} -Xmx{Maximum RAM} -jar server.jar nogui" >> start
```
Please replace the minimal ram in {Minimal RAM}, replace the maximum ram in {Maximum RAM}. I will use 1GB
```shell
$ echo "java -Xms1G -Xmx1G -jar server.jar nogui" >> start
```
I recommended you to set a same value.Because if all same, your memory will suspend and not __jump__ anymore.
```shell
$ sudo chmod 777 start
$ sudo chmod +x start
$ sudo ./start
$openjdkCONSOLE $ stop
$ rm -rf server.properties
$ wget --no-check-certificate https://raw.githubusercontent.com/orange2008/postitem/master/MineCraft-Postitem/server.properties
$ sudo ./start
```
Bam, your mc server is done and launched!
The properties file is download from my website, i pre-configured, if you need to change more, you can google or bing.
Markdown Tags
markdown
Text can be **bold**, _italic_, ~~strikethrough~~ or `keyword`.
[Link to another page](another-page).
There should be whitespace between paragraphs.
There should be whitespace between paragraphs. We recommend including a README, or a file with information about your project.
# [](#header-1)Header 1
This is a normal paragraph following a header. GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.
## [](#header-2)Header 2
> This is a blockquote following a header.
>
> When something is important enough, you do it even if the odds are not in your favor.
### [](#header-3)Header 3
```js
// Javascript code with syntax highlighting.
var fun = function lang(l) {
dateformat.i18n = require('./lang/' + l)
return true;
}
```
```ruby
# Ruby code with syntax highlighting
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
```
#### [](#header-4)Header 4
* This is an unordered list following a header.
* This is an unordered list following a header.
* This is an unordered list following a header.
##### [](#header-5)Header 5
1. This is an ordered list following a header.
2. This is an ordered list following a header.
3. This is an ordered list following a header.
###### [](#header-6)Header 6
| head1 | head two | three |
|:-------------|:------------------|:------|
| ok | good swedish fish | nice |
| out of stock | good and plenty | nice |
| ok | good `oreos` | hmm |
| ok | good `zoute` drop | yumm |
### There's a horizontal rule below this.
* * *
### Here is an unordered list:
* Item foo
* Item bar
* Item baz
* Item zip
### And an ordered list:
1. Item one
1. Item two
1. Item three
1. Item four
### And a nested list:
- level 1 item
- level 2 item
- level 2 item
- level 3 item
- level 3 item
- level 1 item
- level 2 item
- level 2 item
- level 2 item
- level 1 item
- level 2 item
- level 2 item
- level 1 item
### Small image

### Large image

### Definition lists can be used with HTML syntax.
- Name
- Godzilla
- Born
- 1952
- Birthplace
- Japan
- Color
- Green
Subscribe to:
Comments (Atom)
Digital Sign your EXE, DLL or CAB.
markdown When you download an executable file from a **trusted website**, you will find that it has been digitally signed. However, digital...
-
markdown I believe that everyone who reads this article must have filled the Netease Cloud Music VIP. Otherwise you won't get the ncm f...
-
markdown I believe everyone has read the article I wrote last time about transferring files between Google Cloud Disk team disks. The websi...
-
markdown If you lived in China, you may noticed, if you access some site that included any scripts in 'ajax.googleapis.com', it may...