Skip to content

Instantly share code, notes, and snippets.

View c0psrul3's full-sized avatar

Mike c0psrul3

View GitHub Profile
@c0psrul3
c0psrul3 / 0_reuse_code.js
Last active August 30, 2015 11:19
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
@c0psrul3
c0psrul3 / touch__summarized_manpage.md
Last active May 4, 2023 07:34
How to use touch(1)

How to use touch(1) Fast version

Preface:

-- The reader (that's you!) should have a basic understanding of file status, and the attributes a file has (which are not necessarily found in the file itself -- even if hidden).

-- See the stat(2) man page: [[http://man7.org/linux/man-pages/man2/stat.2.html]]

@c0psrul3
c0psrul3 / new_file0
Created September 17, 2015 16:35
Graphite installation instructions - for Ubuntu 10.04
## Originally taken from:
## https://gist.githubusercontent.com/MikeGrace/1191574/raw/1e3dc35a5bdc49dd6d74afcd1d747168ffc15c44/install-graphite-ubuntu-10.04.sh
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
@c0psrul3
c0psrul3 / new_file0
Created September 17, 2015 16:46
StatsD/Graphite server on Ubuntu 10.10
## https://gist.githubusercontent.com/MikeGrace/1155391/raw/f37e7d47547fd9f5f5e46d103252faccd20d4e8f/setup-statsd.sh
# install git
sudo apt-get update
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
./configure

I hereby claim:

  • I am c0psrul3 on github.
  • I am c0psrul3 (https://keybase.io/c0psrul3) on keybase.
  • I have a public key whose fingerprint is F02A B21E 5DE8 9924 85AD F136 7EF5 C637 00A0 F93C

To claim this, I am signing this object:

{
#!/usr/bin/env python
# The MIT License (MIT)
# Copyright (c) 2015 Goran Tornqvist
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
{
    "body": {
        "client": {
            "name": "keybase.io node.js client",
            "version": "0.8.25"
        },
        "key": {
            "eldest_kid": "0101d2d8efd8f5cdc06bb5a05d1e20d6d9e9828ee1e2885b57708b9ef3583c4b41fc0a",
            "fingerprint": "c0e0e166113595c8c368e582a0fca57791a66cf4",
@c0psrul3
c0psrul3 / bootstrap-server.sh
Created April 15, 2016 19:38 — forked from larrybolt/bootstrap-server.sh
Bootstrap server to use with ansible
#!/usr/bin/env bash
if [ $# -eq 0 ]; then
echo "please supply a servername: bootstrap-server.sh node.example.com"
exit 1
fi
username=`whoami`
# copy public rsa key to server for root user
read -r -p "Transfer ssh public keys to server for root? [y/N] " response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then