Name | Speed (bit/s) | Speed (byte/s) |
---|---|---|
USB 2.0 | 480Mbit | 60MBytes/s |
USB 3.0 | 5Gbit | 625MBytes/s |
USB 3.1 | 10Gbit | 1250MBytes/s |
SATA 1.0/SATA-150 | 1.5Gbit | [a] 150MBytes/s |
SATA 2.0/SATA-300 | 3Gbit | [a] 300MBytes/s |
SATA 3.0/SATA-600 | 6Gbit | [a] 600MBytes/s |
SATA 3.2/SATA-Express | 16Gbit | 2000MBytes/s |
Serial Attached SCSI (SAS) | 3Gbit/s | [a] 300MBytes/s |
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
#!/bin/bash | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
#!/bin/bash | |
# Original Source: | |
# https://gist.github.com/ggrandes/b6af6654fb8f5126db6a | |
# | |
# 2016-02-27, v1, ggrandes | |
# Get Machine Information | |
get_machine_info () { | |
local DEVS DEV_IDS | |
local UPTIME IDLE | |
DEVS=(/sys/class/net/eth*) |
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
#!/bin/bash | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
#!/bin/bash | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
#!/bin/bash | |
# In New Ubuntu Versions: | |
# apt-get -y autoremove | |
uname -a | |
ls -al /boot/vmlinuz-* | |
sudo aptitude -y purge $(ls -1 /boot/vmlinuz-* | grep -v ".efi." | grep -v -e $(uname -r) | sort | head -n -1 | sed -e 's|/boot/vmlinuz|linux-image|g') |
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
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.SSLParameters; | |
import java.security.Provider; | |
import java.security.Security; | |
public class SSLSupport { | |
public static void main(String[] args) throws Throwable { | |
try { | |
final String bcName = "org.bouncycastle.jce.provider.BouncyCastleProvider"; | |
Security.addProvider((Provider) Class.forName(bcName).newInstance()); |
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
#!/bin/bash | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
# Works on any machine with 1 ethernet (eth0) | |
cat /sys/class/net/eth0/address | |
# Works on { VMWARE, Baremetal, KVM (if setted with -uuid %s) }, Fail on { AWS/XEN } | |
cat /sys/devices/virtual/dmi/id/product_uuid | |
dmidecode -s system-uuid | |
# Works on { VMWARE, Baremetal }, Fail on { AWS/XEN, KVM } | |
cat /sys/devices/virtual/dmi/id/product_serial |
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
awk -- '$4 ~ /^[0-9]+$/ {print $4}' <(df -kP /tmp) |