Skip to content

Instantly share code, notes, and snippets.

View ilovejs's full-sized avatar
🐡

Hao ilovejs

🐡
View GitHub Profile
@ilovejs
ilovejs / 0-alacritty-tmux-fish-omf-setup.md
Created November 17, 2024 02:34 — forked from PhilipSchmid/0-alacritty-tmux-fish-omf-setup.md
Installing Alacritty, Tmux, Fish, OMF, bobthefish

Alacritty, Tmux, Fish Setup

A short tutorial how to setup a nice terminal environment using Alacritty, Tmux, Fish, OMF and the Fish theme bobthefish.

Tested on Pop_OS 20.04.

Basic Installation

  1. Install the required packages:
sudo apt install alacritty tmux fish fonts-powerline fonts-hack-ttf
" Docs
" https://github.com/JetBrains/ideavim/wiki/set-commands
" Make sure to click reload on the right to take into effect
" Need to install more plugins as listed here
" https://plugins.jetbrains.com/bundles/7-ideavim-bundle
""" Common settings
""" https://github.com/JetBrains/ideavim/wiki/%22set%22-commands
@ilovejs
ilovejs / terminal.txt
Created September 14, 2023 06:52 — forked from joulgs/terminal.txt
How install libssl1.1 on ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
@ilovejs
ilovejs / .golangci.yml
Created December 13, 2022 02:09 — forked from maratori/.golangci.yml
Golden config for golangci-lint
# This code is licensed under the terms of the MIT license.
## Golden config for golangci-lint v1.50.1
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adopt and change it for your needs.
run:
# Timeout for analysis, e.g. 30s, 5m.
@ilovejs
ilovejs / chn_fonts.reg
Created September 6, 2022 12:30 — forked from swordfeng/chn_fonts.reg
Chinese font settings in wine
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Arial"="wqy-microhei.ttc"
"Arial Black"="wqy-microhei.ttc"
"Arial CE,238"="wqy-microhei.ttc"
"Arial CYR,204"="wqy-microhei.ttc"
"Arial Greek,161"="wqy-microhei.ttc"
"Arial TUR,162"="wqy-microhei.ttc"
"Courier New"="wqy-microhei.ttc"
As mentioned in the comment section, GCC versions lower than 7 are still available in xenial repository. You can follow the following steps to install gcc-5:

Add xenial to /etc/apt/sources.list
Open sources.list with sudo

sudo vim /etc/apt/sources.list

Add the following lines in the sources.list file
// ==UserScript==
// @name sydneytoday copy helper
// @namespace http://www.github.com/
// @version 0.1.0
// @description copyable
// @author xx
// @license MIT
// @match https://www.sydneytoday.com/*
// @icon https://www.google.com/s2/favicons?domain=www.sydneytoday.com
// @run-at document-start
// ==UserScript==
// @name Google AdSense Ads Remover
// @namespace https://openuserjs.org/users/ner0
// @description Removes Google ads from its search results
// @icon https://www.google.com/adsense/start/images/favicon.ico
// @author ner0
// @copyright 2020, ner0 (https://openuserjs.org/users/ner0)
// @license MIT
// @version 0.1
// @supportURL https://openuserjs.org/scripts/ner0/Google_AdSense_Ads_Remover/issues