- Edit
~/.ssh/config
- Add an item for each SSH identity/key following this example (replace github with appropriate name):
Host github
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_github.pub
IdentitiesOnly yes
Source: https://1password.community/discussion/130911/chosing-which-ssh-key-to-use
Move the public keys to your ~/.ssh/ directory.
Configure hosts for your personal and work GitHub profile by appending the following to your ~/.ssh/config:
switch into root: sudo su
list disks and partitions: fdisk -l
find main list filesystem partition and efi partition
create mountpoint: mkdir /mnt/arch
mount partition (additional argument needed for btrfs): mount -t auto -o subvol=@ /dev/nvme0n1p6 /mnt/arch/
(source: https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/3)
change root into mounted partition: arch-chroot /mnt/arch
mount EFI partition: mount -t auto /dev/nvme0n1p2 /efi/
If you are using an M1 mac and want to build an x86 (64-bit) image:
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build -t your_name/image_name .
if (Translator.BetterBibTeX) { | |
if (tex.has.month) { | |
tex.add({ name: 'month', value: tex.date.month}); | |
} | |
if (zotero.itemType === 'webpage') { | |
if (zotero.accessDate) { | |
var customDate = new Date(zotero.accessDate.replace(/\s*T?\d+:\d+:\d+.*/, '')); | |
var intlCustomDate = new Intl.DateTimeFormat('en-GB', {year: 'numeric', month: 'long', day: 'numeric'}).format(customDate); | |
tex.add({ name: 'note', value: "(accessed on " + intlCustomDate + ")" }); | |
} |
Based on https://davecoyle.com/tech-notes/ssh-keys-on-a-yubikey-mac/
Install the YubiKey Manager CLI (ykman); alternative installation options can be found here:
brew install ykman
Install GPG >= 2.1. Version 2.1 simplified the running of gpg-agent. The version isn’t a hard requirement, but it might make your life easier.
#!/bin/sh | |
# Source: https://stackoverflow.com/a/52962485/481690 | |
for i in `ls *.png`; do convert $i -background black -alpha remove -alpha off $i; done |
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
using UnityEngine.SceneManagement; | |
public class ScreenFader : MonoBehaviour | |
{ | |
public Image FadeImg; | |
public float fadeSpeed = 1.5f; | |
public bool sceneStarting = true; |
Work in progress
# create conda environment with all necessary packages
conda create -n tf114 pip python=3.7 tensorflow-gpu=1.14 gast=0.2.2 pandas pillow lxml jupyter matplotlib opencv cython
conda activate tf114
shell_plus
is provided by django-extensionspython manage.py shell_plus
from django.utils.translation import activate, get_language_info, ugettext as _
get_language_info('fr')
activate('fr')
print(_("your string here"))