Skip to content

Instantly share code, notes, and snippets.

View scuderiaf1's full-sized avatar

Tony Romeo scuderiaf1

View GitHub Profile
@scuderiaf1
scuderiaf1 / file1.txt
Created March 25, 2013 17:49
Created via API
Demo - api is looking good
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This script dumps the content of a shared memory block
# used by Linux/Cdorked.A into a file named httpd_cdorked_config.bin
# when the machine is infected.
#
# Some of the data is encrypted. If your server is infected and you
# would like to help, please send the httpd_cdorked_config.bin
# to our lab for analysis. Thanks!
@scuderiaf1
scuderiaf1 / hubot
Last active December 20, 2015 10:09
hubot campfire init.d example script. set it with something like 'chkconfig --level 345 hubot on'
#!/bin/bash
# myapp daemon
# chkconfig: 345 20 80
# description: myapp daemon
# processname: myapp
DAEMON_PATH="/home/webdv/hubot-master"
DAEMON=bin/hubot
DAEMONOPTS="-a campfire -n webdv-hubot -l hubot"
@scuderiaf1
scuderiaf1 / 0_reuse_code.js
Created October 12, 2013 00:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#- name: Installing FFMPEG
- name: Running ./configure for FFMPEG
command: '"{{ item }}" chdir=/myhome/ffmpeg-2.8.2/'
with_items:
- ./configure
- name: Running "make" for FFMPEG
command: '"{{ item }}" chdir=/myhome/ffmpeg-2.8.2/'
with_items:
- make
- name: Running "make install" for FFMPEG
@scuderiaf1
scuderiaf1 / Mac SSH Autocomplete
Created August 16, 2016 12:24 — forked from aliang/Mac SSH Autocomplete
Add auto complete to your ssh, put into your .bash_profile
_complete_ssh_hosts ()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
grep -v ^# | \
uniq | \
grep -v "\[" ;
@scuderiaf1
scuderiaf1 / Mac SSH Autocomplete
Created August 16, 2016 12:25
Add auto complete to your ssh, put into your .bash_profile
_complete_ssh_hosts ()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
grep -v ^# | \
uniq | \
grep -v "\[" ;
@scuderiaf1
scuderiaf1 / prototype-buildpack
Last active August 25, 2017 20:42
prototype-buildpack
require "tmpdir"
require "digest/md5"
require "benchmark"
require "rubygems"
require "language_pack"
require "language_pack/base"
require "language_pack/ruby_version"
require "language_pack/helpers/nodebin"
require "language_pack/helpers/node_installer"
require "language_pack/helpers/yarn_installer"