Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

hackmd=# \d
List of relations
Schema | Name | Type | Owner
--------+----------------+----------+--------
public | Authors | table | hackmd
public | Authors_id_seq | sequence | hackmd
public | Notes | table | hackmd
public | Revisions | table | hackmd
public | SequelizeMeta | table | hackmd
public | Sessions | table | hackmd
@mdeous
mdeous / tpm.md
Created September 3, 2018 23:19
Upgrade Dell laptop TPM from 1.2 to 2.0

Dell TPM Upgrade

  • Download the "Dell TPM 2.0 Firmware Update Utility" from the Dell support website
  • Create a FreeDOS USB stick:
    • Format USB stick to FAT32
    • Mount USB stick (required by unetbootin)
    • Download unetbootin
    • Run unetbootin (as root), select FreeDOS, select the right volume, and install
  • Copy the downloaded firmware update file to the USB stick
  • Boot the laptop from the USB stick
@mdeous
mdeous / go.go
Last active September 15, 2018 16:52
type Collector interface {
Collect()
}
type LogsCollector struct {
output string
}
func (lc *LogsCollector) Collect() {
// do stuff
diff --git a/php-malware-finder/whitelists/wordpress.yar b/php-malware-finder/whitelists/wordpress.yar
index 79655f1..4ea40d6 100644
--- a/php-malware-finder/whitelists/wordpress.yar
+++ b/php-malware-finder/whitelists/wordpress.yar
@@ -1,477 +1,1046 @@
import "hash"
-private rule Wordpress : Blog
+private rule Wordpress
{

Keybase proof

I hereby claim:

  • I am mdeous on github.
  • I am mattoufoutu (https://keybase.io/mattoufoutu) on keybase.
  • I have a public key ASDmLstCX-pjT0d0WesnQjJo5addUdJM85E092PvthZJmQo

To claim this, I am signing this object:

W: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'http://security.ubuntu.com/ubuntu artful-security InRelease' doesn't have the component 'stable' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/binary-amd64/Packages' as repository 'http://security.ubuntu.com/ubuntu artful-security InRelease' doesn't have the component 'stable' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/i18n/Translation-en_US' as repository 'http://security.ubuntu.com/ubuntu artful-security InRelease' doesn't have the component 'stable' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/i18n/Translation-en' as repository 'http://security.ubuntu.com/ubuntu artful-security InRelease' doesn't have the component 'stable' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/dep11/Components-amd64.yml' as repository 'http://security.ubuntu.com/ubuntu artful-security InRele
@mdeous
mdeous / multipass.zsh
Last active July 28, 2021 17:12
multipass.zsh - A wrapper for people using multiple pass (password-store) stores
#
# multipass.zsh
#
# A wrapper to pass (password-store) for managing multiple
# store paths with a single command while still benefiting
# from Zsh's completion features.
#
# Usage: add the following lines to your .zshrc:
# source /path/to/multipass.zsh
# PASSWORD_STORES[pass1]=/path/to/pass1-store
>>> l = []
>>> l.append(l)
>>> l.append("foo")
>>> print(l)
[[...], 'foo']
>>> print(l[0])
[[...], 'foo']
>>> print(l[0][0])
[[...], 'foo']
>>> print(l[0][0][0])
package main
import (
"fmt"
"io/ioutil"
"path"
)
func scanFile(targets *chan string, results *chan string) {
for target := range *targets {