This file contains hidden or 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 simple script to backup an organization's GitHub repositories. | |
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos | |
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423 | |
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files | |
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up | |
# (if you're backing up a user's repos instead, this should be your GitHub username) | |
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API) |
This file contains hidden or 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
sub download_file { | |
my ( $self, $file ) = @_; | |
my $file_path = "/storage/mirrors/supermicro/" . $file->{'filename'}; | |
my $ua = Mojo::UserAgent->new(); | |
my $tx = $ua->get($file->{'url'}); | |
$tx->res->content->asset->move_to($file_path); | |
} |
This file contains hidden or 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
[edit] | |
root@srx3600n0# show security nat | |
static { | |
rule-set Static-NAT { | |
from zone untrust; | |
rule FTP-v4 { | |
match { | |
destination-address 198.18.5.6/32; | |
} | |
then { |
This file contains hidden or 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
my $ua = Mojo::UserAgent->new(); | |
# Add completely non-standard Authorization: HTTP header to each request | |
$ua->on(start => sub { | |
my ($ua, $tx) = @_; | |
$tx->req->headers->header('Authorization' => $auth_header); | |
# Print (naive) curl output if desired | |
if ($curl_debug) { | |
my $h = $tx->req->headers->to_hash; |
This file contains hidden or 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
root@nag1-ord6:~# ./idrac-raid.pl -u root -h <SECRET> -p <NOPE> | |
PERC H730 Mini (RAID.Integrated.1-1) | |
|--FW Rev: 25.2.2-0004 | |
|--Primary Status: OK | |
|--Rollup Status: Degraded | |
|--Battery Status: Degraded | |
|--RAID LV Status: OK | |
| | |
|--Virtual Disk 0 | |
| |--RAID Type: RAID1 |
This file contains hidden or 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
Msg: noVNC ready: native WebSockets, canvas rendering | |
util.js:218 | |
util.js:218 Msg: Starting VNC handshake | |
util.js:218 Msg: Sent ProtocolVersion: 003.008 | |
util.js:218 Msg: Authenticating using scheme: 16 | |
util.js:218 WebSocket on-close event | |
util.js:220 Msg: Server disconnected (code: 1006)Util.Error @ util.js:220RFB._updateState @ rfb.js:496RFB._fail @ rfb.js:566(anonymous function) @ rfb.js:231(anonymous function) @ websock.js:320 | |
util.js:218 |
This file contains hidden or 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/perl | |
use Mojo::Base -strict; | |
use Mojo::UserAgent; | |
use Data::Dumper; | |
my $ua = Mojo::UserAgent->new(max_redirects => 10); | |
my $url = 'http://www.supermicro.com/products/motherboard/Xeon/C600/X10SRi-F.cfm'; | |
my $dom = $ua->get($url)->res->dom; |
This file contains hidden or 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/perl | |
# | |
# bmc tool - a user friendly front-end to probe, configure, and manage the BMC | |
# | |
# Copyright (c) 2012 Dell Inc. All rights reserved. | |
# | |
# This tool is part of the PowerEdge C datacenter system management tools | |
# from http://poweredgec.com | |
# | |
# [email protected] |
This file contains hidden or 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
JBOD1:0 wwn-0x5000cca216c9b0d3 | |
JBOD1:1 wwn-0x5000cca216c9dcae | |
JBOD1:2 wwn-0x5000cca216c9dcbc | |
JBOD1:3 wwn-0x5000cca216c9d762 | |
JBOD1:4 wwn-0x5000cca216c9dcb1 | |
JBOD1:5 wwn-0x5000cca216c9d75c | |
JBOD1:6 wwn-0x5000cca216c9dca2 | |
JBOD1:7 wwn-0x5000cca216c9b56a | |
JBOD1:8 wwn-0x5000cca216c9dbf4 | |
JBOD1:9 wwn-0x5000cca216c9c2b1 |
This file contains hidden or 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
root@cybernet:~# sas2ircu 0 DISPLAY | |
LSI Corporation SAS2 IR Configuration Utility. | |
Version 16.00.00.00 (2013.03.01) | |
Copyright (c) 2009-2013 LSI Corporation. All rights reserved. | |
Read configuration has been initiated for controller 0 | |
------------------------------------------------------------------------ | |
Controller information | |
------------------------------------------------------------------------ | |
Controller type : SAS2008 |
NewerOlder