This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use File::Basename; | |
use JSON 'encode_json'; | |
my $XLOGIN = '/usr/lib/rancid/bin/clogin'; | |
sub usage | |
{ | |
print <<EOS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# A wrapper for fping to print pretty timestamp and host description. | |
# | |
# Copyright (C) 2016 Takumi KINJO - All Rights Reserved | |
# Permission to copy and modify is granted under the MIT license | |
# Version 0.1.0 | |
# Licence: MIT | |
usage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Recieve WOL packet and then run vmrun command to boot VM. | |
# | |
# sudo ./wol-vmrun ~/path/to/vm1.vmx@xx:xx:xx:xx:xx:xx ~/path/to/vm2.vmx@yy:yy:yy:yy:yy:yy | |
# | |
# Tested on OS X El Capitan and VMware Fusion 8 Pro. | |
import re | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; extra-letter-case.el --- Extra letter case | |
;; Copyright (C) 2014 Takumi Kinjo | |
;; Author: Takumi Kinjo <[email protected]> | |
;; Keywords: convenience, wp | |
;; This file is not part of GNU Emacs. | |
;; This program is free software; you can redistribute it and/or modify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; osx-say.el --- Utilizing `say' command which Mac OSX has for Emacs | |
;; Copyright (C) 2014 Takumi Kinjo | |
;; Author: Takumi Kinjo <[email protected]> | |
;; Keywords: local, hypermedia | |
;; This file is not part of GNU Emacs. | |
;; This program is free software; you can redistribute it and/or modify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = bpy.data.objects['Plane'].data | |
data.vertices.add(1) | |
data.vertices[4].co.x=3 | |
data.edges.add(2) | |
data.edges[4].vertices[0]=3 | |
data.edges[4].vertices[1]=4 | |
data.edges[5].vertices[0]=1 | |
data.edges[5].vertices[1]=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM phusion/baseimage:0.9.11 | |
ENV HOME /root | |
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh | |
RUN echo /root > /etc/container_environment/HOME | |
Add id_rsa.pub /tmp/id_rsa.pub | |
RUN cat /tmp/id_rsa.pub >> /root/.ssh/authorized_keys && rm -f /tmp/id_rsa.pub | |
RUN apt-get update | |
RUN apt-get install -y autoconf bison build-essential curl git-core libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev libxml2-dev libxslt1-dev libyaml-dev sqlite3 zlib1g-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test | |
linux-headers-generic | |
build-essential | |
bzr | |
curl | |
cvs | |
dnsutils | |
git | |
lv | |
manpages |
NewerOlder