Code Monkey home page Code Monkey logo

dotfiles's Introduction

BACKLOG (Brain-Dump) Programmer Profile


  • 👋 Hi, I’m @elisencode

  • 📊📈📉📈💪💻🚀⏰🏆🎯✅⚡️💥🎉💰💰💯👉👇🆕📝😉

    Les performance passées ne préjugent pas des performances futures.

  • 👣 Workflow :

    • Keep it simple, stupid! Keep it short, silly!
    • Less is More. Small is beautiful.
    • Stability means predictability and peace-of-mind.
      - Protesilaos Stavrou
🎯 GNU/Linux & Unix Way GOAL (un projet: c'est une date)
Learn how to think -focus-on-> Python -to become-> My Own Problem-Solver
XDG Base Directory Vanilla Configure
Desktop OS -goal-> Debian + bspwm (Binary space partitioning window manager)
TWM (tiling window manager) Regolith-desktop -goal-> Qtile
-steep learning curves-> Xmonad (written in Haskell) / DWM (written in C)
Love Text editor Vanilla Vim
IDE -learning-on-> Vanilla Emacs (Escape-Meta-Alt-Control-Shift)
Teminal Tmux (terminal multiplexer)
Shell Bash -goal-> Linux Command Line Power User
Everyday life Emacs Org-mode
Linking-Thinking Note-taking: Emacs Org-mode + Org-roam
Version Control Git, Gitlab, Github
Typesetting system (WYSIWYM) -goal-> LaTex -format-> PdfTex
Markdown Pandoc's Markdown, Github flavor Markdown, R Markdown
Content Cell Content Cell

Learn from:

  • 👀 I’m interested in ... zen healthy minimalist lifestyle : computational thinking (🤔 socratic logic), accounting, finance, networking, emotional intelligence, antifragile, nonviolent compassionate communication, 🇫🇷 la gestion optimale du temps, la réflexion juridique (le raisonnement juridique) & la méthodologie, la gestion de patrimoine, le Droit immobilier (DROIT PRIVÉ : DROIT DES BIENS), le Droit de la propriété intellectuelle.
  • 🌱 I’m currently learning ... delibrate practice: programming everyday.
  • 💞️ I’m looking to collaborate on ... "je contribue à beaucoup d'autres personnes sur la planète quelque chose qui ait une valeur solide et durable."
  • 📫 How to reach me ... ce trésor "la Providence" ou "la sagesse du créateur" : faire preuve d'une "autodiscipline constante" et assidue.

dotfiles's People

Contributors

eieioxyz avatar elisencode avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dotfiles's Issues

:warning: Should I change ownership of files in /usr/local/share/locale?

Should I change ownership of files in /usr/local/share/locale?

/usr/local/share/locale contains directories which have mostly two-letter names (language name abbreviations?), each of which has a LC_MESSAGES directory that contains a gnupg.mo file.
Shouldn't things like localized strings be owned by root and not writable to normal users?
UPDATE: I'm going to set the group ownership to admin and do chmod g+w, which should make them writable for me. I still would like an answer as to what the best thing to do is.

1 Answer

Whatever, setting locale files to group writable is perfectly safe. A malicious script could in theory change the spanish translation of whatever tool it is that got installed there before Homebrew: not the end of the world.

Update: The best thing to do is to figure out whose files they are and then delete them and use brew to install whatever it is that you just deleted. ⚠️ Mixing /usr/local with brewed and unbrewed stuff is not a good idea unless you know what you are doing.

:beer: in Brewfile : `brew "git", link: false`

.dotfiles 3 % ls | grep Brewfile                                      10:21:02
-rw-rw-r-- 1 elisenzsh elisenzsh  175 Oct  4 10:17 Brewfile
-rw-rw-r-- 1 elisenzsh elisenzsh  11K Oct  4 10:01 Brewfile.lock.json

In Brewfile
brew "git", link: false

Fail to `open .` in zsh shell

.dotfiles 1 % open .                                                                  10:21:13
FATAL: invalid GtkDialogFlags value no-separator, expecting: modal / GTK_DIALOG_MODAL, destroy-with-parent / GTK_DIALOG_DESTROY_WITH_PARENT, use-header-bar / GTK_DIALOG_USE_HEADER_BAR at /usr/share/perl5/Gtk3.pm line 1136.
Warning: program returned non-zero exit code #65280

Issues about brew install vscode

Install the command with vscode graphical user interface

GNU/Linux Ubuntu 21.04 | visual-studio-code version 1.60.2: open the Ctrl-p (Command Palette) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command -> No matching results

.dotfiles 1 % echo code $PATH                                                          9:22:06
code /home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin
.dotfiles 1 % brew search code                                                         9:00:05
==> Formulae
autocode                echoprint-codegen       mp3unicode              rxvt-unicode
code-minimap            fdk-aac-encoder         objc-codegenutils       swagger-codegen
code-server             gecode                  osslsigncode            swagger-codegen@2
codec2                  geocode-glib            pandoc-include-code     tivodecode
codemod                 git-remote-codecommit   pcb2gcode               xcodegen
codequery               gnu-barcode             php-code-sniffer        yydecode
codespell               iso-codes               pycodestyle             ode
color-code              liberasurecode          qrencode
eccodes                 lolcode                 recode
==> Casks
homebrew/cask-drivers/blocks-code
homebrew/cask-fonts/font-cascadia-code
homebrew/cask-fonts/font-cascadia-code-pl
homebrew/cask-fonts/font-code-new-roman-nerd-font
homebrew/cask-fonts/font-courier-prime-code
homebrew/cask-fonts/font-envy-code-r
homebrew/cask-fonts/font-fira-code
homebrew/cask-fonts/font-fira-code-nerd-font
homebrew/cask-fonts/font-office-code-pro
homebrew/cask-fonts/font-recursive-code
homebrew/cask-fonts/font-sauce-code-pro-nerd-font
homebrew/cask-fonts/font-source-code-pro
homebrew/cask-fonts/font-source-code-pro-for-powerline

.dotfiles 1 % brew install visual-studio-code                                          9:02:29
Error: Installing casks is supported only on macOS

.dotfiles 1 % brew install --cask visual-studio-code                                   9:03:18
Error: Installing casks is supported only on macOS

.dotfiles 1 % cat zshrc                                                                9:05:55
echo Hello from .zshrc

# Set Variable
# Syntax highlighting for man pages using bat
export MANPAGER="sh -c 'col -bx | bat -l man -p'"


# Change ZSH Options


# Create Aliases
alias ls='ls -lAFh'

# Customize Prompt(s)
PROMPT='
%1~ %L %# '

RPROMPT='%*'

# Add Locations to $PATH Variable
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

# Write Handy Functions
function mkcd() {
  mkdir -p "$@" && cd "$_";
}

# Use ZSH Plugins


# ... and Other Surprises
.dotfiles 1 % source ~/.zshrc                                                          9:10:05
Hello from .zshrc

.dotfiles 1 % which -a code                                                            9:10:14
/usr/bin/code
/bin/code

.dotfiles 1 % which code                                                               9:10:22
/usr/bin/code
.dotfiles 1 % apt search visual-studio-code                                            9:26:44
Sorting... Done
Full Text Search... Done

.dotfiles 1 % apt show visual-studio-code                                              9:26:53
Package: visual-studio-code
State: not a real package (virtual)
N: Can't select candidate version from package visual-studio-code as it has no candidate
N: Can't select versions from package 'visual-studio-code' as it is purely virtual
N: No packages found

run zsh shell brew doctor

.dotfiles 1 % git branch                                                               8:51:13
* homebrew
  main

.dotfiles 1 % brew doctor                                                              8:51:38
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /usr/local/bin/python3.7m-config

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
  /usr/local/include/python3.7m/Python-ast.h
  /usr/local/include/python3.7m/Python.h
  /usr/local/include/python3.7m/abstract.h
  /usr/local/include/python3.7m/accu.h
  /usr/local/include/python3.7m/asdl.h
  /usr/local/include/python3.7m/ast.h
  /usr/local/include/python3.7m/bitset.h
  /usr/local/include/python3.7m/bltinmodule.h
  /usr/local/include/python3.7m/boolobject.h
  /usr/local/include/python3.7m/bytearrayobject.h
  /usr/local/include/python3.7m/bytes_methods.h
  /usr/local/include/python3.7m/bytesobject.h
  /usr/local/include/python3.7m/cellobject.h
  /usr/local/include/python3.7m/ceval.h
  /usr/local/include/python3.7m/classobject.h
  /usr/local/include/python3.7m/code.h
  /usr/local/include/python3.7m/codecs.h
  /usr/local/include/python3.7m/compile.h
  /usr/local/include/python3.7m/complexobject.h
  /usr/local/include/python3.7m/context.h
  /usr/local/include/python3.7m/datetime.h
  /usr/local/include/python3.7m/descrobject.h
  /usr/local/include/python3.7m/dictobject.h
  /usr/local/include/python3.7m/dtoa.h
  /usr/local/include/python3.7m/dynamic_annotations.h
  /usr/local/include/python3.7m/enumobject.h
  /usr/local/include/python3.7m/errcode.h
  /usr/local/include/python3.7m/eval.h
  /usr/local/include/python3.7m/fileobject.h
  /usr/local/include/python3.7m/fileutils.h
  /usr/local/include/python3.7m/floatobject.h
  /usr/local/include/python3.7m/frameobject.h
  /usr/local/include/python3.7m/funcobject.h
  /usr/local/include/python3.7m/genobject.h
  /usr/local/include/python3.7m/graminit.h
  /usr/local/include/python3.7m/grammar.h
  /usr/local/include/python3.7m/import.h
  /usr/local/include/python3.7m/intrcheck.h
  /usr/local/include/python3.7m/iterobject.h
  /usr/local/include/python3.7m/listobject.h
  /usr/local/include/python3.7m/longintrepr.h
  /usr/local/include/python3.7m/longobject.h
  /usr/local/include/python3.7m/marshal.h
  /usr/local/include/python3.7m/memoryobject.h
  /usr/local/include/python3.7m/metagrammar.h
  /usr/local/include/python3.7m/methodobject.h
  /usr/local/include/python3.7m/modsupport.h
  /usr/local/include/python3.7m/moduleobject.h
  /usr/local/include/python3.7m/namespaceobject.h
  /usr/local/include/python3.7m/node.h
  /usr/local/include/python3.7m/object.h
  /usr/local/include/python3.7m/objimpl.h
  /usr/local/include/python3.7m/odictobject.h
  /usr/local/include/python3.7m/opcode.h
  /usr/local/include/python3.7m/osdefs.h
  /usr/local/include/python3.7m/osmodule.h
  /usr/local/include/python3.7m/parsetok.h
  /usr/local/include/python3.7m/patchlevel.h
  /usr/local/include/python3.7m/pgen.h
  /usr/local/include/python3.7m/pgenheaders.h
  /usr/local/include/python3.7m/py_curses.h
  /usr/local/include/python3.7m/pyarena.h
  /usr/local/include/python3.7m/pyatomic.h
  /usr/local/include/python3.7m/pycapsule.h
  /usr/local/include/python3.7m/pyconfig.h
  /usr/local/include/python3.7m/pyctype.h
  /usr/local/include/python3.7m/pydebug.h
  /usr/local/include/python3.7m/pydtrace.h
  /usr/local/include/python3.7m/pyerrors.h
  /usr/local/include/python3.7m/pyexpat.h
  /usr/local/include/python3.7m/pyfpe.h
  /usr/local/include/python3.7m/pyhash.h
  /usr/local/include/python3.7m/pylifecycle.h
  /usr/local/include/python3.7m/pymacconfig.h
  /usr/local/include/python3.7m/pymacro.h
  /usr/local/include/python3.7m/pymath.h
  /usr/local/include/python3.7m/pymem.h
  /usr/local/include/python3.7m/pyport.h
  /usr/local/include/python3.7m/pystate.h
  /usr/local/include/python3.7m/pystrcmp.h
  /usr/local/include/python3.7m/pystrhex.h
  /usr/local/include/python3.7m/pystrtod.h
  /usr/local/include/python3.7m/pythonrun.h
  /usr/local/include/python3.7m/pythread.h
  /usr/local/include/python3.7m/pytime.h
  /usr/local/include/python3.7m/rangeobject.h
  /usr/local/include/python3.7m/setobject.h
  /usr/local/include/python3.7m/sliceobject.h
  /usr/local/include/python3.7m/structmember.h
  /usr/local/include/python3.7m/structseq.h
  /usr/local/include/python3.7m/symtable.h
  /usr/local/include/python3.7m/sysmodule.h
  /usr/local/include/python3.7m/token.h
  /usr/local/include/python3.7m/traceback.h
  /usr/local/include/python3.7m/tupleobject.h
  /usr/local/include/python3.7m/typeslots.h
  /usr/local/include/python3.7m/ucnhash.h
  /usr/local/include/python3.7m/unicodeobject.h
  /usr/local/include/python3.7m/warnings.h
  /usr/local/include/python3.7m/weakrefobject.h

Warning: Unbrewed '.pc' files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected '.pc' files:
  /usr/local/lib/pkgconfig/python-3.7.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libpython3.7m.a

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  gdbm
  xz

:shell: In visual-studio-code Terminal shell zsh is NOT in the ***First level 1%***

🤔 🐸 Why in visual-studio-code " 🐚 Terminal shell zsh is in seconde level 2%" ?
In Ubuntu21.04 + ubuntu-desktop environment: 🔬

  1. I open first Terminal (Ctrl-Alt-t) ;
  2. in the opened Terminal: <-- 🐚 Terminal shell zsh is in 1% level
  • pwd
  • cd ~/.dotfiles
  • git branch
  • git checkout homebrew
  • open visual-studio-code here (in this directory: .dotfiles/): code .
  1. In VS code, presse maximize customized key (Ctrl-Shift-Alt-`) to open Terminal
    <-- 🐚 Terminal shell zsh is in 2% level

🤔 🧪 What if test it in a reverse order?
In Ubuntu21.04 + Regolith-Desktop environment: 🔬
A. open application Super Space, then search vs: in VS code: open Terminal
-> open .dotfiles directory <-- 🐚 Terminal shell zsh is in 2% level ;
B. press Super Enter to open Terminal <-- 🐚 Terminal shell zsh is in 3% level.

❓ 🔎 Where is "🐚 Terminal shell zsh is in 1% level"?

Hello from .zshrc

.dotfiles 2 % git branch                                        9:34:11
* homebrew
  main

.dotfiles 2 % pwd                                               9:34:21
/home/username/.dotfiles

.dotfiles 2 %
.dotfiles 2 % cat zshrc                                         9:35:17
echo Hello from .zshrc

# Set Variable
# Syntax highlighting for man pages using bat
export MANPAGER="sh -c 'col -bx | bat -l man -p'"


# Change ZSH Options


# Create Aliases
alias ls='ls -lAFh'

# Customize Prompt(s)
PROMPT='
%1~ %L %# '

RPROMPT='%*'

# Add Locations to $PATH Variable
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

# Write Handy Functions
function mkcd() {
  mkdir -p "$@" && cd "$_";
}

# Use ZSH Plugins


# ... and Other Surprises

Error brew link gdbm and brew link xz

.dotfiles 1 % brew link gdbm                                                           8:51:48
Linking /home/linuxbrew/.linuxbrew/Cellar/gdbm/1.21... 
Error: Could not symlink share/locale/eo/LC_MESSAGES/gdbm.mo
/home/linuxbrew/.linuxbrew/share/locale/eo/LC_MESSAGES is not writable.

.dotfiles 1 % brew link xz                                                             8:56:42
Linking /home/linuxbrew/.linuxbrew/Cellar/xz/5.2.5... 
Error: Could not symlink share/locale/fr/LC_MESSAGES/xz.mo
/home/linuxbrew/.linuxbrew/share/locale/fr/LC_MESSAGES is not writable.

:octocat: brew install git

You can try again using: brew link

brew install git

.dotfiles 3 % brew link gettext                                        9:03:37
Linking /home/linuxbrew/.linuxbrew/Cellar/gettext/0.21_2... 
Error: Could not symlink share/locale/bg/LC_MESSAGES/gettext-runtime.mo
/home/linuxbrew/.linuxbrew/share/locale/bg/LC_MESSAGES is not writable.

.dotfiles 3 % brew link libidn2                                        9:05:55
Linking /home/linuxbrew/.linuxbrew/Cellar/libidn2/2.3.2... 
Error: Could not symlink share/locale/eo/LC_MESSAGES/libidn2.mo
/home/linuxbrew/.linuxbrew/share/locale/eo/LC_MESSAGES is not writable.

.dotfiles 3 % brew link util-linux                                     9:06:24
Linking /home/linuxbrew/.linuxbrew/Cellar/util-linux/2.37.2... 
Error: Could not symlink share/locale/ca/LC_MESSAGES/util-linux.mo
/home/linuxbrew/.linuxbrew/share/locale/ca/LC_MESSAGES is not writable.

.dotfiles 3 % brew link m4                                             9:07:06
Linking /home/linuxbrew/.linuxbrew/Cellar/m4/1.4.19... 
Error: Could not symlink share/locale/bg/LC_MESSAGES/m4.mo
/home/linuxbrew/.linuxbrew/share/locale/bg/LC_MESSAGES is not writable.

.dotfiles 3 % brew link bison                                          9:07:51
Linking /home/linuxbrew/.linuxbrew/Cellar/bison/3.8.2... 
Error: Could not symlink share/locale/bg/LC_MESSAGES/bison-gnulib.mo
/home/linuxbrew/.linuxbrew/share/locale/bg/LC_MESSAGES is not writable.

.dotfiles 3 % brew link git                                            9:08:08
Linking /home/linuxbrew/.linuxbrew/Cellar/git/2.33.0... 
Error: Could not symlink share/locale/bg/LC_MESSAGES/git.mo
/home/linuxbrew/.linuxbrew/share/locale/bg/LC_MESSAGES is not writable.

Fail to brew install --cask google-chrome in GNU/Linux Ubuntu 21.04

.dotfiles 1 % brew search google-chrome                                                8:56:49
==> Formulae
googler

.dotfiles 1 % brew info google-chrome                                                  8:59:10
google-chrome: 94.0.4606.71 (auto_updates)
https://www.google.com/chrome/
Not installed
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/google-chrome.rb
==> Name
Google Chrome
==> Description
Web browser
==> Artifacts
Google Chrome.app (App)
==> Analytics
install: 25,382 (30 days), 51,889 (90 days), 195,471 (365 days)

.dotfiles 1 % brew install --cask google-chrome                                        8:59:32
Error: Installing casks is supported only on macOS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.