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
❓ What internet protocol was documented in RFC 1459? | |
1️⃣ HTTP | |
2️⃣ FTP | |
3️⃣ HTTPS | |
4️⃣ IRC |
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
Port 80 │ █████████████████████████████ │ 28353506 | |
Port 443 │ ████████████████████████████▎ │ 27709810 | |
Port 7547 │ █████████▏░░░░░░░░░░░░░░░░░░░ │ 9016706 | |
Port 22 │ ██████▎░░░░░░░░░░░░░░░░░░░░░░ │ 6112296 | |
Port 4567 │ █████▉░░░░░░░░░░░░░░░░░░░░░░░ │ 5806568 | |
Port 161 │ ███▏░░░░░░░░░░░░░░░░░░░░░░░░░ │ 3067410 | |
Port 8080 │ ██▋░░░░░░░░░░░░░░░░░░░░░░░░░░ │ 2642434 | |
Port 8443 │ ██▌░░░░░░░░░░░░░░░░░░░░░░░░░░ │ 2531746 | |
Port 53 │ ██▎░░░░░░░░░░░░░░░░░░░░░░░░░░ │ 2219078 | |
Port 21 │ ██▏░░░░░░░░░░░░░░░░░░░░░░░░░░ │ 2133081 |
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
// For the blog post associated with this snippet, see: https://blog.chriscarini.com/2021/02/extract-urls-from-android-phone-chrome.html | |
var tabsNodes = document.querySelectorAll('.browser>.list.pages>.row') | |
var tabsAsText = Array.from(tabsNodes).map((t) => "- [" + t.querySelector(".name").innerText + "](" + t.querySelector(".url").innerText + ")") | |
copy(tabsAsText.join("\n")) |
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 isPortConflict(_val) { | |
if (_val == '80') | |
return "This port is for HTTP LAN port."; | |
else if (_val == '') | |
return "This port is for Download Master."; | |
else if (_val == '8082') | |
return "This port is for Cloud Disk."; | |
else if (_val == '443') | |
return "This port is for Cloud Disk."; | |
else |
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
sudo badblocks -nvs -o ~/badblocks${DEVICE_TO_TEST//\//_}.txt -b 4096 ${DEVICE_TO_TEST} |
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
#!/usr/bin/python | |
import sys | |
import requests | |
import datetime | |
import smtplib | |
from email.mime.text import MIMEText | |
## | |
# Configuration Values | |
## |
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.chriscarini.examples; | |
import java.util.Date; | |
public class ToStringExample { | |
private String name; | |
private int length; | |
private Date startDate; | |
private Object ref; |
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
# Device Mountpoint FStype Options Dump Pass# | |
/dev/ada0s1a / ufs rw 1 1 | |
/dev/ada0s1b none swap sw 0 0 |
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
Trying to mount root from ufs:/dev/ad4s1a [rw]... | |
mountroot: waiting for device /dev/ad4s1a... | |
Mounting from ufs: /dev/ad4s1a failed with error 19. | |
Loader variables: | |
vfs.root.mountfrom=ufs:/dev/ad4s1a | |
vfs.root.mountfrom.options=rw | |
Manual root filesystem specification: | |
<fstype>:<device> [options] |
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
# Device Mountpoint FStype Options Dump Pass# | |
/dev/ad4s1a / ufs rw 1 1 | |
/dev/ad4s1b none swap sw 0 0 |
NewerOlder