sudo nano /etc/update-manager/release-upgrades
ChangePromt
toPrompt=normal
sudo 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 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 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 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 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 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
// Reads the "Implementation-Version" from META-INF/MANIFEST.MF | |
def version = getClass().package?.implementationVersion == null ? '0.DEV' : getClass().package?.implementationVersion |
If you are using Linux, it is possible to use wget to update the IP. Here is a sample URL:
https://dyndns.topdns.com/update?hostname=www.example.com&username=myusername&password=mypassword
The above one will detect your IP automatically and perform the update. If you want to update with a custom IP address you can use:
https://dyndns.topdns.com/update?hostname=www.example.com&username=myusername&password=mypassword&myip=192.168.0.1
This file contains 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
String.prototype.replacePlaceholder=function(A){return this.replace(/\{(\w+)}/g,function(B,C){return A[C]})}; |
This file contains 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( $ ) { | |
$.fn.readOnlySuffix = function(suffix) { | |
return this.each(function() { | |
var $this = $(this), | |
suffixLength = suffix.length, | |
oldValue = suffix, | |
mouseIsDown = false; | |
// Must be a text input or text area | |
if (!($this.is(":text") || $this.tagName.toLowerCase() == "textarea")){ |
This file contains 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
String.prototype.format = function (B){var A=Array.prototype.slice.call(arguments,1);return B.replace(/\{(\d+)\}/g,function(C,D){return A[D]})} |