Para bloquear um arquivo:
chattr +i arquivo
Para bloquear um diretório:
chattr +i diretorio/
Para liberar um arquivo:
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
Para bloquear um arquivo:
chattr +i arquivo
Para bloquear um diretório:
chattr +i diretorio/
Para liberar um arquivo:
The Logitech Options program isn't available for Linux, but a nice hacker on GitHub (PixlOne) created an open source project that lets you obtain some of that functionality. It's called logiops. It works in conjunction with the Solaar project as well, which I find especially handy since that shows your available battery life in the system tray and lets you pair/unpair devices with the Logitech Unifying Receiver.
Here are some additional pages with info that I used to generate this documentation:
" vim-plug pluggin | |
let g:plugged_home = '~/.config/nvim/plugged' | |
"------------ Plugins list ---------------- | |
" Plugins List | |
call plug#begin(g:plugged_home) | |
" UI related | |
Plug 'scrooloose/nerdtree' |
Para mostrar informações sobre os sistemas de arquivo nos quais cada ARQUIVO
reside ou, por padrão, sobre todos os sistemas de arquivos, podemos utilizar o comando df
.
Para checar o espaço em disco ocupado pelo diretório /tmp
e /opt
, usamos o comando du
:
Copie ambos os arquivos id_rsa
e id_rsa.pub
para o diretório ~/.ssh/
.
Em seguida, altere as permissões e o proprietário dos arquivos
$ chown user:user ~/.ssh/id_rsa*
$ chmod 600 ~/.ssh/id_rsa
$ chmod 644 ~/.ssh/id_rsa.pub
- name: ensure github.com is a known host | |
lineinfile: | |
dest: /root/.ssh/known_hosts | |
create: yes | |
state: present | |
line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}" | |
regexp: "^github\\.com" |
Original post: pop-os/shell#142 (comment)
As for how to implement this feature, here is what I've done myself. First, enable a static number of workspaces (e.g. 8 or 10):
gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.preferences num-workspaces 6
Then unbind all the GNOME default keybindings for switching between applications:
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Script to bootstrap an Odoo database (8.0).""" | |
import odoorpc | |
# Odoo connection | |
SUPER_PWD = 'admin' | |
HOST = 'localhost' | |
PORT = 8069 | |
DB = 'my_db' |