🚙

💨 💨 💨

×

  • Categories

  • Archives

  • Tags

  • About

SSR server

Posted on 02-14-2019 | In Misc

更多好用的一键脚本请转 https://github.com/ToyoDAdoubi/doubi

ssr.sh

  • 脚本说明: ShadowsocksR 一键安装管理脚本,支持单端口/多端口切换和管理
  • 系统支持: CentOS6+ / Debian6+ / Ubuntu14+
  • 使用方法: https://doub.io/ss-jc42/
  • 项目地址: https://github.com/ToyoDAdoubiBackup/shadowsocksr

. . .

一些脚本小工具

Posted on 11-17-2018 | In Misc

可以把当前脚本目录下的gif转为mp4

脚本会递归目录的子目录

import moviepy.editor as mp
# vfc = mp.VideoFileClip("binary_tree_preorder_traversal.gif")
# vfc.write_videofile("binary_tree_preorder_traversal.mp4")

# vfc = mp.VideoFileClip(".\\mp/binary_tree_preorder_traversal.gif")
# vfc.write_videofile(".\\mp/binary_tree_preorder_traversal1231.mp4")

import os

def getfilelist(rlist,path, ex_filter):
for dir,folder,file in os.walk(path):
for i in file:
if ex_filter not in i:
continue
t = "%s/%s"%(dir,i)
rlist.append(t)

all_gif_path = []
getfilelist(all_gif_path, ".", ".gif")
print all_gif_path

for _gif_path in all_gif_path:
vfc = mp.VideoFileClip(_gif_path)
vfc.write_videofile(_gif_path.replace(".gif", ".mp4"))

1…456789101112131415161718192021222324…37
Mike

Mike

🚙 🚗 💨 💨 If you want to create a blog like this, just follow my open-source project, "hexo-theme-neo", click the GitHub button below and check it out ^_^ . It is recommended to use Chrome, Safari, or Edge to read this blog since this blog was developed on Edge (Chromium kernel version) and tested on Safari.

11 categories
291 posts
111 tags
about
GitHub Spotify
© 2013 - 2025 Mike