// Install Camera $ apt-get install motion $ nano /etc/motion/motion.conf > stream_localhost off $ nano /etc/default/motion > start_motion_daemon = yes
// Control Camera (Use Below motion command)
# DNS Spoofing | |
dnsspoof -i eth0 -f hosts | |
# ARP Spoofing (Pass all traffic through the device) | |
sudo arpspoof -i eth0 -t 10.0.0.138 10.0.0.8 | |
sudo arpspoof -i eth0 -t 10.0.0.8 10.0.0.138 | |
# hosts file is like this | |
# 10.0.0.28 *.facebook.com |
Get the Cert Bot
$ cd /usr/local/sbin
$ sudo wget https://dl.eff.org/certbot-auto
$ sudo chmod a+x /usr/local/sbin/certbot-auto
Run the certbot-auto
"use strict"; | |
function getIncidenceOfCoincidence(sequence) { | |
// Get frequency | |
let frequencyTable = {}; | |
for (let letter of sequence) { | |
if (!frequencyTable.hasOwnProperty(letter)) { | |
frequencyTable[letter] = 1; |
#!/bin/bash | |
function enableTouchBar() { | |
local presentationModeProperties="<dict><key>app</key><string>fullControlStrip</string><key>appWithControlStrip</key><string>fullControlStrip</string><key>fullControlStrip</key><string>app</string></dict>" | |
defaults delete com.apple.touchbar.agent PresentationModeGlobal | |
defaults write com.apple.touchbar.agent PresentationModeFnModes $presentationModeProperties | |
launchctl load /System/Library/LaunchAgents/com.apple.controlstrip.plist |
Note: You can use Pre SignUp Triggers to auto confirm users
Install Arduino Studio
Install USB Microcontroller Driver for WCH CH340G
2.2 Go to WCH manufacturer site - http://www.wch.cn/
# Change to directory with photos | |
cd /Users/me/photo/upload | |
# Flatten Current Directory (Forces overwrite) | |
find . -mindepth 2 -type f -exec mv -f '{}' . ';' | |
# Delete all folders (Assumes empty) | |
find . -type d -delete | |
# Split into 5000 files per folder |