In a terminal start a server.
$ python -m SimpleHTTPServer 8000
In another terminal set up the cgroups freezer.
""" | |
Demo code for Mu/PygameZero using kenney.nl graphics. | |
There's a short video demo at https://www.youtube.com/watch?v=b2IPNCJtUL4. | |
NOTE: this relies on two patches to Mu which aren't yet in | |
the main PgZero repository, one which adds joystick | |
support, and another which adds a flip property to | |
the Actor class. | |
""" |
In a terminal start a server.
$ python -m SimpleHTTPServer 8000
In another terminal set up the cgroups freezer.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" Use in i3wm with: | |
Save as screeshot.py somewhere into your PATH | |
bindsym --release Print exec --no-startup-id screenshot.py | |
""" | |
import os |
Hello █████,
Thanks for getting in touch and for this tremendous invitation. I'm flattered and excited by the offer.
Representation matters to me. I'm curious: How are you aiming to build a diverse speaker line-up this year? Last years's conference only had 1 female and 1 person of color.
My inclusion rider: I'll join as a speaker if the line-up includes at least ██ women and ██ POC.
I realize putting together a diverse line-up is difficult. As a white male, I'd rather not take up a slot that could better feature someone not like me. Here's a list of people I can recommend.
activate application "SystemUIServer" | |
tell application "System Events" | |
tell process "SystemUIServer" | |
-- Working CONNECT Script. Goes through the following: | |
-- Clicks on Bluetooth Menu (OSX Top Menu Bar) | |
-- => Clicks on SX-991 Item | |
-- => Clicks on Connect Item | |
set btMenu to (menu bar item 1 of menu bar 1 whose description contains "bluetooth") | |
tell btMenu | |
click |
""" | |
Custom django checks. | |
H001: Field has no verbose name. | |
H002: Verbose name should use gettext. | |
H003: Words in verbose name must be all upper case or all lower case. | |
H004: Help text should use gettext. | |
H005: Model must define class Meta. | |
H006: Model has no verbose name. | |
H007: Model has no verbose name plural. |
# by @levelsio | |
# | |
# MIT licensed | |
# | |
# make sure you enable php_intl on PHP | |
# you can do by uncommenting ;extension=intl or ;extension=php_intl | |
# and installing php-intl, e.g. sudo apt-get install php-intl | |
# | |
# made for Nomad List to give people a notice if they go to a place | |
# where it is currently Ramadan |
I travel a lot so I'm down to like 30 minutes of packing per any kind of trip. I always bring one carry-on suitcase for any trips up to 2 weeks (that I never check in unless forced) -- I have an Away suitcase because it's got a built-in (removable) battery, and amazing wheels.
<!-- Maker Link by @levelsio --> | |
<!-- MIT License --> | |
<style> | |
body { | |
background:#333; | |
} | |
.levelsio-by { | |
font-family:"Helvetica Neue",sans-serif; | |
right:0; |
Whichever route you take to implementing containers, you’ll want to steer clear of common pitfalls that can undermine the efficiency of your Docker stack.
The beauty of containers—and an advantage of containers over virtual machines—is that it is easy to make multiple containers interact with one another in order to compose a complete application. There is no need to run a full application inside a single container. Instead, break your application down as much as possible into discrete services, and distribute services across multiple containers. This maximizes flexibility and reliability.
It is possible to install a complete Linux operating system inside a container. In most cases, however, this is not necessary. If your goal is to host just a single application or part of an application in the container, you need to install only the essential