Skip to content

Instantly share code, notes, and snippets.

View NovaViper's full-sized avatar

Nova Leary NovaViper

  • United States
  • 00:44 (UTC -05:00)
View GitHub Profile
@Kranzes
Kranzes / guide.md
Last active April 15, 2024 22:33
SSH Resident Key Guide

Initial checks

Start by checking that there aren't any previous ssh keys inside the FIDO2 authenticator of your YubiKey. You can check if they exist by running the command below:

nix shell nixpkgs#yubikey-manager -c ykman fido credentials list

If the command above outputs a string mentioning "ssh" or "openssh", then you have already got a key generated and store on your YubiKey.

Evaluating additional authentication factors

Before generating a new ssh key to store on your YubiKey you must consider which additional required authentication factors you want to use. Below you can see a table with the available factors and their corresponding command:

@eliroca
eliroca / disable_enforce2FA_setting.md
Last active September 20, 2021 17:33
Disable Enforce Two-factor Authentication (2FA) Setting on NextCloudPi

Using the occ command to disable Two-factor Authentication on NCP v1.10.0, NC v15.0.5

Nextcloud’s occ command (origins from “ownCloud Console”) is Nextcloud’s command-line interface. You can perform many common server operations with occ, such as installing and upgrading Nextcloud, manage users, encryption, passwords, LDAP setting, and more.

occ is in the nextcloud/ directory; for example /var/www/nextcloud on Raspbian. occ is a PHP script. You must run it as your HTTP user to ensure that the correct permissions are maintained on your Nextcloud files and directories.

@diffficult
diffficult / installing_virt_manager.md
Last active April 11, 2024 04:10
Easy instructions to get virt-manager qemuv/kvm running on Arch

Easy instructions to get QEMU/KVM and virt-manager up and running on Arch

  1. Make sure your cpu support kvm with below command:

     grep -E "(vmx|svm)" --color=always /proc/cpuinfo
    
  2. Make sure BIOS have enable “Virtualization Technology”.

  3. User access to /dev/kvm so add your account into kvm(78) group:

@uglide
uglide / chroot.sh
Last active March 14, 2024 02:28
Chroot to Installed system on LVM
#!/bin/bash
fdisk -lu
pvscan
vgscan
vgchange -a y
lvscan
mount /dev/ubuntu-vg/root /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
@nucular
nucular / redditstyles.user.js
Last active January 28, 2018 04:24
reddit themes for the common folk: use the stylesheet of a subreddit everywhere
// ==UserScript==
// @name reddit styles
// @namespace http://nucular.github.io
// @version 0.6.1
// @description reddit themes for the common folk
// @copyright 2015, nucular
// @license MIT License
// @include http://www.reddit.com/*
// @include https://www.reddit.com/*
// @run-at document-start
@rxaviers
rxaviers / gist:7360908
Last active April 18, 2024 16:11
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: