Skip to content

Instantly share code, notes, and snippets.

View belongtothenight's full-sized avatar

Da-Chuan Chen belongtothenight

View GitHub Profile
@BekBrace
BekBrace / init.vim
Last active August 7, 2024 14:27
My Neovim customized init file [ ~/. config/nvim/init. vim ]
"Bek Brace @ 30.11.2022
:set relativenumber
:set number
:set autoindent
:set tabstop=4
:set shiftwidth=4
:set smarttab
:set softtabstop=4
:set mouse=a
@tdcosta100
tdcosta100 / WSL2GUIXvnc-en.md
Last active November 12, 2024 19:20
A tutorial to use GUI in WSL2 replacing original XServer by Xvnc, allowing WSL to work like native Linux, including login screen

WSL2 with GUI using Xvnc

Note

If you want to use pure WSLg, you can try the new WSLg (XWayland) tutorial or the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc) and tigervnc-standalone-server.

For this setup, I will use Ubuntu (20.04, 22.04 and 24.04 are working), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample

@rigwild
rigwild / javascript-es6.tex
Created May 3, 2020 17:21
Color ES6 JavaScript in LaTeX
% Code support
\usepackage{listings}
\usepackage{textcomp}
%
% ECMAScript 2015 (ES6) definition by Gary Hammock
%
\lstdefinelanguage[ECMAScript2015]{JavaScript}[]{JavaScript}{
morekeywords=[1]{await, async, case, catch, class, const, default, do,
@gthb
gthb / __pyinstaller_spacy_load_language_model.md
Last active September 26, 2023 03:12
Spacy under pyinstaller failing to load a language model package

Minimal example to reproduce spacy failing to load language model package under pyinstaller

Run bash build-linux.sh to reproduce on Linux (assumes python3 is installed somewhere in $PATH), or build-win.bat to reproduce on Windows (assumes Python 3.7.6 is installed at C:/Python37/)

It will fail with something like:

$ ./dist/linux/Foo/foo_r
Traceback (most recent call last):
 File "run.py", line 2, in 
@berkorbay
berkorbay / github_desktop_ubuntu.md
Last active November 14, 2024 08:31
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

@B4rtware
B4rtware / config-highlight.cfg
Last active October 31, 2024 21:24
Python IDLE Dark Theme (Visual Studio Colors)
[vsc]
definition-foreground = #3987d6
error-foreground = #fe1b1b
normal-foreground = #dcdcdc
keyword-foreground = #3987d6
hilite-foreground = #dcdcdc
comment-background = #1e1e1e
hit-foreground = #ffffff
builtin-background = #1e1e1e
stdout-foreground = #dcdcdc
@bradtraversy
bradtraversy / vscode_shortcuts.md
Last active November 8, 2024 00:34
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@FreedomKnight
FreedomKnight / autologin.py
Last active September 9, 2022 15:06
中原 wifi 的登入器
#!/usr/bin/env python3
import urllib.request
import urllib.parse
import http.client
import time
import os
import re
import sys
import signal
import lxml.html
@rxaviers
rxaviers / gist:7360908
Last active November 15, 2024 16:55
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: