Open up a terminal and move into the directory holding the wpa_supplicant config file.
cd /etc/wpa_supplicantYou may want to backup your config file before you do anything just in case.
sudo cp wpa_supplicant.conf ~/Desktop/wpa_supplicant.conf| from datetime import datetime | |
| datetime.now().astimezone().strftime('%Y-%m-%d %H:%M:%S %Z') |
| import ddf.minim.analysis.*; | |
| import ddf.minim.*; | |
| Minim minim; | |
| AudioSource in; | |
| FFT fft; | |
| void setup() { | |
| size(512, 200); | |
| import os | |
| import time | |
| import math | |
| ''' | |
| Note: | |
| Requires the `sox` package, which can be installed with the following command: | |
| sudo apt-get install sox | |
| ''' |
| #!/usr/bin/python3 | |
| # backup-rescuetime.py: Backup all of last month's rescuetime data | |
| # | |
| # Columns are Date,Time Spent (seconds),Number of People,Activity,Category,Productivity | |
| # Rows are hourly breakdowns of the activities done | |
| # | |
| # Must have directory called 'rescuetime_data' in same directory as script | |
| # | |
| # Sample crontab entry to backup at 6AM on the 1st of every month: | |
| # 0 6 1 * * python3 ~/rescuetime/backup-rescuetime.py |
Grr this took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked.
First install motion:
~> sudo apt-get install motion
Then create a config file:
~> mkdir ~/.motion
~> nano ~/.motion/motion.conf
| #sudo apt install -yqqq figlet cowsay | |
| figlet -f $(ls /usr/share/figlet/*.flf | shuf -n1) "Hello" | cowsay -n -f $(ls /usr/share/cowsay/cows/ | shuf -n1) |
| import sys, pygame | |
| from pygame import Rect | |
| from pygame.locals import * | |
| size = width, height = 640, 480 | |
| pos = (0, 0) #mouse position | |
| inital_drag_pos = (0, 0) | |
| dragging = False |
| Commands | |
| --------------- | |
| man # MANual for command | |
| ls # LiSt files (-l more information, -R recursive) | |
| cd # Change Directory (if no folder, go home) | |
| pwd # Print Working Directory | |
| mkdir -p # MaKe DIRectory (-p create missing parent directories) | |
| touch # create file | |
| rm -fr # ReMove directory and all its contents | |
| [TAB key] # press tab key to autocomplete filename or command |
| #color.sh | |
| #Usage: | |
| # ./color.sh somecolor some text to be colored | |
| #ex. ./color.sh lightblue hello world | |
| color='\033[0m' | |
| nocolor="\033[0m" | |
| case "$1" in | |
| black) color="\033[0;30m";; |