Skip to content

Instantly share code, notes, and snippets.

View mirmousaviii's full-sized avatar

Mostafa Mirmousavi mirmousaviii

View GitHub Profile
sudo pacman -S gphoto2 v4l-utils v4l2loopback-dkms ffmpeg
sudo modprobe v4l2loopback exclusive_caps=1 max_buffers=2
sudo nano /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
pacman -S linux-lts or ...
vim /boot/loader/entries/arch.conf or ...
reboot
@mirmousaviii
mirmousaviii / pre-commit-eslint
Created June 8, 2020 16:30 — forked from linhmtran168/pre-commit-eslint
Pre-commit hook to check for Javascript using ESLint
#!/bin/sh
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$")
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
fi
PASS=true
1-In the github repo on Settings > Integration & Services, enable
2-Go to travisCI page and enable the repo
3-Configure the env variables on TravisCI so that it is not necessary to save credentials on github
-in the project Settings on TravisCI, add the entry for netlify site id: NETLIFY_SITE_ID - <site_id from .netlify file generated on netlify create>
-create a netlify access token for TravisCI
-On Netlify Dashboard, Go to Account Settings > OAuth Applications (https://app.netlify.com/account/applications) > Personal access tokens and press New Access Token
-Name it anything, but to make it easier the suggestion is name TravisCI.
-Generate it and COPY it - you won’t see it again!
-in the project Settings on TravisCI, add the entry for netlify personal access token generated for TravisCI: NETLIFY_ACCESS_TOKEN
4-Generate a .travis.yml file in the local repo

Keybase proof

I hereby claim:

  • I am mirmousaviii on github.
  • I am mirmousavi (https://keybase.io/mirmousavi) on keybase.
  • I have a public key ASC-uZ5KCi4y1LMBHl-x_oC2-8hooMAYxTWjrFnwioCsZAo

To claim this, I am signing this object: