(Create a symlink pytest for py.test)
pytest [options] [file_or_dir] [file_or_dir] ...
Help:
This is a fork of ruleb's count down that rended one of the else ifs unreachable in his code. Even though he was notified by menny people he never fixed his code so i took it on to... fix 1 line of code. This Fork may expand if i have the time to re-learn coffie and see if any outher code is broken.
The rest of this readme and the html code and scss is still the orginal by ruleb.
Simple Dashing widget to countdown until a certain moment. Flashes the widget when finished.
#!/usr/bin/env ruby | |
# Works with IFTTT recipe https://ifttt.com/recipes/125999 | |
# | |
# Set Hazel to watch the folder you specify in the recipe. | |
# Make sure nvALT is set to store its notes as individual files. | |
# Edit the $target_folder variable below to point to your nvALT | |
# ntoes folder. | |
require 'date' | |
require 'open-uri' | |
require 'net/http' |
# Get info about all Contexts in ldap | |
ldapsearch -x -H ldap://localhost -b "" -s base configContext namingContexts monitorContext | |
# display cn=config structures and data | |
ldapsearch -Y EXTERNAL -H ldapi:/// -b "cn=config" | |
# or | |
slapcat -b cn=config > config.ldiff | |
# modify config |
<monalisa: ~> $ has_hsts.py duckduckgo.com google.com search.google.com conformal.com yahoo.com lobste.rs news.ycombinator.com reddit.com | |
[+] checking whether duckduckgo.com supports HSTS... no | |
[+] checking whether google.com supports HSTS... no | |
[+] checking whether search.google.com supports HSTS... no | |
[+] checking whether conformal.com supports HSTS... yes | |
[+] checking whether yahoo.com supports HSTS... no | |
[+] checking whether lobste.rs supports HSTS... yes | |
[+] checking whether news.ycombinator.com supports HSTS... no | |
[+] checking whether reddit.com supports HSTS... doesn't have SSL working properly (hostname 'reddit.com' doesn't match either of 'a248.e.akamai.net', '*.akamaihd.net', '*.akamaihd-staging.net') |
#! /usr/bin/env python | |
import redis | |
import random | |
import pylibmc | |
import sys | |
r = redis.Redis(host = 'localhost', port = 6389) | |
mc = pylibmc.Client(['localhost:11222']) |
def new_user(admin_username, admin_password): | |
env.user = 'root' | |
# Create the admin group and add it to the sudoers file | |
admin_group = 'admin' | |
runcmd('addgroup {group}'.format(group=admin_group)) | |
runcmd('echo "%{group} ALL=(ALL) ALL" >> /etc/sudoers'.format( | |
group=admin_group)) | |
# Create the new admin user (default group=username); add to admin group |