This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#title :linux-mint-14-shellshock.sh | |
#date :20140927 | |
#notes :Install Vim and Emacs to use this script. | |
#bash_version :4.1.5(1)-release | |
# | |
# Linux Mint 14 MATE is no longer supported, but if you have no option to upgrade, | |
# this should upgrade bash and make your system safe from the | |
# 'Shellshock' vulnerability (CVE-2014-6271 and CVE-2014-7169). | |
# run as root. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.urls import reverse | |
from django.utils import timezone | |
# Code example for a "job board" style django site | |
# Written by Alex Jerez (alexjerez@fastmail.fm) | |
# for Django 2.0/Python 3.6 | |
JOB_CATEGORIES = ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Anagram puzzle | |
# Python 3.6 | |
# October 18, 2018 | |
# by Alex Jerez for Micky Loo (SinglePlatform) | |
def is_anagram(first_word, second_word): | |
leftover_letters = second_word | |
for letter in first_word: | |
if letter in leftover_letters: |