Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="background.js"></script> | |
| </head> | |
| <body> | |
| <textarea id="sandbox"></textarea> | |
| </body> |
for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。
/Applications/Beyond Compare.app/Contents/MacOSBCompare to BCompare.bakBCompare , and chmod a+u BCompare#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
| h1 { | |
| counter-reset: h2counter; | |
| } | |
| h2 { | |
| counter-reset: h3counter; | |
| } | |
| h3 { | |
| counter-reset: h4counter; | |
| } | |
| h4 { |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
| -- Not my code: originally from https://redd.it/3t6s7k (author deleted; failed to ask for permission). | |
| -- Only tested on Windows. Date is set to dd/mmm/yy and time to machine-wide format. | |
| -- Save as "mpvhistory.lua" in your mpv scripts dir. Log will be saved to mpv default config directory. | |
| -- Make sure to leave a comment if you make any improvements/changes to the script! | |
| local HISTFILE = (os.getenv("APPDATA") or os.getenv("HOME").."/.config").."/mpv/mpvhistory.log"; | |
| mp.register_event("file-loaded", function() | |
| local title, logfile; |
| import os | |
| import sys | |
| import re | |
| import hashlib | |
| import csv | |
| import time | |
| import locale | |
| import getopt |