-
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 .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
- Based on https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/tensorflow-1.14/index.html
# 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
- Use the following commands, replacing your string here with the string that you want to test.
- Obs.:
shell_plus
is provided by django-extensions
python 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"))
Pycharm doesn't use the environment variables settings defined in the UI (https://youtrack.jetbrains.com/issue/PY-38367#focus=Comments-27-3904155.0-0), so the workaround is creating a .env file in the base dir of the project with the variables. For example:
UID:${UID}
GID:${GID}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- cmake/Cuda.cmake 2021-07-30 12:07:44.707798734 -0400 | |
+++ cmake/Cuda.cmake.fixed 2021-07-30 12:22:30.551329548 -0400 | |
@@ -4,7 +4,7 @@ | |
# Known NVIDIA GPU achitectures Caffe can be compiled for. | |
# This list will be used for CUDA_ARCH_NAME = All option | |
-set(Caffe_known_gpu_archs "20 21(20) 30 35 50 60 61") | |
+set(Caffe_known_gpu_archs "30 35 50 60 61") | |
################################################################################################ |
NewerOlder