Skip to content

Instantly share code, notes, and snippets.

View machbio's full-sized avatar
💭
I may be slow to respond.

Sandeep Shantharam machbio

💭
I may be slow to respond.
  • Greater Boston Area
  • 01:10 (UTC -04:00)
View GitHub Profile
@Sinyshnar
Sinyshnar / gist:8574684
Last active April 23, 2021 16:56
Proxmox USB install : no cdrom found
copy proxmox iso on usb stick
#fdisk -l
#mount /dev/sdb1 /mnt
#mount -o loop -t iso9660 /mnt/proxmox_1-7.iso /mnt
#cd /mnt
#chroot /mnt sbin/unconfigured.sh
@jtriley
jtriley / clustermanager-example.py
Created December 4, 2013 20:27
Small example showing how to use the ClusterManager class for high-level cluster management.
from starcluster import config
from starcluster import cluster
cfg = config.StarClusterConfig().load()
ec2 = cfg.get_easy_ec2()
cm = cluster.ClusterManager(cfg, ec2=ec2)
cl = cm.get_cluster("your_running_cluster_tag")
print len(cl.running_nodes)
@wilsonmichael
wilsonmichael / gist:5728060
Created June 7, 2013 09:15
Rserve init.d file that uses R to startup Rserve and stops correctly
!/bin/sh
. /lib/lsb/init-functions
## Variables
LOGFILE="/srv/R/tmp/Rserv/rserve.log"
CONFIGFILE="/etc/Rserv.conf"
RUN_AS="webapps"
# Rserve configs
@zipizap
zipizap / gist:4976977
Last active May 26, 2017 04:07
Add user to group, and make changes take effect *without logout/login* using *newgrp* This solution is very limited - it will only update the groups in the current shell session. New shells sessions will not have the groups updated - you can update them manually with this method, or better yet, you can logout/login so that the group update is ma…
# How to add user into group, and make changes take effect *without logout/login*: the *newgrp* command
#
# Do note that this method will only update the groups, in the current shell session (and its child-processes).
# New shell sessions will not have the groups updated - either use this method to update the groups in each shell
# session, or logout/login to make the group update permanent by default
#
# In short:
# $ sudo adduser user_x my_grp
# $ newgrp my_grp && newgrp
#
@danmackinlay
danmackinlay / supervisord.sh
Created August 27, 2009 07:07
an init.d script for supervisord
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.