Command:
apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies
Command:
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
<!-- Servlet 3.1 --> | |
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" | |
version="3.1"> | |
</web-app> | |
<!-- Servlet 3.0 --> | |
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
<# | |
This may not work properly or completely in all PowerShell hosts. Because the function | |
relies on Get-CimInstance it will not work on Linux platforms. | |
It is also admittedly not speedy as it is doing a lot of stuff, although there is an | |
attempt to cache some information which gets updated every 15 minutes. | |
To use, dot source this script in your PowerShell profile to make it your default prompt. | |
Sample prompt: |
Here is a list of package vignettes _possibly_ built with **knitr** on CRAN. | |
```{r fetch-pkgs, include=FALSE} | |
pkgs = available.packages(contrib.url('https://cran.r-project.org', 'source')) | |
deps = tools::package_dependencies('knitr', pkgs, which = 'all', reverse = TRUE)[['knitr']] | |
deps = setdiff(deps, 'R.rsp') # packages that do not use knitr | |
deps = sort(c(deps, 'knitr')) | |
``` | |
```{r vig-list, include=FALSE, echo=FALSE, cache=TRUE, cache.extra=deps, message=FALSE, error=FALSE} | |
vigs = lapply(deps, function(pkg) { |
function unzip_file($file, $destination) { | |
// create object | |
$zip = new ZipArchive() ; | |
// open archive | |
if ($zip->open($file) !== TRUE) { | |
die ('Could not open archive'); | |
} | |
// extract contents to destination directory | |
$zip->extractTo($destination); | |
// close archive |
servers="server1 server2 server3" | |
for osdserver in ${servers} ; do | |
j=1 | |
for disk in {a..p} ; do | |
echo ceph-deploy disk zap ${osdserver}:sd${disk} | |
echo ceph-deploy disk prepare ${osdserver}:sd${disk}:/dev/nvme0n1p${j} | |
echo ceph-deploy disk activate ${osdserver}:sd${disk}:/dev/nvmen1p${j} | |
let j=j+1 | |
done | |
done |
import org.apache.avro.Schema; | |
import org.apache.avro.generic.GenericData; | |
import org.apache.avro.generic.GenericDatumWriter; | |
import org.apache.avro.generic.GenericRecord; | |
import org.apache.avro.io.Encoder; | |
import org.apache.avro.io.EncoderFactory; | |
import org.apache.kafka.clients.producer.KafkaProducer; | |
import org.apache.kafka.clients.producer.ProducerRecord; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
import org.apache.avro.Schema; | |
import org.apache.avro.generic.GenericData; | |
import org.apache.avro.generic.GenericDatumWriter; | |
import org.apache.avro.generic.GenericRecord; | |
import org.apache.avro.io.Encoder; | |
import org.apache.avro.io.EncoderFactory; | |
import org.apache.kafka.clients.producer.KafkaProducer; | |
import org.apache.kafka.clients.producer.ProducerRecord; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
// A Reactor Management Script by quill18 (http://quill18.com) | |
// Latest Version: https://gist.github.com/quill18/c4b71d81f9202db11455 | |
// | |
// | |
// Developed for: | |
// Kerbal Space Program 1.04 | |
// kOS 0.17.3 | |
// Near Future Electrical 0.5.3 | |
// | |
// |