Skip to content

Instantly share code, notes, and snippets.

View jpalermo's full-sized avatar

Joseph Palermo jpalermo

  • Pivotal Labs
  • San Francisco
View GitHub Profile
@jpalermo
jpalermo / gist:d15aad93d1a82282a6cb00ba78f78374
Created February 16, 2024 06:24
This or That ordered Cards
This file has been truncated, but you can view the full file.
# Pick the card with the lower index of the two
# Some cards appear in here twice, so you will need to match the symbol with the "set" for those
# If two cards are from the same set, pick the one with the correct stats/text
[
{
"index": 0,
"name": "Goldshire Footman",
"set": "VANILLA",
"cost": 1,
"attack": 1,
@jpalermo
jpalermo / find_lost_computer.rb
Last active March 16, 2020 21:38
ruby script to search a CIDR for a computer you can log into
#!/usr/bin/env ruby
require 'netaddr'
require 'open3'
require 'parallel'
require 'io/console'
require 'net/ssh'
if ARGV.length != 1
puts 'Pass search CIDR as the only argument'
monit restart all
[UTC Feb 10 18:21:56] info : restart service 'cloud_controller_ng' on user request
[UTC Feb 10 18:21:56] info : restart service 'nginx_cc' on user request
[UTC Feb 10 18:21:56] info : 'cloud_controller_ng' trying to restart
[UTC Feb 10 18:22:01] info : 'nginx_cc' stop: /var/vcap/jobs/cloud_controller_ng/bin/nginx_ctl
[UTC Feb 10 18:22:02] info : 'cloud_controller_ng' stop: /var/vcap/jobs/cloud_controller_ng/bin/cloud_controller_ng_ctl
[UTC Feb 10 18:22:03] info : 'cloud_controller_ng' start: /var/vcap/jobs/cloud_controller_ng/bin/cloud_controller_ng_ctl
[UTC Feb 10 18:22:09] info : 'nginx_cc' start: /var/vcap/jobs/cloud_controller_ng/bin/nginx_ctl
[UTC Feb 10 18:22:10] info : 'cloud_controller_ng' restart action done
[UTC Feb 10 18:22:10] info : 'nginx_cc' trying to restart
2015-01-29T12:26:40.40-0800 [App/0] OUT 2015-01-29 20:26:40.404 INFO 31 --- [ main] .t.TomcatEmbeddedServletContainerFactory : Server initialized with port: 61132
2015-01-29T12:26:40.61-0800 [App/0] OUT 2015-01-29 20:26:40.609 INFO 31 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2015-01-29T12:26:40.61-0800 [App/0] OUT 2015-01-29 20:26:40.612 INFO 31 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/7.0.57
2015-01-29T12:26:41.95-0800 [App/0] OUT 2015-01-29 20:26:41.958 INFO 31 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2015-01-29T12:26:41.95-0800 [App/0] OUT 2015-01-29 20:26:41.959 INFO 31 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 4962 ms
2015-01-29T12:26:42.99-0800 [App/0] OUT 2015-01-29 20:26:42.998 INFO 31 --- [ost-startStop-1] o.s.b.
---
name: cf
director_uuid: REPLACE_WITH_DIRECTOR_ID
releases:
- name: cf
version: latest
networks:
- name: cf_private
type: manual
subnets:
@jpalermo
jpalermo / gist:998621
Created May 30, 2011 08:51
Jacklottery (WTF) guild rules
All members must make active progress in maximizing their stats. This includes purchasing strength up to 50 and constitution up to 120. Items should be sold from the vault for this purpose (see selling guild for details: https://gist.github.com/70ee6d4ec7db54af4573)
Any member not making active progress will be removed after 7 days.