Skip to content

Instantly share code, notes, and snippets.

@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active April 27, 2024 01:22
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@souhaiebtar
souhaiebtar / reset_beyondCompare_on_linux.md
Last active April 27, 2024 01:22
[reset trial beyond compare on linux] reset trial beyond compare on linux #linux #bcompare

reset 30 day evaluation every start [1][1]

  1. install beyond compare (using deb, rpm or tar)

    N.B: if installed .deb file, you can use dpkg -L bcompare to find BCompare install path if installed .rpm file, you can use rpm -ql bcompare to find BCompare install path

    sudo mv /usr/bin/bcompare /usr/bin/bcompare.real
    sudo touch /usr/bin/bcompare
@nicknapoli82
nicknapoli82 / cs50_Tideman_cycle-explanation.md
Last active April 27, 2024 01:21
My attempt at clarifying how cycles work for the Tideman algorithm

A Way to Look at Tideman Lock Pairs

I've observed that there is a little bit of a disconnect in understanding what it is that needs to be done to properly implement the lock_pairs function for cs50 Tideman. The goal of this little write-up is simply an attempt at explaining what the problem actually is, and why a cycle imposes a problem.

First:
If you are unfamiliar with the actual problem, or have not read through the entire cs50 Tideman problem description. Then I think you should start there.
cs50 Tideman

Second:
This little write-up is only narrowing in on the idea of cycles, and a way to think about what a cycle is and determine if locking a pair in the pairs array would create that cycle. This does not talk about any other part of the Tideman problem.

@moseye
moseye / ss14chem.md
Created April 8, 2024 17:39
SS14 Chemistry Basics

Basic Medecines

Inaprovaline

Inap - Crit Asphyx

  1. Grab 4 jugs from chemvend
    1. Empty
    2. Oxygen
    3. Carbon
    4. Sugar
  2. Pour 50u of each into empty jug, repeat four times
@tatsumoto-ren
tatsumoto-ren / subs.md
Last active April 27, 2024 01:20
Japanese Subtitles
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 01:19
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@dhh
dhh / linux-setup.sh
Last active April 27, 2024 01:20
linux-setup.sh
# CLI
sudo apt update -y
sudo apt install -y \
git curl docker.io \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \
rbenv apache2-utils
@nico
nico / blocks.txt
Last active April 27, 2024 01:13
unicode blocks for terminal UI drawing; lots new in unicode 13
General Punctuation
U+201x โ€ โ€’ โ€“ โ€” โ€• โ€– โ€— โ€˜ โ€™ โ€š โ€› โ€œ โ€ โ€ž โ€Ÿ
U+202x โ€  โ€ก โ€ข โ€ฃ โ€ค โ€ฅ โ€ฆ โ€ง
U+203x โ€ฐ โ€ฑ โ€ฒ โ€ณ โ€ด โ€ต โ€ถ โ€ท โ€ธ โ€น โ€บ โ€ป โ€ผ โ€ฝ โ€พ โ€ฟ
U+204x โ€ โ โ‚ โƒ โ„ โ… โ† โ‡ โˆ โ‰ โŠ โ‹ โŒ โ โŽ โ
U+205x โ โ‘ โ’ โ“ โ” โ• โ– โ— โ˜ โ™ โš โ› โœ โ โž
Arrows
U+219x โ† โ†‘ โ†’ โ†“ โ†” โ†• โ†– โ†— โ†˜ โ†™ โ†š โ†› โ†œ โ† โ†ž โ†Ÿ
U+21Ax โ†  โ†ก โ†ข โ†ฃ โ†ค โ†ฅ โ†ฆ โ†ง โ†จ โ†ฉ โ†ช โ†ซ โ†ฌ โ†ญ โ†ฎ โ†ฏ