Archive for github

[a.Bionic] shell.function to auto-clone all Repositories from a GitHub account

Posted in Blogroll, tutorial with tags , , , , , , , on April 30, 2013 by abhishekkr

abionic.blogspot.com [13/Jan/2013]

http://abionic.blogspot.in/2013/01/shellfunction-to-download-all.html

a shell utility to download all repositories managed under any GitHub account in the current directory…
if the current directory has any of the repositories already cloned, it pulls the latest

usage:   $ clone-github github
would download all the repositories managed under ‘github’ account

shell function at https://gist.github.com/abhishekkr/4428447/raw/7afb0cc878b6c95d6af37dcdd5e13f62a00befdb/a.github.sh

…click here to read full post

Advertisements

[a.Bionic] download all files embedded from GitHub Gist URL

Posted in ABK Labs with tags , , , , , on December 3, 2012 by abhishekkr

abionic.blogspot.in []

http://abionic.blogspot.in/2012/11/shellfunction-to-download-all-files.html

a shell utility to download all parts of a GIST url at provided download path

usage e.g. $ ddl-gist https://gist.github.com/4165864 /etc/profile.d/

howTo install
$ curl -L -o /etc/profile.d/ddl-gist.sh https://gist.github.com/4165864

actually, if you had this utlity… the usage example would install the utlity… chicken-egg

…..click here to read full post

[tekwalk] [puppet] quick PuppetMaster Service Script

Posted in Uncategorized with tags , , , , , , , , , , , on July 3, 2012 by abhishekkr

tekwalk.blogspot.com [25-April-2012]

http://tekwalk.blogspot.in/2012/04/quick-puppetmaster-service-script-for.html

#!/usr/bin/env ruby
module PuppetMaster
  def self.puppetmaster_cmd
   ‘puppet master –debug –verbose’
  end
  def self.start
    puts “Starting Puppet Master in Debug+Verbose+Daemon mode logging to /var/log/puppet/a.log”
    puts “Started.” if system(“#{puppetmaster_cmd} >> /var/log/puppet/a.log”)
  end
  def self.stop
    puppet_master_ps = %x{ps aux | grep -e ‘#{puppetmaster_cmd}’ | grep -v grep}
    puppet_master_pid = puppet_master_ps.split[1]
    if system(“kill -9 #{puppet_master_pid}”)
      puts “PuppetMaster with pid:#{puppet_master_pid} has been killed.”
    else
      puts “Failure killing PuppetMaster with pid:#{puppet_master_pid}.”
    end
  end
  def self.status
    puppet_master_ps = %x{ps aux | grep -e ‘#{puppetmaster_cmd}’ | grep -v grep}
    puppet_master_pid = puppet_master_ps.split[1]
    if puppet_master_pid.nil?
      puts “No PuppetMaster found.”
    else
      puts “Running @ #{puppet_master_ps}”
    end
  end
end
case ARGV.first
when ‘start’
  PuppetMaster.start
when ‘stop’
  PuppetMaster.stop
when ‘restart’
  PuppetMaster.stop
  PuppetMaster.start
when ‘status’
  PuppetMaster.status
else
  puts <<-PMUSAGE
$service puppetmaster (start|stop|restart|status)
PMUSAGE
end

[abionic.blogspot.com] GitHub’s “purely artificial and poorly intelligent” A.I.

Posted in AbhishekKr, Blogroll with tags , , , , , , , , , on December 20, 2010 by abhishekkr

@ abionic.blogspot.com [20/Dec/2010]

http://abionic.blogspot.com/2010/12/encounter-with-githubs-ai-which-is.html

encounter with GitHub’s A.I. which is “purely artificial and poorly intelligent”

Recently, I had an interesting encounter with GitHub’s A.I. which was purely artificial and poorly intelligent.
I have a repo at ‘https://github.com/abhishekkr/sitehoster‘; it’s an experimental web-server developed in ‘Java’ but it has been marked as ‘Javascript’.

Now I’m a bit hard at things which don’t work to their potential… but I don’t think their is anything wrong in it.

So yeah there is an ‘Artificially Poorly Inferenced Logic‘ implemented in so advanced GitHub
which could have been ‘Smartly Easily Granted Control‘ to not so artificially intelligent Users…

…click here to read full blog post