Instructions for enabling specific or all crate feature flags in the Zed editor using rust-analyzer.
Create a settings file in your project directory:
.zed/settings.json
| use anyhow::{anyhow as e, Result}; | |
| pub async fn host_to_ip(host: &str) -> Result<String> { | |
| match tokio::net::lookup_host(host).await { | |
| Ok(mut ips) => { | |
| if let Some(ip) = ips.next() { | |
| Ok(ip.to_string()) | |
| } else { | |
| Err(e!("No IP address found for {}", host)) | |
| } |
| openssl genrsa -out server.key 2048 | |
| openssl ecparam -genkey -name secp384r1 -out server.key | |
| openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650 |
echo 2 >> /sys/module/hid_apple/parameters/fnmodeError
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts| #!/bin/bash | |
| # sample config (4x2 grid on a 3840x2160 screen) | |
| screen_cols=424 | |
| screen_rows=116 | |
| screen_width=3840 | |
| screen_height=2160 | |
| grid_col_count=4 | |
| grid_row_count=2 |
| .responsive-border { | |
| box-shadow: 1px 0 0 0 black, | |
| 0 1px 0 0 black, | |
| 1px 1px 0 0 black, | |
| 1px 0 0 0 black inset, | |
| 0 1px 0 0 black inset; | |
| } |
Fix for rubygems SSL certificate error on Windows
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
openssl x509 -in Root-R1.crt -out GlobalSignRootR1.pem -outform PEM -inform DEFGlobalSignRootR1.pem file that it creates into: D:\Ruby23-x64\lib\ruby\2.3.0\rubygems\ssl_certs\ <-- this path will obviously be different depending on where you've got Ruby installed!