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/sh | |
# | |
# usage: certlink.sh filename [filename ...] | |
# | |
# This create links like: | |
# 2c543cd1.0 -> GeoTrustGlobalCA.crt | |
# | |
# Source: www.madboa.com/geek/openssl/ | |
# License: creativecommons.org/licenses/by-nc-sa/3.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
# Generate RSA Key-Pair | |
openssl genrsa -out test.key 2048 | |
openssl rsa -pubout -in test.key -out test.pub | |
# Signature | |
openssl dgst -sha512 -sign test.key some-file.txt | openssl enc -a -e > some-file.txt.sign | |
# Verify | |
openssl enc -a -d < some-file.txt.sign | openssl dgst -sha512 -verify test.pub -signature /dev/stdin some-file.txt |
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) |
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 | |
# 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="12"> | |
<profile kind="CodeFormatterProfile" name="ggrandes" version="12"> | |
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> |
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
log4j.rootLogger=INFO, CONSOLE | |
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender | |
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout | |
log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %p %c %m%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
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | |
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" | |
version="3.0" metadata-complete="true"> | |
<display-name>test</display-name> | |
<servlet> | |
<servlet-name>test</servlet-name> | |
<servlet-class>com.acme.Servlet</servlet-class> | |
</servlet> |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.acme</groupId> | |
<artifactId>bomb</artifactId> | |
<version>0.0.1</version> | |
<packaging>war</packaging> | |
<name>bomb</name> | |
<dependencies> | |
<dependency> |
OlderNewer