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
[Unit] | |
Description=Network Auto Connect Tool | |
DefaultDependencies=no | |
After=sshd.service NetworkManager.service | |
[Service] | |
Type=simple | |
RestartSec=3 | |
Restart=on-failure | |
ExecStart=/home/cjr/Developing/autoconnect/auto-connect.sh |
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
# provide by @ihciah | |
# fill username with any valid studentID | |
curl 10.108.255.249/cgi-bin/do_login -d 'username=14307130118' -d 'password={TEXT}' -d 'type=1' | |
#$ ping www.baidu.com | |
#PING www.a.shifen.com (119.75.217.109) 56(84) bytes of data. | |
#64 bytes from 119.75.217.109 (119.75.217.109): icmp_seq=1 ttl=50 time=23.5 ms | |
#... ... |
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
## | |
## Mailbox locations and namespaces | |
## | |
# Location for users' mailboxes. The default is empty, which means that Dovecot | |
# tries to find the mailboxes automatically. This won't work if the user | |
# doesn't yet have any mail, so you should explicitly tell Dovecot the full | |
# location. | |
# | |
# If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u) |
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
Name = deck | |
Mode = switch | |
Interface = vpn0 | |
ConnectTo = vps2 | |
ConnectTo = vps1 | |
LocalDiscovery = yes |
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 os | |
import time | |
import autopy | |
from autopy import mouse | |
basepath = '/home/cjr/Downloads/Telegram Desktop/stickers/shrink22222/' | |
mouse_path = [(928, 1637), (1197, 1551), (919, 1278), (1408, 1768), (928, 1663)] | |
def comp(x, y): |
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
set -g default-terminal "xterm-256color" | |
set -g mouse on | |
set -g history-limit 999999999 | |
set -g repeat-time 200 | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
run-shell /usr/share/tmux-resurrect/resurrect.tmux | |
bind a set-window-option synchronize-panes | |
set -sg escape-time 0 | |
# copy to X clipboard |
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
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged | |
" - Avoid using standard Vim directory names like 'plugin' | |
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |
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
# Filename: /etc/skel/.zshrc | |
# Purpose: config file for zsh (z shell) | |
# Authors: (c) grml-team (grml.org) | |
# Bug-Reports: see http://grml.org/bugs/ | |
# License: This file is licensed under the GPL v2 or any later version. | |
################################################################################ | |
# Nowadays, grml's zsh setup lives in only *one* zshrc file. | |
# That is the global one: /etc/zsh/zshrc (from grml-etc-core). | |
# It is best to leave *this* file untouched and do personal changes to | |
# your zsh setup via ${HOME}/.zshrc.local which is loaded at the end of |
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
Swtich: | |
switch-mlnxos [standalone: master] (config) # pool ePool0 direction egress-mc size 4194304 type dynamic | |
switch-mlnxos [standalone: master] (config) # pool ePool1 direction egress size 16777000 type dynamic | |
switch-mlnxos [standalone: master] (config) # pool iPool0 direction ingress size 4194304 type dynamic | |
switch-mlnxos [standalone: master] (config) # pool iPool1 direction ingress size 4194304 type dynamic | |
switch-mlnxos [standalone: master] (config) # interface ethernet 1/10 qos trust L3 | |
switch-mlnxos [standalone: master] (config) # interface ethernet 1/11 qos trust L3 | |
switch-mlnxos [standalone: master] (config) # interface ethernet 1/12 qos trust L3 | |
switch-mlnxos [standalone: master] (config) # interface ethernet 1/10-1/13 ingress-buffer iPort.pg3 bind switch-priority 3 | |
switch-mlnxos [standalone: master] (config) # interface ethernet 1/10-1/13 ingress-buffer iPort.pg6 bind switch-priority 6 |
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
[Unit] | |
Description=/etc/rc.local compatibility | |
[Service] | |
Type=oneshot | |
ExecStart=/etc/rc.local | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
OlderNewer