Skip to content

Instantly share code, notes, and snippets.

@mfurquimdev
Last active October 31, 2021 23:57
Show Gist options
  • Select an option

  • Save mfurquimdev/d3becde395c643a9a3d741e50ff6f783 to your computer and use it in GitHub Desktop.

Select an option

Save mfurquimdev/d3becde395c643a9a3d741e50ff6f783 to your computer and use it in GitHub Desktop.
StackOverflow Best Answers

StackOverflow Best Answers

Testing

What is an integration test exactly? https://softwareengineering.stackexchange.com/questions/48237/what-is-an-integration-test-exactly/48265#48265?s=9df333007c284b6d820f07a045d79919

Redis

Get all keys with their values https://stackoverflow.com/questions/19354826/how-to-get-all-keys-with-their-values-in-redis

Arch Linux Troubleshoot

Failed to set DNS configuration: Unit dbus-org.freedesktop.resolve1.service not found https://superuser.com/questions/1427311/activation-via-systemd-failed-for-unit-dbus-org-freedesktop-resolve1-service

Startx freezes screen https://bbs.archlinux.org/viewtopic.php?id=243277

Steam hangs https://bbs.archlinux.org/viewtopic.php?id=177245

Files and Directories

Change directories to 755 and files to 644

bash: moving files with spaces https://unix.stackexchange.com/questions/392393/bash-moving-files-with-spaces

bash: trap https://unix.stackexchange.com/questions/79648/how-to-trigger-error-using-trap-command

bash: printf https://stackoverflow.com/questions/22278668/bourne-shell-printf-s-usage

bash: tput tput cols doesn't work properly in a script https://stackoverflow.com/questions/14308166/tput-cols-doesnt-work-properly-in-a-script

Removing extension or last characters https://stackoverflow.com/questions/27658675/how-to-remove-last-n-characters-from-a-string-in-bash

Removing character before and after https://stackoverflow.com/questions/9733338/shell-script-remove-first-and-last-quote-from-a-variable

list files but pattern https://stackoverflow.com/questions/8525437/list-files-not-matching-a-pattern https://stackoverflow.com/questions/12634013/list-all-files-that-do-not-match-pattern-using-ls

$ ls --ignore=*.ttf
$ ls --hide=*.ttf

Jupyter Notebook with venv https://stackoverflow.com/a/52570461/3832827

Python change cases: snake to cammel and back https://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-snake-case

Linux Console

Open default editor on current command https://askubuntu.com/questions/1232896/open-current-command-in-text-editor

How to change cursor shape, color, and blinkrate of Linux Console? https://unix.stackexchange.com/questions/55423/how-to-change-cursor-shape-color-and-blinkrate-of-linux-console#92743

Bash history: “ignoredups” and “erasedups” setting conflict with common history across sessions https://unix.stackexchange.com/questions/18212/bash-history-ignoredups-and-erasedups-setting-conflict-with-common-history/18443#18443?newreg=ad3ea662cd754c148058a0c44d22102f

Configure default software to open file https://stackoverflow.com/questions/5809568/python-change-default-application-for-specified-mime-type-on-linux

Vim

Invert search https://superuser.com/questions/383939/how-to-do-a-vim-search-inverse-search-for-all-lines-with-out-text

Uniq lines https://stackoverflow.com/questions/351161/removing-duplicate-rows-in-vi

Substituite Case Sensitive https://stackoverflow.com/questions/2287440/how-to-do-case-insensitive-search-in-vim

How to paste yanked text into the Vim command line https://stackoverflow.com/questions/3997078/how-to-paste-yanked-text-into-the-vim-command-line/3997110#3997110

Why do Vim experts prefer buffers over tabs? https://stackoverflow.com/questions/26708822/why-do-vim-experts-prefer-buffers-over-tabs/26710166#26710166

Terminal

Urxvt Transparency https://wiki.archlinux.org/index.php/Rxvt-unicode/Tips_and_tricks#Native_transparency

Font Explanation https://stackoverflow.com/questions/28353244/error-in-linux-console-couldnt-get-a-file-descriptor-referring-to-the-console/49018510#49018510

Git

Assuming unchanged file https://stackoverflow.com/questions/655243/ignore-modified-but-not-committed-files-in-git

How to resolve merge conflicts in Git repository? https://stackoverflow.com/questions/161813/how-to-resolve-merge-conflicts-in-git-repository?page=1&tab=votes#tab-top

Vim

To switch from vertical split to horizontal split fast in Vim https://stackoverflow.com/questions/1269603/to-switch-from-vertical-split-to-horizontal-split-fast-in-vim

Configuring Vim for C++ https://stackoverflow.com/questions/4237817/configuring-vim-for-c

How to replace a character by a newline in Vim https://stackoverflow.com/questions/71323/how-to-replace-a-character-by-a-newline-in-vim?rq=1

How display actual syntax highlight in vim? https://stackoverflow.com/questions/38745255/how-display-actual-syntax-highlight-in-vim

What is your most productive shortcut with Vim? https://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim?rq=1

Run function every N seconds https://stackoverflow.com/questions/6991638/how-to-auto-save-a-file-every-1-second-in-vim

Syntax not working https://stackoverflow.com/a/51386068/3832827

:set syntax=cpp

Replace Case Sensitive https://stackoverflow.com/questions/17805002/how-do-i-substitute-with-the-case-sensitive-flag-in-vim#17805231

Delete g/re/p lines https://stackoverflow.com/a/41823186/3832827

C++

How do define anonymous functions in C++? https://stackoverflow.com/questions/12483753/how-do-define-anonymous-functions-in-c#12483809

usr/bin/ld: cannot find -l https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary?rq=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment