Skip to content

Instantly share code, notes, and snippets.

@eh-am
Last active December 13, 2019 20:23
Show Gist options
  • Save eh-am/b2a5919fc1d535eb1ed70e265872356b to your computer and use it in GitHub Desktop.
Save eh-am/b2a5919fc1d535eb1ed70e265872356b to your computer and use it in GitHub Desktop.
FEDORA STUFF
  1. Install Fish https://software.opensuse.org/download.html?project=shells%3Afish%3Arelease%3A2&package=fish

  2. Set it as default shell chsh -s which fish``

  3. Get a proper theme/prompt (first enter fish with fish command)

fish_config

I use dracula theme and Informative VCS prompt.

make nvm call automatically https://gist.github.com/eugenet8k/535bf3c51d1fc7c31cb8784e55d4dae4#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file


Install Spotify

-http://www.edivaldobrito.com.br/spotify-no-fedora-e-derivados/- with flatpak now


external monitor

https://unix.stackexchange.com/a/351637


install vscode, chrome


unlock root account

sudo passwd root


extensions

https://wiki.gnome.org/Apps/Tweaks


install npm packages globally without sudo https://github.com/glenpike/npm-g_nosudo


install postman https://gist.github.com/hauthorn/d1da427b16133776bd8c65db802bc6ad#gistcomment-2392810


Increasing the amount of inotify watchers https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers


gnome shell

https://blogs.gnome.org/ne0sight/2016/12/25/how-to-install-gnome-shell-extensions-with-firefox-52/


install direnv

https://github.com/direnv/direnv#fish


vscode, install prettier


tmux

https://github.com/tmux-plugins/tpm plugin manager

https://github.com/tmux-plugins/tmux-resurrect https://github.com/tmux-plugins/tmux-continuum

use this to open new panes in same dir https://unix.stackexchange.com/a/109255

a cool theme https://github.com/jimeh/tmux-themepack https://github.com/powerline/fonts

TODO (copy my dotenv)


https://forums.fedoraforum.org/showthread.php?317721-fedora-28-and-firefox-video(h264-youtube-gstreamer1)


install peek to record the screen

https://github.com/phw/peek#fedora


https://ro-che.info/articles/2017-03-26-increase-open-files-limit


set up system-monitor on gnome shell

https://extensions.gnome.org/extension/120/system-monitor/


setting up global gitignore

# Check if you already have a global git ignore
config --get core.excludesfile 

# If not, set one
git config --global core.excludesfile '~/.gitignore'

setting up samba

https://www.hiroom2.com/2017/08/02/fedora-26-samba-en/ https://unix.stackexchange.com/a/137192

also https://serverfault.com/a/683847

so i had to disable se linux =/ https://unix.stackexchange.com/a/15132


minikube

kubernetes/minikube#2513 (comment)


space vim https://github.com/SpaceVim/SpaceVim LIXO


fish https://github.com/aluxian/fish-kube-prompt/ https://github.com/evanlucas/fish-kubectl-completions


install put windows

https://askubuntu.com/a/1089033

and use same keybindings (shift super e for top right corner)


good tools https://github.com/variadico/noti https://raw.githubusercontent.com/so-fancy/diff-so-fancy https://github.com/sharkdp/bat https://github.com/tldr-pages/tldr

pwittchen/spotify-cli-linux#41


samba

sudo chmod -R 777 /share
sudo chown -R nobody.nobody /share
sudo chcon -t samba_share_t /share

add this to fstab https://www.redhat.com/archives/rhl-list/2009-July/msg00858.html ^ is only needed since we are mounting a ntfs volume, here's the fstab entry: /dev/sdb1 /mnt/hd ntfs defaults,users,auto,permissions,exec,rw,umask=000,uid=nobody,gid=nobody,context=system_u:object_r:samba_share_t:s0 0 0

set default permissions on that directory (not really applicable for our specific use case) https://unix.stackexchange.com/a/1315


vnc

dconf > org > gnome > desktop > remote-access > require-encryption - uncheck (https://askubuntu.com/questions/463486/can-no-longer-use-screen-share-to-connect-mac-to-ubuntu-since-upgrading-to-14-04)

ssh "eduardo@office" -L 5900:localhost:5900


ssh

mounting samba over ssh

first tunnel smb sudo ssh -L 445:localhost:445 eduardo@office

then mount (in mac) using

mount -t smbfs //guest:@localhost/share ~/mount


notify when dns changes bash -c 'while true; do if [[ $(dig +short eh-am.ddns.net) = "179.247.252.217" ]]; then notify-send "dsn-replicated"; fi; sleep 5; done'

zenity --entry "a"


pra funcionar steam link direito (abrindo big picture no monitor correto, favor usar)

"start big picture mode windowed"

(pra acessar, va em big picture -> display)

mac issues

ethernet usb adapter

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