sudo nano /etc/update-manager/release-upgrades
ChangePromttoPrompt=normalsudo do-release-upgrade -f DistUpgradeViewNonInteractive -d
Because "screen" is broken.- If it hangs (it will), press Ctrl-C, then:
sudo dpkg --configure -a - Then
sudo apt update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // var s = 'text'; | |
| s.replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}); | |
| // "grkg" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function fetchSale() { | |
| var xml = UrlFetchApp.fetch('https://www.cyberport.de/feed.php?ft=NEWS&ff=rss').getContentText(); | |
| var root = XmlService.parse(xml).getRootElement(); | |
| var entries = root.getChild('channel').getChildren('item'); | |
| var res = ''; | |
| entries.forEach(function(el){ | |
| if (el.getChild('link').getText() != 'https://www.cyberport.de/cybersale') return; | |
| var diff = (new Date()).getTime() - (new Date(el.getChild('pubDate').getText())).getTime() | |
| if (diff > 864e5) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Aliexpress/eBay/Gearbest/Amazon URL Shortener | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.5 | |
| // @author hedgehog, core.equip | |
| // @match https://*.aliexpress.com/item/* | |
| // @match https://*.ebay.de/itm/* | |
| // @match https://*.ebay.com/itm/* | |
| // @match https://*.gearbest.com/* | |
| // @match https://*.amazon.de/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.acme.logging | |
| import groovy.json.JsonOutput | |
| import java.nio.charset.StandardCharsets | |
| import java.util.logging.Handler | |
| import java.util.logging.Level | |
| import java.util.logging.LogRecord | |
| class GrayLogHandler extends Handler { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Promise.defer = function () { | |
| return (_ => { | |
| let resolve, reject | |
| let p = new Promise((res, rej) => { | |
| resolve = res | |
| reject = rej | |
| }) | |
| return {promise: p, reject, resolve} | |
| })() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package dev.coreequip.security | |
| import javax.net.ssl.HttpsURLConnection | |
| import javax.net.ssl.SSLContext | |
| import javax.net.ssl.TrustManager | |
| import javax.net.ssl.X509TrustManager | |
| import java.security.MessageDigest | |
| import java.security.cert.CertificateException | |
| import java.security.cert.X509Certificate |
Bookmarklet that copies a shortened URL from popular shopping sites into the clipboard.
Just drag & drop this link -> Shorty <- to your bookmark bar. Edit it an paste as URL this text:
javascript:u=location.href;[[/^(https?:\/\/[a-z]+\.aliexpress\.com\/item\/[0-9]+\.html)\??.*$/,'$1'],[/^(https?:\/\/www\.ebay(?:\.[a-z]+)+\/itm\/)[^\/]+(\/[0-9]+)\??.*$/,'$1-$2'],[/^(https?:\/\/www\.gearbest\.com\/)[^\/]+(\/pp_[0-9]+\.html)\??.*$/,'$1-$2'],[/^(https?:\/\/\w+\.amazon\.[\w.]+\/).*?\/(B[A-Z0-9]+).*$/,'$1dp/$2'],[/^(https?:\/\/\w+\.alternate\.de\/).*?\/(product\/\d+).*$/,'$1$2'],[/^(https?:\/\/\w+\.conrad\.de\/).*?-(\d+\.html).*$/,'$1$2'],[/^(https:\/\/\www\.heise\.de\/).*(-\d+)\.html/,'$1$2'],[/^(https:\/\/\www\.golem\.de\/).*-(\d+)-(\d+)\.html/,'$1$2/$3']].forEach(r=>u=u.replace(r[0],r[1]));d=document;t=d.createElement('textarea');t.textContent=u;d.body.appendChild(t);s=d.getSelection();s.removeAllRanges();t.select();d.execCommand('copy');s.removeAllRanges();d.bo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "syscall" | |
| "time" | |
| "unsafe" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import csv | |
| import json | |
| import os | |
| import sys | |
| if len(sys.argv) < 2: | |
| print('Usage: {} <convertfile.(json|csv)>'.format(os.path.basename(sys.argv[0]))) | |
| exit(0) |