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
diff --git a/src/common/projectVersionHelper.ts b/src/common/projectVersionHelper.ts | |
index eb1ba2f4..4bbfda65 100644 | |
--- a/src/common/projectVersionHelper.ts | |
+++ b/src/common/projectVersionHelper.ts | |
@@ -242,6 +242,13 @@ export class ProjectVersionHelper { | |
public static processVersion(version: string, useSemverCoerce: boolean = true): string { | |
try { | |
+ if (version.startsWith("npm:")) { | |
+ const v = version.slice(version.indexOf("@") + 1); |
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
data:text/html, <html><head><title>Michele Editor</title><style>body{font-size:24px;font-family:monospace;padding:1em;background-color:%23333;color:%23aaa;line-height:1.5;border:1px solid rgba(255,255,255,0.2);}div{width:100%25;min-height:1em;whitespace:pre-wrap;}div:focus{outline:0px solid transparent;}</style></head><body spellcheck=false><div contenteditable></div></body></html> |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+h", | |
"command": "workbench.action.navigateLeft" | |
}, | |
{ | |
"key": "ctrl+l", | |
"command": "workbench.action.navigateRight" | |
}, |
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
import java.util.Random; | |
import static java.lang.Math.abs; | |
import static java.lang.String.format; | |
import static java.util.Locale.ENGLISH; | |
public class RandomIMEI { | |
private static final Random GENERATOR = new Random(); | |
private static final String[] IMEI_REPORTING_BODY_IDS = {"01", "10", "30", "33", "35", "44", |
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
public class TimezoneChange { | |
private static final ZoneId ZONE = ZoneId.of("Europe/Madrid"); | |
private static final DateTimeFormatter TIME_FORMATTER = new DateTimeFormatterBuilder() | |
.appendPattern("yyyy-MM-dd'T'HH:mm:ss") | |
.appendFraction(MILLI_OF_SECOND, 0, 3, true) | |
.toFormatter(); | |
public static void main(String[] args) { | |
Instant converted = ZonedDateTime.of(LocalDateTime.parse(startDate, TIME_FORMATTER), ZONE).toInstant(); |
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
#!/bin/bash | |
# | |
# vm_nmap | |
# Created on 2013/07/16 MB | |
# | |
# Lists all configured port forwarding rules for all VirtualBox VMs found | |
# in the caller user's home. | |
# | |
# If called from user root, lists all port forwarding rules for all VMs | |
# in all homes. |
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
#!/bin/bash | |
if [[ "$#" -eq "2" ]]; then | |
VBoxManage modifyvm "$1" --natpf1 delete "$2" | |
else | |
echo 'USAGE: vm_forward_delete vm_name rule_name' | |
fi |
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
#!/bin/bash | |
if [[ "$#" -eq "4" ]]; then | |
VBoxManage modifyvm "$1" --natpf1 "$2,tcp,,$3,,$4" | |
else | |
echo 'USAGE: vm_forward_add vm_name rule_name host_port guest_port' | |
fi |
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
#!/bin/bash | |
# | |
# A simple script to delete a bunch of keys from redis all at once. | |
# | |
# Don't use it in production!!!1!1!one | |
read -p "redis port to connect to? [6379] " redis_port | |
if [[ "${redis_port}" == "" ]]; then | |
redis_port="6379" |