This file contains hidden or 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
# pip install plexapi | |
import glob | |
import os | |
import re | |
import sys | |
from typing import List | |
from plexapi.library import ShowSection | |
from plexapi.server import PlexServer |
This file contains hidden or 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
#! /usr/bin/env python3 | |
""" | |
This script is to download Big Buck Bunny lossless 1080P version | |
The video is 1920x1080 24 FPS as a sequence of PNG files. | |
Video Source: https://media.xiph.org/BBB/BBB-1080-png/ | |
Author: Yang Liu | |
Date: 2021-04-04 |
This file contains hidden or 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
/* For styling the rendered Markdown */ | |
/* This style is based on the style post by davidpoza in https://discourse.joplinapp.org/t/share-your-css/1730/23 */ | |
body { | |
font-family: "sf pro text", "Segoe UI",Helvetica,Arial,sans-serif; | |
} | |
h1 { | |
margin-top: 0 !important; |
This file contains hidden or 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
#Persistent | |
; This script is for 8BitDo Lite to use shortcuts of photoshop | |
; The main purpose is to do digital painting | |
JOY_STICK_NUMBER = 2 | |
JOY_STICK_PREFIX = %JOY_STICK_NUMBER%Joy | |
ButtonB = 1 | |
ButtonA = 2 |
This file contains hidden or 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
Package: libavformat-dev | |
Version: 7:4.2.2-0york0~18.04 | |
Package: libavcodec-dev | |
Version: 7:4.2.2-0york0~18.04 | |
Package: libswscale-dev | |
Version: 7:4.2.2-0york0~18.04 |
This file contains hidden or 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
diff --git a/ojluni/src/main/native/FileInputStream.c b/ojluni/src/main/native/FileInputStream.c | |
index 2418c5d..8439f81 100644 | |
--- a/ojluni/src/main/native/FileInputStream.c | |
+++ b/ojluni/src/main/native/FileInputStream.c | |
@@ -43,6 +43,13 @@ | |
#include "io_util_md.h" | |
#include <nativehelper/JNIHelp.h> | |
+#include <dirent.h> | |
+#include <time.h> |
This file contains hidden or 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
# Change <INPUT FILE> to the input video file | |
# 3 video qualities: <1> 1920x1080, 4800kbps. <2> 1280x720, 2400kbps. <3> 640x360, 800kbps. | |
# 2 audio qualities: <1> origin audio. <2> audio sample rate: 22050 [low quality] | |
ffmpeg -re -stream_loop 1 -i <INPUT FILE> -map 0 -map 0 -map 0:v -acodec libfdk_aac -vcodec libx264 -preset veryfast \ | |
-b:v:0 4800k -s:v:0 1920x1080 -profile:v:0 high \ | |
-b:v:1 2400k -s:v:1 1280x720 -profile:v:1 main \ | |
-b:v:2 800k -s:v:2 640x360 -profile:v:2 baseline \ | |
-bf 1 -keyint_min 120 -g 60 -sc_threshold 0 -b_strategy 0 -ar:a:1 22050 \ | |
-use_timeline 1 -use_template 1 -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" \ |
This file contains hidden or 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
from mininet.topo import Topo | |
from mininet.link import TCLink | |
from mininet.log import info | |
from mininet.net import Mininet | |
from mininet.cli import CLI | |
from mininet.node import RemoteController | |
def main(): | |
net = Mininet(link=TCLink) |
This file contains hidden or 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 `ifconfig eth1 2>/dev/null|awk '/inet addr:/ {print $2}'|sed 's/addr://'` |
NewerOlder