Skip to content

Instantly share code, notes, and snippets.

View penguinpowernz's full-sized avatar

Robert penguinpowernz

  • Penguin Power
  • Auckland, New Zealand
View GitHub Profile
@penguinpowernz
penguinpowernz / README.md
Last active April 9, 2020 20:02
A small script to detect Linux/Cdorked.A malware on a linux system using the tool from ESET

Linux/Cdorked.A detector

This script uses the tool from ESET to check the RAM of a linux system for the Linux/Cdorked.A malware. It uses the tool as of April 2013. As of this date the malware had only been known about for a month with research still ongoing. For this reason there may be a later version of the tool available.

I found the tool on the ESET page describing the Linux/Cdorked.A malware so that would likely be the best place to check for updates, if there are any.

How to run it

If you are here, you can probably tell that the below script does nothing harmful so run one of the following commands at terminal to execute it in a single command:

<?php
/////////////////////////////////////////////////////////
// NO CHANGES TO THIS FILE, IT IS NOT USER-EDITABLE //
/////////////////////////////////////////////////////////
// YES, THAT MEANS YOU //
/////////////////////////////////////////////////////////
$config['os']['default']['over'][0]['graph'] = "device_processor";
$config['os']['default']['over'][0]['text'] = "Processors";
@penguinpowernz
penguinpowernz / docker-aliases.sh
Last active January 4, 2016 15:48
Shell aliases for Docker.
da="sudo docker attach"
db="sudo docker build"
dcm="sudo docker commit"
dcp="sudo docker cp"
ddf="sudo docker diff"
de="sudo docker events"
dex="sudo docker export"
dh="sudo docker history"
di="sudo docker images"
dim="sudo docker import"
asana.coffee
bang.coffee
decide.coffee
eight-ball.coffee
fml.coffee
gemwhois.coffee
gitlab.coffee
google-search-api.coffee
http-post-say.coffee
http-say.coffee
@penguinpowernz
penguinpowernz / etc-resolv.conf
Last active October 17, 2021 21:30
BECAUSE FUCK resolvconf
# THIS FILE MAY BE EDITED MANUALLY
nameserver 192.168.3.1
nameserver 8.8.8.8
# BECAUSE FUCK resolvconf
// disable developer tools
user_pref("devtools.appmanager.enabled", false);
user_pref("devtools.appmanager.manifestEditor.enabled", false);
user_pref("devtools.chrome.enabled", false);
user_pref("devtools.debugger.chrome-enabled", false);
user_pref("devtools.debugger.enabled", false);
user_pref("devtools.debugger.pretty-print-enabled", false);
user_pref("devtools.debugger.remote-enabled", false);
user_pref("devtools.debugger.source-maps-enabled", false);
user_pref("devtools.debugger.ui.variables-sorting-enabled", false);
@penguinpowernz
penguinpowernz / monit5.1doc.md
Last active November 24, 2015 03:18
Monit 5.1 docs
@penguinpowernz
penguinpowernz / debian_package_howto.md
Last active November 30, 2015 23:44
Debian Binary Package Building HOWTO by Chr. Clemens Lee

Debian Binary Package Building HOWTO

This mini-HOWTO shows how to build a minimal Debian .deb package.

Chr. Clemens Lee clemens@kclee.de

Revision History

Revision 5.0 2014-05-01 (penguinpowernz)

@penguinpowernz
penguinpowernz / README.md
Created May 29, 2014 02:56
Custom permit matcher for matching authorizer actions using a nice syntax (like Pundit)

RSpec permit matcher for Authorizer classes

I use authorizer classes in my app that I learned about from a blog post by @sethvargo.

This is a custom rspec matcher for Authorizer classes gleaned from this post by @thunderboltlabs that allows you to use permit in your Rspec tests.

Save the gist below to `` and add the following line to your spec_helper.rb file (if you haven't already).

Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
@penguinpowernz
penguinpowernz / production.log
Last active August 29, 2015 14:05
There is some fuckery afoot
##########################################
##########################################
###### works fine from localhost #######
##########################################
##########################################
Started GET "/api/v1/devices/heartbeat" for 127.0.0.1 at 2014-08-18 11:35:48 +1200
Processing by Api::V1::DevicesController#heartbeat as JSON
SystemMessage Load (0.2ms) SELECT "system_messages".* FROM "system_messages"
Rendered text template (0.0ms)