sudo yum -y install epel-release
sudo yum -y update
Download repository
# From .NET Core 3.0 you can use the command: `dotnet new gitignore` to generate a customizable .gitignore file | |
*.swp | |
*.*~ | |
project.lock.json | |
.DS_Store | |
*.pyc | |
# Visual Studio Code | |
.vscode |
Edit '/etc/sysconfig/jenkins' and add 'prefix=/jenkins' to 'JENKINS_ARGS' | |
************************************************************************** | |
JENKINS_ARGS="--prefix=/jenkins" | |
Comment out the default server config in '/etc/nginx/nginx.conf' | |
and create following file | |
'/etc/nginx/conf.d/domain.conf' | |
************************************************* |
# Install tmux 2.8 on Centos | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# cd src | |
cd /usr/local/src | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz |
namespace Analogy | |
{ | |
/// <summary> | |
/// This example shows that a library that needs access to target .NET Standard 1.3 | |
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
/// </summary>INetCoreApp10 | |
class Example1 | |
{ | |
public void Net45Application(INetFramework45 platform) |
<?php | |
$finder = Symfony\Component\Finder\Finder::create() | |
->notPath('bootstrap/cache') | |
->notPath('storage') | |
->notPath('vendor') | |
->in(__DIR__) | |
->name('*.php') | |
->notName('*.blade.php') | |
->ignoreDotFiles(true) |
cd /etc/yum.repos.d | |
curl -O https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo | |
yum -y install shadowsocks-libev | |
setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/ss-server | |
cat > /etc/shadowsocks-libev/config.json << 'EOF' | |
{ | |
"server": "0.0.0.0", | |
"server_port": 443, | |
"password": "p@$$w0rd", | |
"method": "aes-128-gcm" |
#!/usr/local/bin/fontforge | |
# Usage: fontforge -script ttc2ttf.pe /path/to/font.ttc | |
fonts = FontsInFile($1) | |
n = SizeOf(fonts) | |
i = 0 | |
while (i < n) | |
Open($1 + "(" + fonts[i] + ")", 1) | |
index = ToString(i + 1) |
OSX Apps | |
- Total Spaces, for keeping X11 in different space and faster switching | |
- MenuAndDockless for hidding topbar menu | |
X11 - Macports | |
- sudo port install xorg-server | |
- sudo port install xinit | |
- sudo port install terminus-font dejavu-fonts bitstream-fonts | |
Suckless - suckless.org |