Skip to content

Instantly share code, notes, and snippets.

View SabeBarker's full-sized avatar
👾

Sabe Barker SabeBarker

👾
View GitHub Profile
@SabeBarker
SabeBarker / openvas.sh
Created December 7, 2019 18:03
Start openvas
#!/bin/bash
openvassd && gvmd && gsad
@SabeBarker
SabeBarker / redis.conf
Last active December 7, 2019 17:53
/etc/redis/redis.conf
# Redis 4.0 configuration file example for OpenVAS.
#
# Note that in order to read the configuration file, Redis must be
# started with the file path as first argument:
#
# ./redis-server /path/to/redis.conf
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
@SabeBarker
SabeBarker / disable_thp.service
Created December 7, 2019 17:32
/etc/systemd/system/disable_thp.service
[Unit]
Description=Disable Kernel Support for Transparent Huge Pages (THP)
[Service]
Type=simple
ExecStart=/bin/sh -c "echo 'never' > /sys/kernel/mm/transparent_hugepage/enabled && echo 'never' > /sys/kernel/mm/transparent_hugepage/defrag"
[Install]
WantedBy=multi-user.target
@SabeBarker
SabeBarker / keybase.md
Created September 24, 2019 08:57
keybase.md

Keybase proof

I hereby claim:

  • I am sabebarker on github.
  • I am sabebarker (https://keybase.io/sabebarker) on keybase.
  • I have a public key whose fingerprint is 6274 0CC9 9F48 5107 A102 77EE D655 89DB 551F 80C9

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am sabebarker on github.
  • I am sabebarker (https://keybase.io/sabebarker) on keybase.
  • I have a public key ASB6UVcJ6qkJnUoDDnA8UMtp978PSvcW0UMNuMSAcGbDSwo

To claim this, I am signing this object:

@SabeBarker
SabeBarker / torify-debian.md
Last active May 29, 2017 09:56
torify-debian
$ sudo -i
$ apt install tor apt-transport-tor
$ echo "net.ipv4.tcp_timestamps = 0" > /etc/sysctl.d/tcp_timestamps.conf
@SabeBarker
SabeBarker / gist:e7a1b5015df36cb0a751
Last active September 25, 2016 07:59
XFCE / Xubuntu themes in Debian

Follow these steps to install Greybird theme and elementary Xfce icons. This is the default theme in Xubuntu, but not in Debian and other derivatives. The following steps will give you that Xubuntu look!

# Install theme
mkdir -p ~/.themes
cd $_
wget https://github.com/shimmerproject/Greybird/archive/master.zip
unzip master.zip
rm master.zip
@SabeBarker
SabeBarker / bonfire-seek-and-destroy.js
Last active September 25, 2016 07:01
Bonfire: Seek and Destroy
// Bonfire: Seek and Destroy
// Author: @sabebarker
// Challenge: http://www.freecodecamp.com/challenges/bonfire-seek-and-destroy
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function destroyer(arr) {
return arr.filter(function (value) {
for (var i = 0; i < destroyer.arguments.length; i++) {
if (value === destroyer.arguments[i])
return false;
}
@SabeBarker
SabeBarker / bonfire-falsy-bouncer.js
Last active September 25, 2016 07:01
Bonfire: Falsy Bouncer
// Bonfire: Falsy Bouncer
// Author: @sabebarker
// Challenge: http://www.freecodecamp.com/challenges/bonfire-falsy-bouncer
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function bouncer(arr) {
return arr.filter(Boolean);
}
bouncer([7, "ate", "", false, 9]);
@SabeBarker
SabeBarker / bonfire-mutations.js
Last active September 25, 2016 07:02
Bonfire: Mutations
// Bonfire: Mutations
// Author: @sabebarker
// Challenge: http://www.freecodecamp.com/challenges/bonfire-mutations
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function mutation(arr) {
var string1 = arr[0].toLowerCase();
var string2 = arr[1].toLowerCase();
string1 = string1.split('');
string2 = string2.split('');
for (var i = 0; i < string2.length; i++) {