Skip to content

Instantly share code, notes, and snippets.

@userid
userid / crontab_download_generate.pl
Last active April 20, 2020 16:30
# 10.10.10.41 15 07 * * * /home/odps/src/download.pl >>/home/log/odps/odps_to_clickhouse.log 2>&1 # 10.10.14.33 24 9 * * * /home/odps/ods_ac_serverconfig/src/crontab_download_generate.pl >> /home/log/odps/odps_download.log 2>>/home/log/odps/odps_download_err.log
#!/usr/bin/perl -w
##
##
##
use 5.012;
$| = 1;
use POSIX qw(strftime);
chdir '/home/odps/ods_ac_serverconfig/';
/* acoustid_compare.c */
#include <math.h>
#include "postgres.h"
#include "fmgr.h"
#include "utils/array.h"
#include "catalog/pg_type.h"
#include "popcount.h"
/* fingerprint matcher settings */
/* acoustid_compare.c */
#include <math.h>
#include "postgres.h"
#include "fmgr.h"
#include "utils/array.h"
#include "catalog/pg_type.h"
#include "popcount.h"
/* fingerprint matcher settings */
@userid
userid / libxxf86dga libdmx.md
Created March 9, 2020 14:38
sudo pacman -Rsc libxxf86dga libdmx
sudo pacman -Rsc libxxf86dga libdmx
正在检查依赖关系...
:: audacious-plugins可选依赖于lirc: LIRC
:: cmus可选依赖于libmp4v2: for mp4 input plugin support
:: compton可选依赖于xorg-xwininfo: For compton-trans
:: compton可选依赖于xorg-xprop: For compton-trans
:: gnupg可选依赖于libusb-compat: scdaemon
:: inxi可选依赖于xorg-xdpyinfo: inxi -G multi screen resolution
:: inxi可选依赖于xorg-xprop: inxi -S desktop data
@userid
userid / amdgpu-pro-installer.txt
Created November 26, 2019 11:55
amdgpu-pro-installer
==> 继续安装 amdgpu-pro-installer ? [Y/n]
==> [v]查看包的内容 [c]用 namcap 检查
==> ------------------------
==> y
正在加载软件包...
正在解析依赖关系...
警告:无法解决 "lib32-libx11","lib32-amdgpu-pro-libgl" 的一个依赖关系
警告:无法解决 "lib32-libxcb","lib32-amdgpu-pro-libgl" 的一个依赖关系
警告:无法解决 "lib32-libxdamage","lib32-amdgpu-pro-libgl" 的一个依赖关系
@userid
userid / chnroute_update.txt
Created September 5, 2019 03:05 — forked from lixingcong/chnroute_update.txt
chinaroute路由表更新命令
路由表使用cidrmerge进行合并
cat route.txt| cidrmerge > route_merged.txt
https://github.com/karlpilkington/cidrmerge
ChinaRoute ipv4路由表
wget -O- 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | awk -F\| '/CN\|ipv4/ { printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > /tmp/route.txt
Adblock_china_easylist去广告:
wget -4 --no-check-certificate -O - https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt | grep -E '^\|\|[^\*]*\^$' | sed -e 's:||:address\=\/:' -e 's:\^:/127\.0\.0\.1:' | sort | uniq > /tmp/adblock.conf
@userid
userid / simple-doh.c
Created September 3, 2019 09:40 — forked from bagder/simple-doh.c
libcurl example using DOH
#include <stdio.h>
#include <curl/curl.h>
int main(void)
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
@userid
userid / 北京联通IPTV内网组播.m3u
Created August 6, 2019 09:46 — forked from riverscn/北京联通IPTV内网组播.m3u
北京联通IPTV内网组播地址节目表(239.2.1.1网段)
#EXTM3U name="北京联通IPTV(RTP)”
#EXTINF:-1,CCTV-1高清(1)
rtp://239.2.1.129:8000
#EXTINF:-1,CCTV-2高清(2)
rtp://239.2.1.60:8084
#EXTINF:-1,CCTV-4高清(4)
rtp://239.2.1.105:8092
#EXTINF:-1,CCTV-7高清(7)
rtp://239.2.1.61:8104
#EXTINF:-1,CCTV-9高清(9)
@userid
userid / gitstat.pl
Last active July 24, 2019 08:41
统计git代码修改行数
#!/usr/bin/perl -w
use 5.010;
use POSIX qw(strftime);
my $day_cnt = shift || 7;