Element -- selects all h2 elements on the page
h2 {
foo: bar;| adb help // List all comands | |
| == Adb Server | |
| adb kill-server | |
| adb start-server | |
| == Adb Reboot | |
| adb reboot | |
| adb reboot recovery | |
| adb reboot-bootloader |
| Some Jenkinsfile examples |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| namespace SuffixTreeAlgorithm | |
| { | |
| public class SuffixTree | |
| { |
| /* | |
| * Slightly modified version of the com.ibatis.common.jdbc.ScriptRunner class | |
| * from the iBATIS Apache project. Only removed dependency on Resource class | |
| * and a constructor | |
| */ | |
| /* | |
| * Copyright 2004 Clinton Begin | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. |
Gremin traversal examples taken from the excellent DS330: DataStax Enterprise Graph course.
Add a Vertex
Vertex u = graph.addVertex("user");
u.property("userId","u2016");
u.property("age",36);
DSE Graph schema management examples taken from the excellent DS330: DataStax Enterprise Graph course.
List all graph names:
system.graphs(); // => KillrVideo
Describe all graphs:
| curl -I -H "Accept-Encoding: gzip,deflate" "$URL" --silent | grep -i "Content-Encoding:" | |
| # OR | |
| curl -H "Accept-Encoding: gzip,deflate" "$URL" --silent --write-out "%{size_download}" --output /dev/null | |
| curl "$URL" --silent --write-out "%{size_download}" --output /dev/null | |
| # 2nd must be greater the 1st |
Helper script to map ports to other servers.
had a database that was only accesible in the VPC on aws, so i created an dev intance and did a ssh tunnel to that dev instance with netcat mapping the port to the database
Forward all request from local 5432 to remote host google.com port 80
./nc-proxy.sh 5432 google.com 80| package tests; | |
| import org.apache.commons.codec.binary.Base64; | |
| import javax.crypto.Cipher; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.security.KeyFactory; | |
| import java.security.PrivateKey; |