First set up your keyboard layout. For example, in Spanish:
# loadkeys es
For a list of all acceptable keymaps:
# localectl list-keymaps
A list of conda commands that I regularly use but keep forgetting how to use
conda update conda
conda create --name envname python=pythonversion
If no python=pythonversion is given it will install the default python version for the installed anaconda or conda
#!/usr/bin/python3 | |
import asyncio | |
import time | |
import socket | |
import argparse | |
import aiohttp | |
class MyConnector(aiohttp.TCPConnector): |
((python-mode | |
;; 激活 pyvenv-mode,也可以自己在 init.el 中默认激活 | |
(eval . (pyvenv-mode)) | |
;; 这个要写绝对路径 | |
(pyvenv-activate . "/Users/cosven/projectpath/.venv") | |
;; 默认 select python-pylint 这个 checker | |
;; |
from itertools import islice | |
def next_n_lines(file_opened, N): | |
return [x.strip() for x in islice(file_opened, N)] | |
with open("samplefile", 'r') as f: | |
x = "" | |
while x != []: |
# conda-env-autodetect.plugin.zsh | |
# Copy this file to ~/.oh-my-zsh/plugins/conda-env-autodetect/ | |
# And make sure you have a .venv file with your env's name in your | |
# preject's root folder. | |
_conda_env_auto_activate() { | |
if [ -f ".venv" ]; then | |
# check conda is active |
(defun my-helm-display-child-frame (buffer &optional resume) | |
"Display `helm-buffer' in a separate frame. | |
Function suitable for `helm-display-function', | |
`helm-completion-in-region-display-function' | |
and/or `helm-show-completion-default-display-function'. | |
See `helm-display-buffer-height' and `helm-display-buffer-width' to | |
configure frame size." | |
(if (not (display-graphic-p)) |
mkdir emacs | |
cd emacs | |
git init | |
git remote add origin https://github.com/emacs-mirror/emacs.git | |
git fetch --depth 1 origin emacs-26 | |
git reset --hard FETCH_HEAD | |
sudo apt install autoconf make gcc texinfo libgtk-3-dev libxpm-dev libjpeg-dev libgif-dev libtiff5-dev libgnutls-dev libncurses5-dev | |
./configure | |
make | |
sudo make install |
Download Emacs dependencies from GNU for your architecture: | |
http://ftp.gnu.org/gnu/emacs/windows/emacs-25-x86_64-deps.zip | |
http://ftp.gnu.org/gnu/emacs/windows/emacs-25-i686-deps.zip | |
The following DLLs need to be installed into Emacs's bin directory: | |
libffi-6.dll | |
libgmp-10.dll | |
libgnutls-30.dll |
BIOS, GPT, encryption, btrfs, xfs. encrypted btrfs root, unencrypted xfs /home
This was created to document the procedures followed during the installation of Arch Linux. This is intended to act as a guide in the event a full installation is required in the future. This is primarily for my own use. I plan to document each step with code. If anyone finds this helpful, then please use it at your own risk, I assume no responsibility for any damage incurred from following these notes. I would recommend that you follow the Arch Linux Installation Guide and the Arch Linux wikis, rather than these set of notes.