Skip to content

Instantly share code, notes, and snippets.

View scuderiaf1's full-sized avatar

Tony Romeo scuderiaf1

View GitHub Profile
@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"
@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 / 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 "\[" ;
#- 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 / 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
@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"
#!/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 / file1.txt
Created March 25, 2013 17:49
Created via API
Demo - api is looking good
@scuderiaf1
scuderiaf1 / ruby-215-stable-railsexpress-fromsource
Last active December 14, 2015 15:35
from source with railsexpress
#!/usr/bin/env bash
# repository
cd /tmp
echo "******"
echo "*** update needed yum pkgs ***"
echo "******"
yum -y install libxslt-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel mysql-devel
@scuderiaf1
scuderiaf1 / GHOST-test.sh
Last active September 17, 2015 18:04
GHOST - gethostbyname Detector GHOST-test.sh CVE-2015-0235 <https://access.redhat.com/security/cve/CVE-2015-0235>
#!/bin/bash
#Version 3
## command line to run
## curl -L https://gist.githubusercontent.com/scuderiaf1/52f881e6cce407228780/raw/043b6124f75d4c897377c157c6efab53654eb042/GHOST-test.sh |bash
echo "Installed glibc version(s)"
rv=0
for glibc_nvr in $( rpm -q --qf '%{name}-%{version}-%{release}.%{arch}\n' glibc ); do
glibc_ver=$( echo "$glibc_nvr" | awk -F- '{ print $2 }' )
glibc_maj=$( echo "$glibc_ver" | awk -F. '{ print $1 }')