There are several ways to clone a repository from github. Similar from other providers, such as bitbucket, gitlab, etc.
https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols
Mostly, we use
- http
- ssh
There are several ways to clone a repository from github. Similar from other providers, such as bitbucket, gitlab, etc.
https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols
Mostly, we use
# wodim, 05/11/2018 -- public domain | |
# extracts an AR file from Midtown Madness 2 into the target directory | |
from math import ceil | |
import os | |
import sys | |
from struct import unpack | |
import zlib |
.editor-group-watermark > .letterpress{ | |
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode.png") !important; | |
opacity: .75; | |
} |
This service will use the same remote name you specified when using rclone config create
. If you haven't done that yet, do so now.
Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote>
by default.
mkdir ~/mnt/dropbox
This will guide you through setting up a replica set in a docker environment using.
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!
How to convert a video file to an animated GIF on Linux: | |
Install required software: | |
apt-get install ffmpeg gifsicle imagemagick: | |
Convert the video file to a series of small images: | |
mkdir /tmp/gif/ | |
ffmpeg -i YOURVIDEOFILE.mp4 -r 10 /tmp/gif/out%04d.gif | |
Combine these images together into a GIF animation: | |
gifsicle –delay=10 –loop /tmp/gif/*.gif > animation.gif | |
Optimise the GIF animation so the file size is smaller: |
# -*- coding: utf-8 -*- | |
import requests | |
import hashlib | |
import re | |
username = '' ###账号### | |
password = ''###密码### | |
UA = "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) \ | |
Chrome/27.0.1453.116 Safari/537.36" | |
headers = { |
<?php | |
/* | |
* dl-file.php | |
* | |
* Protect uploaded files with login. | |
* | |
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in | |
* | |
* @author hakre <http://hakre.wordpress.com/> | |
* @license GPL-3.0+ |