Skip to content

Instantly share code, notes, and snippets.

View Mattlk13's full-sized avatar

Matthew Krebs Mattlk13

  • All Your Computer Solutions
  • Belton, Mo
View GitHub Profile

XFCE Desktop


How to install XFCE Desktop Environment in Kali Linux:

Command:

apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies

How to remove XFCE in Kali Linux:

Command:

@Mattlk13
Mattlk13 / effective_modern_cmake.md
Created April 26, 2020 17:17 — forked from mbinna/effective_modern_cmake.md
Effective Modern CMake

Effective Modern CMake

Getting Started

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

@Mattlk13
Mattlk13 / web.xml
Created August 1, 2019 11:22 — forked from enujo/web.xml
[JAVA] Servlet DTD(2.2 ~ 3.1)
<!-- 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"
@Mattlk13
Mattlk13 / EverythingPrompt.ps1
Created July 30, 2019 23:14 — forked from jdhitsolutions/EverythingPrompt.ps1
A "kitchen sink" PowerShell prompt. This only works on Windows platforms, including PowerShell Core.
<#
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:
@Mattlk13
Mattlk13 / readme.Rmd
Created September 7, 2018 21:50 — forked from yihui/readme.Rmd
A list of package vignettes built from knitr on CRAN
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) {
@Mattlk13
Mattlk13 / unzip.php
Created September 4, 2018 05:32 — forked from joseporiol/unzip.php
Unzip file
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
@Mattlk13
Mattlk13 / KafkaProducer.java
Created February 24, 2017 02:36 — forked from yaroncon/KafkaProducer.java
Kafka producer, with Kafka-Client and Avro
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;
@Mattlk13
Mattlk13 / KafkaProducer.java
Created February 24, 2017 02:36 — forked from onesuper/KafkaProducer.java
Kafka producer, with Kafka-Client and Avro
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;
@Mattlk13
Mattlk13 / reactor.ks
Created February 22, 2017 20:18 — forked from quill18/reactor.ks
// 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
//
//