Skip to content

Instantly share code, notes, and snippets.

View julianandrews's full-sized avatar

Julian Andrews julianandrews

View GitHub Profile
$ TFLOG=DEBUG terraform apply
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following
symbols:
+ create
Terraform will perform the following actions:
# frontegg_workspace.workspace will be created
+ resource "frontegg_workspace" "workspace" {
@julianandrews
julianandrews / send-gmail.sh
Created April 22, 2021 16:46
Simple shell script to send email using gmail
# Depends on: msmtp, libsecret-tools
#
# Set password:
# secret-tool store --label="msmtp password for jandrews271@gmail.com" service msmtp username jandrews271@gmail.com
#
# Send mail:
# echo "Message Body" | send-gmail myusername recipient@exmaple.com "My Subject"
send-gmail() {
local user="$1"
local to="$2"
class BacktrackingSolver:
def solve(self, state):
if self.is_a_solution(state):
return state
for move in self.get_candidates(state):
self.make_move(move, state)
solution = self.solve(state)
if solution:
return solution
@julianandrews
julianandrews / gmail-count
Last active March 5, 2016 22:53
Simple script to check your gmail inbox, suitable for use with i3status, xmobar or anything that can run scripts and use the output.
#!/usr/bin/python3
import argparse
import getpass
import keyring
import requests
import sys
import xml.etree.ElementTree
SERVICE_NAME = 'gmail-count'