Skip to content

Instantly share code, notes, and snippets.

bcdedit /set hypervisorlaunchtype off
bcdedit /set hypervisorlaunchtype auto
bcdedit
#hypervisorlaunchtype Auto
@neontorrent
neontorrent / Guide
Last active October 19, 2022 13:34
MSYS2+cmake+MSVS+GTK3+VSCode
MSYS2:
pacman -S base-devel mingw64/mingw-w64-x86_64-cmake mingw-w64-x86_64-gtk3 mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-pkg-config
#Optional: pacman -S mingw-w64-x86_64-glade
#In .bashrc
export PATH=/mingw64/bin:$PATH
export PKG_CONFIG_PATH=/mingw64/lib/pkgconfig
Compiler:
Option 1: Use MSYS2 GCC
pacman -S mingw-w64-x86_64-gcc
@neontorrent
neontorrent / install.sh
Created January 21, 2018 15:09 — forked from chuyik/install.sh
Bandwagon(搬瓦工) CentOS 7 安装 shadowsocks-libev 和 kcptun
######################
## shadowsocks-libev
######################
# install dependencies
yum install epel-release -y
yum install gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto udns-devel libev-devel -y
# install shadowsocks-libev
cd /etc/yum.repos.d/
use warnings;
use strict;
$_ = 'abcdefghi';
# s/./ substr $_, -$+[0], 1 /eg; # duh, substr and array
# s#.# /(.).{$-[0]}$/; $1 #eg; # duh, array
my $x = 0; s#.# /(.).{$x}$/; $x++; $1 #eg;