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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, white); | |
min-height: 100%; |
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 | |
#author:zhonger | |
#date:2017-09-08 | |
#contact:zhonger@live.cn | |
echo "----------------------------------------------------------------------- " | |
echo "| Git-mirror | " | |
echo "| | " | |
echo "| Functions: This is a shell which mirror git from github to gitlab. | " | |
echo "| | " |
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 | |
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.** | |
## **This updated version has more options and less hardcoded variables.** | |
# Take one argument from the commandline: VM name | |
if ! [ $# -eq 1 ]; then | |
echo "Usage: $0 <node-name>" | |
exit 1 | |
fi |
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 | |
Version=$(lsb_release -c --short) | |
Codename=$(lsb_release -r --short) | |
OSArch=$(uname -m) | |
Source="deb https://mirrors.shu.edu.cn/ubuntu/ ${Version} main restricted universe multiverse\n" | |
Source=${Source}"deb-src https://mirrors.shu.edu.cn/ubuntu/ ${Version} main restricted universe multiverse\n" | |
Source=${Source}"deb https://mirrors.shu.edu.cn/ubuntu/ ${Version}-security main restricted universe multiverse\n" | |
Source=${Source}"deb-src https://mirrors.shu.edu.cn/ubuntu/ ${Version}-security main restricted universe multiverse\n" |
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 | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#=============================================================================================== | |
# System Required: CentOS 6,7, Debian, Ubuntu | |
# Description: One click Install Shadowsocks-Python server | |
# Author: Teddysun <i@teddysun.com> | |
# Thanks: @clowwindy <https://twitter.com/clowwindy> | |
# Intro: http://teddysun.com/342.html | |
#=============================================================================================== |
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 | |
Version=$(lsb_release -c --short) | |
Codename=$(lsb_release -r --short) | |
OSArch=$(uname -m) | |
User=$(whoami) | |
# 设置 sudo 免密码 | |
echo "$(whoami) ALL=(ALL) NOPASSWD : ALL" | sudo tee /etc/sudoers.d/nopasswd4sudo |
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 | |
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/ | |
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/ | |
cd /usr/share/fonts/truetype/ | |
#TODO: put validation if folder already exists | |
sudo mkdir ttf-monaco |
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
# Mirror | |
cd "$(brew --repo)" | |
git remote set-url origin https://mirrors.shu.edu.cn/mgit/brew | |
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" | |
git remote set-url origin https://mirrors.shu.edu.cn/mgit/homebrew-core | |
brew cask | |
cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask | |
git remote set-url origin https://mirrors.shu.edu.cn/mgit/homebrew-cask |
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
version: '3' | |
services: | |
db: | |
image: mysql:5 | |
container_name: db | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: 'root' | |
ports: | |
- 3306:3306 |
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 | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#================================================= | |
# System Required: CentOS 6+/Debian 6+/Ubuntu 14.04+ | |
# Description: Install the ShadowsocksR server | |
# Version: 2.0.38 | |
# Author: Toyo | |
# Blog: https://doub.io/ss-jc42/ |
OlderNewer