This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.
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/sudo bash | |
| # | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| systemctl enable runsunloginclient.service | |
| systemctl start runsunloginclient.service | |
| # change USERNAME to your current non-root username | |
| sudo -u USERNAME /usr/local/sunlogin/bin/sunloginclient & |
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
| 0.In my 0th vps (for example Oracle Cloud free tier VPS, ubuntu 20.04, it allow me to create 2 free vps servers): | |
| sudo apt install tailscale(ref: https://tailscale.com/kb/1039/install-ubuntu-2004/) | |
| sudo tailscale up //copy the showed url and authorize google sign-in in the web browser | |
| ip addr show tailscale0 //for example: 100.71.153.9 | |
| 1. In my 1st vps(in china, for example my linux PC in my home): | |
| sudo apt install tailscale | |
| sudo sysctl net.ipv4.conf.all.forwarding=1 | |
| sudo tailscale up --advertise-exit-node --accept-dns=false //copy the showed url and authorize google sign-in in the web browser | |
| //"--advertise-exit-node" to advertise this vps as exit node, "--accept-dns=false" to avoid global dns settings overwriting /etc/resolv.conf in exit node |
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
| cd /system/app/ | |
| rm -rf Account | |
| rm -rf card | |
| rm -rf Drive | |
| rm -rf Duo | |
| rm -rf GooglePay | |
| rm -rf Gmail2 | |
| rm -rf Maps | |
| rm -rf Music2 | |
| rm -rf NVBackupUI |
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
| https://www.armbian.com/pine64/ | |
| download Bionic server 5.4 : https://dl.armbian.com/pine64/Bionic_current | |
| 对应ubuntu bionic是ubuntu 18.04(cat /etc/os-release), 对应debian buster是debian 10(cat /etc/debian_version) | |
| sudo apt install lightdm lightdm-gtk-greeter xfce4 #sudo apt install lightdm lightdm-gtk-greeter lxde | |
| sudo vi /etc/lightdm/lightdm.conf | |
| #[Seat:*] | |
| #allow-guest=false | |
| #user-session=xfce #user-session=LXDE 对应/usr/share/xsessions/里xfce.desktop和LXDE.desktop | |
| sudo reboot # or startxfce4 |
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 python | |
| # coding: utf-8 | |
| import pysubs2 | |
| import re | |
| from stardict import DictCsv | |
| # depend on https://github.com/skywind3000/ECDICT/ | |
| dict_filename="ecdict.csv" | |
| sub_filename="01sub.srt" |
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
| =================================pc lubuntu上, 2013年=========================================== | |
| #!/bin/sh | |
| #chroot only for root user session | |
| #pivot_root for whole system root directory changing | |
| #sudo su | |
| #mkdir /mnt/new_root #must be 755 root:root, or else sudo won't work: unable to stat /etc/sudoers: Permission denied | |
| #mkdir /mnt/root #must be 755 root:root | |
| #mkdir /mnt/rw #must be 755 root:root |
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
| #EXTM3U name="bj-unicom-iptv" | |
| #EXTINF:-1,天津卫视高清 | |
| rtp:///239.3.1.141:1234 | |
| #EXTINF:-1,爱上4K | |
| rtp:///239.3.1.236:2000 | |
| #EXTINF:-1,山东教育 | |
| rtp:///239.3.1.52:4120 |
I am working on adding support for building and distributing (via PyPI) Python Wheels with C Extensions to the Python wheel and pip packages. The discussion on Distutils-SIG continues, but I believe it is fairly certain that some effort to correctly identify Linux distributions will need to be made. I've begun efforts to add this support to wheel.
If you have a Linux distribution or version of a listed distribution not in this gist, or one of the ones I have not directly verified, I could use the following:
- The contents of
/etc/os-release, if it exists
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
| import requests | |
| import sys | |
| import os | |
| import json | |
| MAX_PAGE = 10 | |
| if __name__ == "__main__": | |
| '''https://<your_gitlab_site_address>/profile/personal_access_tokens''' | |
| git_urls = [] |