centos7.X安装ss
安装sswget –no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.shchmod +x shadowsocks-all.sh./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log 接着又蹦出些东西,是让我们选择ss的服务器端,这里我选择libev版本的,输入4按回车 如同往常,接下来是要填入ss客户端登录的密码,这里我随意填 接下来是输入端口号(1-65535任意数字 接下来是选择加密方式,最好选择xchacha20-ietf-poly1305,输入13 接着是否需要开启simply-obfs插件,默认就行,回车 接着又是反手一个回车就好 这里可能需要等待一会,看到下图就是大功告成了。干杯🍻! 这个最好截图一下,以防忘记了。 下载客户端如果你跟着我到了这一步就代表安装好了服务器端,但是我们的电脑手机...
wpf 全局热键
创建工具类12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576public class HotKeyObject : IMessageFilter { Hashtable keyIDs = new Hashtable(); IntPtr hWnd; public int Hotkey1; public event HotkeyEventHandler OnHotkey; public enum KeyFlags { MOD_NONE = 0x0, MOD_ALT = 0x1, MOD_CONTROL = 0x2, MOD_SHIFT = 0x4, ...
vue---webpack快速入门
webpack 基本使用新建项目初始化包管理配置文件 package.json 1npm init -y 安装 jQuery1npm install jquery -S 项目安装webpack安装相关的两个包 1npm install webpack@5.42.1 webpack-cli@4.7.2 -D 配置webpack在项目根目录,创建名为webpack.config.js的webpack配置文件,并初始化配置 1234567891011const path = require('path')module.exports = { //mode 用来指定构建模式。可选值有 development 和 production mode: 'development', entry: path.join(__dirname, './src/index.js'), output: { path: path.join(__dirname, './dist&...
清除浮动 解决外边距塌陷问题
1234567891011121314/* .clearfix::before 作用:解决外边距塌陷问题 外边距塌陷:父子标签,都是块级,子级加margin会影响父级的位置*//* 清除浮动 */.clearfix::before,.clearfix::after{ content: ''; display: table;}/* 真正清除浮动的标签 */.clearfix::after{ clear: both;}
WPF—DataGrid样式
WPF—DataGrid样式123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354<Style TargetType="{x:Type DataGridRowHeader}"> <Setter Property="Template" Value="{x:Null}"/></Style><Style TargetType="{x:Type DataGridColumnHeader}"> <Setter Property="FontWeight" Value="Bold"/> <!--<Setter Property="BorderThickness" Va...
WPF界面配置CommandBinding
WPF界面配置CommandBindingTextBox12345678<TextBox Text="{Binding LoginModel.UserNameUpdateSourceTrigger=PropertyChanged}" FontSize="16" Foreground="#555" Template="{UserNameTextBoxTemplate}" Name="txtUserName"> <TextBox.InputBindings> <KeyBinding Key="Enter" Command="{Binding LoginCommand}" CommandParameter="{Binding ElementName=window}...
KeyBinding-使用技巧
KeyBinding-使用技巧TextBox12345678<TextBox Text="{Binding LoginModel.UserNameUpdateSourceTrigger=PropertyChanged}" FontSize="16" Foreground="#555" Template="{UserNameTextBoxTemplate}" Name="txtUserName"> <TextBox.InputBindings> <KeyBinding Key="Enter" Command="{Binding LoginCommand}" CommandParameter="{Binding ElementName=window}"...
npm安装与配置
配置npm在安装全局模块时的路径和缓存cache的路径123npm config set prefix "D:\Program Files\nodejs\node_global"npm config set cache "D:\Program Files\nodejs\node_cache" 此操作会在 ~ 目录下生成 .npmrc
WPF—VisualStateManager使用技巧
WPF—VisualStateManager使用技巧https://msdn.microsoft.com/zh-cn/library/aa970773.aspx
StringFormat-使用技巧
Label12345678<Label Content="{Binding Model.Progress,Mode=OneWay}" ContentStringFormat="aasdf{0:P}asdfasdf"/>--><!--<TextBlock Text="{Binding Model.MyProperty, StringFormat={}{0:F4}}"/><TextBlock Text="{Binding Model.MyProperty, StringFormat={}{0:P1}}" /><Label> <Label.Content> <Binding Path="Model.Progress" StringFo...











