Skip to content

Instantly share code, notes, and snippets.

View geenloop's full-sized avatar
🏠
Working from home

GeenLoop geenloop

🏠
Working from home
View GitHub Profile
@geenloop
geenloop / apache_passwd.bash
Created April 28, 2019 17:06
Password Authentication with Apache
apt-get update
apt-get install apache2-utils
htpasswd -c /etc/apache2/.htpasswd user
nano /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
Mojave:*
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
High Sierra:*
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
Sierra:
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ macOS\ Sierra.app
El Capitan:
@geenloop
geenloop / jetidea
Created July 7, 2019 01:08
webstorm
~/Library/Preferences/
~/Library/Caches/
~/Library/Application Support/
~/Library/Logs/
@geenloop
geenloop / java.sh
Last active August 13, 2019 07:14
MAC OS X | Mojave install JAVA 8 openjdk
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8
@geenloop
geenloop / macFFmpeg.md
Created September 19, 2019 08:52 — forked from docPhil99/macFFmpeg.md
Mac webcam FFmpeg

#Capture and stream a webcam To capture using the iSight camera on a Mac, or infact any other webcam connected to the Mac, we can use FFmpeg. First get a list of the devices installed.

ffmpeg -f avfoundation -list_devices true -i "" 

This will list the aviable video and audio devices.

The below will capture at 30fps and the set video size to a file. fmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" out.avi