This is a terse document covering the anatomy of a package built for the pacman package manager.
The following example commands can mostly run verbatim to manually create a
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; |
/*! | |
* jQzoom Evolution Library v2.3 - Javascript Image magnifier | |
* http://www.mind-projects.it | |
* | |
* Copyright 2011, Engineer Marco Renzi | |
* Licensed under the BSD license. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* * Redistributions of source code must retain the above copyright |
import os | |
import sys | |
import re | |
import hashlib | |
import csv | |
import time | |
import locale | |
import getopt | |
var request = require('request'); | |
var unzip = require('unzip'); | |
var csv2 = require('csv2'); | |
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip') | |
.pipe(unzip.Parse()) | |
.on('entry', function (entry) { | |
entry.pipe(csv2()).on('data', console.log); | |
}) | |
; |
var changed = false; | |
setTimeout(function () { | |
console.log("I'm hacking in setTimeout~~~"); | |
changed = true; | |
}) | |
while (true) { | |
if (changed) { | |
console.log("The system has been hacked by outer program. Exiting..."); |
// http://jsfiddle.net/mkjh2ev5/1245/ | |
let cleanRoom = function() { | |
return new Promise(function(resolve, reject) { | |
resolve('Cleaned The Room'); | |
}); | |
}; | |
let removeGarbage = function(message) { | |
return new Promise(function(resolve, reject) { |
theta = linspace(0, 2*pi, 40); | |
phi = linspace(0, pi, 40); | |
[theta, phi] = meshgrid(theta, phi); | |
rho=1; | |
x = rho * sin(phi) .* cos(theta); | |
y = rho * sin(phi) .* sin(theta); | |
z = rho * cos(phi); |