Skip to content

Instantly share code, notes, and snippets.

@grhbit
grhbit / 24-bit-color.sh
Last active January 15, 2025 05:57 — forked from lifepillar/24-bit-color.sh
Test 24 bit colors in terminals
#!/bin/bash
#
# This file echoes a bunch of 24-bit color codes
# to the terminal to demonstrate its functionality.
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
# <r> <g> <b> range from 0 to 255 inclusive.
# The escape sequence ^[0m returns output to default
setBackgroundColor()
@ruario
ruario / make-vivaldi-private-desktop-launcher.sh
Last active December 20, 2019 15:32
Run this to create a Vivaldi launcher for Linux desktops that always starts in private mode.
#!/bin/sh
mkdir -p ~/.local/share/applications
cat << END > ~/.local/share/applications/vivaldi-private.desktop
[Desktop Entry]
Version=1.0
Name=Vivaldi (Private)
Exec=vivaldi-stable --incognito
StartupNotify=true
Terminal=false
Icon=vivaldi
@AlmuHS
AlmuHS / Debian_Hurd_Install.md
Last active December 29, 2024 02:54
Debian GNU Hurd installation in real hardware

How to install Debian GNU/Hurd in a real PC

Debian GNU/Hurd installation guide to real hardware

Requirements

  • An old PC
  • DVD-R or CD-R
  • Recommended hardware
    • Wired Network Connection
  • CPU with high clock speed
@AlexLikeRock
AlexLikeRock / autodormir.sh
Last active February 20, 2018 22:29
auto detecta si se cierra la tapa de la laptop y pasa a suspender, hibernar o hibernar-hibrido
#!/bin/bash
#licencia GPL v3
T1=$(sed '/^state: */!d; s///;q' /proc/acpi/button/lid/LID/state)
T2="closed"
#valores que se podrian obtener de la tapa //fichero: state//
# son : open o closed
# inicia loop / ciclico
@LukeSmithxyz
LukeSmithxyz / urlview.md
Last active May 30, 2023 13:27
Following Terminal Links with URLview

Following Terminal Links with URLview

Link handling

Specify what you want urlview to open your links with in ~/.urlview after COMMAND. I.e. the line below will make urlview open all urls in Firefox.

COMMAND firefox
@dcchambers
dcchambers / cli.md
Last active April 23, 2020 18:37
Commonly used Linux/Unix commands and programs one should be vaguely familiar with. Not an exhaustive list of all tools - just a list of the essentials.

File/Directory Management

  • touch
  • ls
  • ln
  • cp
  • mkdir
  • mv
  • rm
  • rmdir
  • which
@joepie91
joepie91 / vpn.md
Last active April 25, 2025 13:58
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@ruario
ruario / h264-vivaldi-linux.md
Last active September 17, 2024 01:50
How to enable HTML5 MP4 (H.264/AAC) video in Vivaldi for Linux, via an alternative FFMpeg library
@noromanba
noromanba / twitch-irc-with-weechat.mkd
Last active January 24, 2024 01:17
How to join Twitch IRC w/ WeeChat
@xero
xero / irc.md
Last active April 17, 2025 15:44
irc cheat sheet