Simple nodejs script to convert timeline from twitter (https://dev.twitter.com) to twtxt (https://github.com/buckket/twtxt) format.
$ npm install twitter moment
$ convert.js > ~/twtxt.txt
LOWER(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(TRIM('My String'), ':', ''), ')', ''), '(', ''), ',', ''), '\\', ''), '\/', ''), '\"', ''), '?', ''), '\'', ''), '&', ''), '!', ''), '.', ''), ' ', '-'), '--', '-'), '--', '-')) AS `post_name` |
#!/bin/bash | |
LINES=$(tput lines) | |
COLUMNS=$(tput cols) | |
declare -A snowflakes | |
declare -A lastflakes | |
clear |
"""A command line version of Minesweeper""" | |
import random | |
import re | |
import time | |
from string import ascii_lowercase | |
def setupgrid(gridsize, start, numberofmines): | |
emptygrid = [['0' for i in range(gridsize)] for i in range(gridsize)] |
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
}; | |
NodeList.prototype.__proto__ = Array.prototype; |
Season | Episode | Title | Reason | |
---|---|---|---|---|
1 | 5 | The Enchiridion | A good intro to the series, plus introduces the important Enchiridion | |
1 | 8 | Business Time* | First mention of Ooo being post-apocalyptic | |
1 | 9 | My Two Favorite People | Intros the Jake and LR plotline | |
1 | 10 | Memories of Boom Boom Mountain | A look at how Finn was adopted into Jake's Family | |
1 | 12 | Evicted! | Intros Marceline | |
1 | 16 | Ocean of Fear | Introduces Finn's phobia | |
1 | 22 | Henchman* | Establishes Finn and Marceline as friends | |
1 | 23 | Rainy Day Daydream* | good episode to show someone who’s never seen the show before | |
1 | 25 | His Hero | introduces the Lich and Billy |
Simple nodejs script to convert timeline from twitter (https://dev.twitter.com) to twtxt (https://github.com/buckket/twtxt) format.
$ npm install twitter moment
$ convert.js > ~/twtxt.txt
def progress_bar(iteration, total, barLength=50): | |
percent = int(round((iteration / total) * 100)) | |
nb_bar_fill = int(round((barLength * percent) / 100)) | |
bar_fill = '#' * nb_bar_fill | |
bar_empty = ' ' * (barLength - nb_bar_fill) | |
sys.stdout.write("\r [{0}] {1}%".format(str(bar_fill + bar_empty), percent)) | |
sys.stdout.flush() | |
def bar_example(): | |
for i in range(20): |
True fact: Mon server MariaDB s'est fait attaqué comme ça alors que le port dans l'iptable n'était pas ouvert.
[ Update 2020-05-31: I won't be maintaining this page or responding to comments anymore (except for perhaps a few exceptional occasions). ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.