- Capital letters do the opposite of small letters in command (Press shift to trigger capital letters)
_
(underscore) to move the cursor at the beginning of line (doesn't switch to insert mode)0
(zero) moves the cursor to the zeroth position of the line (doesn't switch to insert mode)
$
(dollar) to move the cursor at the end of line (doesn't switch to insert mode)d$
will delete from wherever your cursor is till the end of the linef<character>
to move cursor to the first occurrence of<character>
f(
to move cursor to first occurence of(
t<character>
to move cursor to upto but not on the first occurrence of<character>
t(
to move cursor to first occurence of(
Discover gists
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
substitutions: | |
room: Garage | |
device_name: Garage Switch | |
esphome: | |
name: garage_switch | |
platform: ESP8266 | |
board: esp01_1m | |
wifi: |
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
#import "@preview/cetz:0.2.0" | |
#let d = cetz.draw | |
#let offset(anchor, x: 0, y: 0) = { | |
(v => cetz.vector.add(v, (x, y)), anchor) | |
} | |
#let default-colors = (red, orange, yellow, green, blue, purple, fuchsia, gray) | |
#let color-boxed(..args) = { | |
set text(0.8em) | |
box( |
Arch Linux 是眾多 Linux 作業系統中的一種,對象是有 Linux 指令操作經驗的「進階使用者」,想要打造更適合自己的環境,例如不同的桌面、視窗環境等,體驗最新的套件。
Arch Linux 只有文字介面,不包含圖形介面。也就是說,當你安裝完 Arch Linux 之後,你會看到整個螢幕黑黑一片,電腦期待著你用鍵盤輸入文字指令。Arch Linux 只提供最基本可以讓電腦跑起來的功能,其他套件都要自己安裝。
Arch Linux 不會裝你不會用到的東西,你會自己親自打造完全屬於自己的電腦。不會有程式任意自動啟動,不會有人強迫你更新。你可以把你的電腦改成任何模樣,同樣你也為你的電腦的易用性和安全性負責。
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
Install VMWare Workstation PRO 17 (Read it right. PRO!) | |
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it. | |
Sub to me on youtube pls - PurpleVibe32 | |
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me. | |
--- | |
This gist can get off at any time. | |
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT. | |
*If you have a problem comment and people will try to help you! | |
*No virus |
NSLOC stands for 'Normalized Source Code', which is a custom measurement we use (among others) when evaluating the complexity of a codebase.
To get the NSLOC count of a file:
- For all functions, reduce any multiline function declarations to a single line.
- Remove all comments
- Remove all empty lines
- Count the remaining lines
Example:
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
""" | |
Author: Simon Westphahl <westphahl@gmail.com> | |
Description: Brute-force implementation for solving the TSP. | |
http://en.wikipedia.org/wiki/Travelling_salesman_problem | |
""" | |
routes = [] | |
def find_paths(node, cities, path, distance): |
- https://fishshell.com/ - my default shell, i use theme bobthefish
- https://www.sublimetext.com/ - my default editor
- Material Theme
- Operator font
- Packages: Emmet, Hayaku, SidebarEnhancements, JS Snippets, GSAP Snippets
- Sublime snippet for comments
- Sublime icon
- https://code.visualstudio.com/ - trying to switch, but not yet
(Lines prefixed with a #
should be run as the root user or with sudo
. Lines prefixed with a $
should be run as your local user.)
# dnf install xrdp
(with Xorg session support:# dnf install xrdp xorgxrdp
)- If using Gnome:
# $EDITOR /etc/pam.d/xrdp-sesman
and comment and uncomment the appropriate lines. - Optionally, rename the shared drives mount:
# $EDITOR /etc/xrdp/sesman.ini
and setFuseMountName=shared-drives
# $EDITOR /etc/xrdp/xrdp.ini
and setport=vsock://-1:3389
([Globals]
section),security_layer=rdp
,bitmap_compression=false
. Uncomment the whole[Xorg]
section if you chose to install thexorgxrdp
package.$ systemctl enable xrdp xrdp-sesman
- Shut down the virtual machine (do NOT reboot) and close the Virtual Machine Connection window.
- On your host, in PowerShell (as admin or as a user in the "Hyper-V Administrators" group):
Set-VM -VMName "Name of your Fedora VM" -EnhancedSessionTransportType HvSocket
- Connect to your VM by reopening the Virtual
NewerOlder