This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
A simple Packer + Vagrant install of Ubuntu 20.04 (Focal Fossa) LTS server for arm64, to run from my M1 Mac on Parallels Pro (17.1). Currently on MacOS Monterey.
Packer will run the ansible playbook.yml
before the machine is shutdown and exported.
The installation is automated by cloud-init (which reads user-data
). The file meta-data
just needs to be an empty text file (you need to create this - no blank files or folders allowed in gists).
ubuntu2004/
# syntax=docker/dockerfile:1 | |
FROM ubuntu:xenial | |
RUN apt-get update | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y upgrade | |
RUN apt-get install -y cmake python3 python2.7 make gcc g++ git curl vim | |
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - | |
RUN apt-get install -y nodejs |
% FontAwesome (http://fortawesome.github.com/Font-Awesome/) bindings for (Xe)LaTeX | |
% Author: Honza Ustohal <[email protected]> | |
% A few icons added by: Spencer Boucher <[email protected]> | |
% | |
% Translation of FontAwesome's private range characters into XeTeX symbols. All icons are camel-cased and prefixed with 'fa', i.e. what was .icon-align-center the CSS version of FontAwesome becomes \faAlignCenter | |
% This might be reworked into a full blown package in the near future | |
% | |
% Prerequisite: | |
% XeLaTeX, FontAwesome installed as a system font accessible by XeLaTeX | |
% |
import tweepy | |
import traceback | |
import _thread | |
consumer_key = '' | |
consumer_secret = '' | |
access_key = '' | |
access_secret = '' | |
# -*- coding: utf-8 -*- | |
""" | |
This script will delete all of the tweets in the specified account. | |
You may need to hit the "more" button on the bottom of your twitter profile | |
page every now and then as the script runs, this is due to a bug in twitter. | |
You will need to get a consumer key and consumer secret token to use this | |
script, you can do so by registering a twitter application at https://dev.twitter.com/apps | |
@requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1) |
PEP: 8
Title: Style Guide for Python Code
Version: $Revision$
Last-Modified: $Date$
Author: Guido van Rossum <[email protected]>,
Barry Warsaw <[email protected]>,
Nick Coghlan <[email protected]>
Status: Active
Type: Process
Content-Type: text/x-rst
"""Provide high-level UDP endpoints for asyncio. | |
Example: | |
async def main(): | |
# Create a local UDP enpoint | |
local = await open_local_endpoint('localhost', 8888) | |
# Create a remote UDP enpoint, pointing to the first one |
import json | |
import urllib2 | |
data = {} | |
req = urllib2.Request("http://10.10.10.161:5000/apitest") | |
req.add_header('Content-Type', 'application/json') | |
response = urllib2.urlopen(req, json.dumps(data)) | |
if response.get_code() != 200: | |
raise Exception("Response code: {0}".format(response.get_code()) |
john@mettabuntu:~/kafka_logger/react_frontend$ cat /home/john/.npm/_logs/2019-08-22T18_02_44_128Z-debug.log | |
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/bin/node', '/usr/local/bin/npm', 'start' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose run-script [ 'prestart', 'start', 'poststart' ] | |
5 info lifecycle [email protected]~prestart: [email protected] | |
6 info lifecycle [email protected]~start: [email protected] | |
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true | |
8 verbose lifecycle [email protected]~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/john/kafka_logger/react_frontend/node_modules/.bin:/home/john/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin |