This file contains 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
#! /bin/bash | |
INTERNAL_IP4_NETMASK=255.0.0.0 | |
INTERNAL_IP4_NETMASKLEN=8 | |
INTERNAL_IP4_NETADDR=10.0.0.0 | |
shopt -s expand_aliases | |
alias set_default_route=disabled | |
alias reset_default_route=disabled |
This file contains 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
.open-task-list, .jump-top, .top-nav-bar, .divider, #userbar { | |
display: none !important; | |
} | |
.search-block { | |
position: absolute; | |
} |
This file contains 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
#lemmaWgt-secondsKnow, | |
#side-share, | |
.navbar-bg-top, | |
.navbar-bg, | |
.navbar-wrapper, | |
.topbar, | |
.help, | |
.wgt-footer-main > .content, | |
.arrow, | |
.toggle-button, |
This file contains 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
.doc-upload, .nav-wrap, .docBubble, .wk-other-new-cntent, .doc-tag-wrap, .reader-back2top-wrap, .reader-tools-bar-wrap, .ugctest, .fix-searchbar-wrap { | |
display: none !important; | |
} | |
.header-wrap { | |
background: #FCFCFC; | |
} |
This file contains 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
#! /bin/bash | |
INTERNAL_IP4_NETMASK=128.0.0.0 | |
INTERNAL_IP4_NETMASKLEN=8 | |
INTERNAL_IP4_NETADDR=10.0.0.0 | |
shopt -s expand_aliases | |
alias set_default_route=disabled | |
alias reset_default_route=disabled |
This file contains 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 bash | |
RPI_BRANCH=rpi-4.14.y | |
MPTCP_BRANCH=mptcp_v0.94 | |
# For Pi 1, Pi 0, Pi 0 W, or Compute Module: | |
#KERNEL=kernel | |
#DEFCONFIG=bcmrpi_defconfig | |
# Or, for Pi 2, Pi 3, or Compute Module 3: | |
KERNEL=kernel7 |
This file contains 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 bash | |
rm -f deploy.zip | |
zip -9 -r deploy.zip . --exclude 'venv/*' '.*/*' '.*' '__pycache__/*' | |
cd venv/lib/python*/site-packages || exit 1 | |
zip -9 -r ../../../../deploy.zip * --exclude 'setuptools-*/*' 'setuptools/*' 'pip-*/*' 'pip/*' 'pkg_resources-*/*' 'pkg_resources/*' 'wheel-*/*' 'wheel/*' '__pycache__/*' '*-info/*' 'easy_install.py' | |
cd ../../../../ |
This file contains 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 bash | |
ALL_SOURCES="`gsettings get org.gnome.desktop.input-sources sources`" | |
SOURCE_COUNT="`echo $ALL_SOURCES | tr -d -c ')' | awk '{ print length; }'`" | |
CURRENT_SOURCE_STR="`gsettings get org.gnome.desktop.input-sources current`" | |
CURRENT_SOURCE="${CURRENT_SOURCE_STR#uint32 }" | |
next_source() { | |
if [ "$CURRENT_SOURCE" -lt $((SOURCE_COUNT - 1)) ]; then | |
gsettings set org.gnome.desktop.input-sources current $((CURRENT_SOURCE + 1)) |
This file contains 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 | |
# Partial original code came from https://www.oschina.net/code/snippet_20912_46623 | |
import urllib2 | |
import re | |
import sys | |
import traceback | |
if len(sys.argv) < 2: |
This file contains 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
Search and replace all occurrences with empty string to clean up file(s) decompiled with JD. | |
\/\* \d+ \*\/ |\/\*\s+?\*\/ |\/\* Location:.+\n.+\n.+\n \*\/ |
NewerOlder