#Step 1: Update /etc/postfix/main.cf
$ sudo vim /etc/postfix/main.cf
Add the following lines, anywhere really, but preferably under the relayhost section:
relayhost = smtp.gmail.com:587
smtp_sasl_auth_enable = yes
| #!/usr/local/bin/bash | |
| # export PATH="${PATH}:${GOPATH}/bin:${HOME}/bin:/opt/homebrew/bin:/opt/chef-workstation/bin:${HOME}/.gem/ruby/2.6.0/bin" | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| export CLICOLOR=1 | |
| export LSCOLORS=GxFxCxDxCxegedabagaced | |
| export BASH_SILENCE_DEPRECATION_WARNING=1 |
| [push] | |
| default = current | |
| [pull] | |
| default = current | |
| [user] | |
| name = Michael Watters | |
| email = michael.watters@getcruise.com | |
| signingkey = 79C17A79D4C182BB68A935D9D98C35BBB92BE65B | |
| [alias] | |
| br = branch |
| #!/bin/bash | |
| if [ -f /usr/local/bin/magick ]; then | |
| cmd="magick" | |
| elif [ -f /usr/local/bin/convert ]; then | |
| cmd="convert" | |
| else | |
| echo "ImageMagick is required to run this script. Please ensure that ImageMagick is installed and try again." | |
| fi |
| #!/bin/bash | |
| PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
| # URL to monitor | |
| URL="https://downloads.nomachine.com/download/?id=2" | |
| # File to store previous version | |
| DATA_DIR="${HOME}/nomachine_watch" | |
| VERSION_FILE="${DATA_DIR}/previous_version.txt" |
| escape_char / | |
| comment_char % | |
| % This file was generated by taking the LC_TIME section from en_US and | |
| % replacing date/time representation with that of sv_SE from the glibc | |
| % locale sources | |
| % (http://sourceware.org/git/?p=glibc.git;a=tree;f=localedata/locales;hb=HEAD) | |
| % (https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html) | |
| % This file is part of the GNU C Library and contains locale data. |
#Step 1: Update /etc/postfix/main.cf
$ sudo vim /etc/postfix/main.cf
Add the following lines, anywhere really, but preferably under the relayhost section:
relayhost = smtp.gmail.com:587
smtp_sasl_auth_enable = yes
| set nocompatible " be iMproved, required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required | |
| Plugin 'VundleVim/Vundle.vim' |
| #!/usr/bin/python3 | |
| import cgitb; cgitb.enable(); | |
| import requests | |
| import string, sys, time, urllib | |
| import xml.etree.ElementTree as et | |
| def print_header(): | |
| print("""<html> | |
| <head> |
| #!/usr/bin/python3 | |
| import requests | |
| import string, sys, time, urllib | |
| import xml.etree.ElementTree as et | |
| def read_feed(url): | |
| r = requests.get(url) | |
| root = et.fromstring(r.text) |
| #!/usr/bin/python | |
| import commands | |
| import sys | |
| import md5 | |
| import random | |
| if len(sys.argv) <= 2: | |
| print("usage: mk_ipsum.py <num> <dir>\n") | |
| sys.exit(1) |