Skip to content

Instantly share code, notes, and snippets.

@d0zingcat
d0zingcat / swiss-army knives.md
Last active December 26, 2017 14:13
swiss-army knives

Text processing

Name Usage
Pandoc Convert one markup format to another

Community

Name Usage
Launchpad A software collaboration platform that engages developer developing softwares on Ubuntu
@d0zingcat
d0zingcat / markdown notes.md
Last active December 1, 2017 05:02
markdown notes
  1. Anchor at current page Github automatically parses anchor tags out of your headers. So you can do the following:
[Foo](#foo)
### Foo

In the above case, the Foo header has generated an anchor tag with the name foo

Note: just one # for all heading sizes, no space between # and anchor name, anchor tag names must be lowercase, and delimited by dashes if multi-word. Just like this:

https://ide.c9.io/d0zingcat/dailylabs | dailylabs - Cloud9
https://miki725.github.io/docker/crypto/2017/01/29/docker+nginx+letsencrypt.html | Docker + Nginx + LetsEncrypt — » Miroslav Shubernetskiy
https://github.com/jwilder/nginx-proxy | jwilder/nginx-proxy: Automated nginx proxy for Docker containers using docker-gen
https://github.com/clarkzjw/nginx-proxy-google | clarkzjw/nginx-proxy-google: Docker image of Nginx reverse proxy for Google
https://stackoverflow.com/questions/24241292/dockerized-nginx-is-not-starting | docker - Dockerized nginx is not starting - Stack Overflow
https://bitbucket.org/account/signin/
https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html | Set up an SSH key - Atlassian Documentation
https://hub.docker.com/ | Docker Hub
https://www.linux.com/news/5-linux-desktop-environments-rise-2017 | 5 Linux Desktop Environments on the Rise for 2017 | Linux.com | The source for Linux information
https://www.ubuntupit.com/install-various-desktop-environment-ubuntu/ | 13 B
@d0zingcat
d0zingcat / linux calendar
Created January 31, 2018 13:58
A simple unix calendar implementation in python
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import os
def print_months(year, month):
if year < 1900:
@d0zingcat
d0zingcat / rclone-download.sh
Last active December 18, 2020 10:40
download rclone and replace binary program with latest rclone
#!/usr/bin/env bash
set -x
rclone_zip=rclone.zip
curl -L https://downloads.rclone.org/rclone-current-linux-amd64.zip -o $rclone_zip
unzip -o $rclone_zip
dir_name=`ls -F | grep -e 'rclone.*/'`
version=`echo $dir_name | cut -d"-" -f2`
echo $dir_name, $version
name_with_version="rclone_$version"
cp "$dir_name"/rclone /usr/local/bin/$name_with_version
@d0zingcat
d0zingcat / cloudflare_dyn_dns.sh
Last active June 5, 2021 04:44 — forked from chappy84/cloudflare_dyn_dns.sh
CloudFlare Dynamic DNS Shell Script
##!/usr/bin/env sh
# Gist: https://gist.github.com/D0zingcat/8cd76dc49d28c99af010c67a4a94d30b
# forked from: https://gist.github.com/chappy84/9606755
# use environment variables instead of flags (as in docker pass parameters is not very convenient)
# a docker image is derived from this script: d0zingcat/ddns-reporter (:latest tag for amd x86-64 arch and :armv8 tag for arm x64 v8 arch, e.g. raspberry pi 4B
# you could use this image to report your dynamic public ip to cloudflare(to update your A DNS record)
# command: docker run -e KEY=${KEY} -e NAME=${subdomain} -e EMAIL=${cloudflare_email} -e ZONE={base_domain} d0zingcat/ddns-reporter:latest
# Dockerfile: https://github.com/D0zingcat/all-in-docker/blob/main/ddns-reporter/Dockerfile
# CloudFlare Dynamic DNS
#
@d0zingcat
d0zingcat / my_general_subconverter_config.ini
Last active April 22, 2023 16:46
my rules for subconverter
[custom]
;不要随意改变关键字,否则会导致出错
;acl4SSR规则
managed_config_prefix=https://subconverter.d0zingcat.xyz
;去广告:支持
;自动测速:支持
;微软分流:支持
;苹果分流:支持
;增强中国IP段:支持
@d0zingcat
d0zingcat / personal.quanx.list
Last active March 9, 2023 07:12
My personal rules for quantumultx
# WARNING: Deprecated
# If you desire to use this file as your QuanX filter refer, plz use the following link:
# https://subconverter.d0zingcat.xyz/getruleset?type=2&url=aHR0cHM6Ly9naXN0LmdpdGh1YnVzZXJjb250ZW50LmNvbS9kMHppbmdjYXQvYTdlNDdkNjhkMmVjY2YwMzU5ZjRhZDIzYmUyNTQ3ZjgvcmF3L3Byb3h5LnBlcnNvbmFsLnN1YmNvbnZlcnRlci5saXN0&group=UHJveHk=
# The ProxyGroup name is "Proxy", and the rules were from [here](https://gist.github.com/d0zingcat/a7e47d68d2eccf0359f4ad23be2547f8) parsed by subconverter, from Clash rules to QuanX ruleset.
# Crypto
## NFTs
DOMAIN-SUFFIX,opensea.io,Crypto
DOMAIN-SUFFIX,looksrare.org,Crypto
DOMAIN-SUFFIX,gem.xyz,Crypto
@d0zingcat
d0zingcat / init.sh
Created February 7, 2022 07:38
bootstrap for openwrt on r2s
#!/bin/sh
set -x
install_openclash() {
opkg remove dnsmasq
opkg install dnsmasq-full
opkg install luci
opkg install luci-base
opkg install iptables opkg install coreutils
opkg install coreutils-nohup
opkg install bash
@d0zingcat
d0zingcat / personal.subconverter.ini
Last active April 22, 2023 16:45
personal subconverter profile
[custom]
;不要随意改变关键字,否则会导致出错
;acl4SSR规则-在线更新版
;去广告:支持
;自动测速:支持
;微软分流:支持
;苹果分流:支持
;增强中国IP段:不支持
;增强国外GFW:不支持