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 ruby | |
require "excon" | |
require "optparse" | |
require "json" | |
# Finds broken bindings, possibly bug in RabbitMQ. | |
# Check if any unrouted message was published to an exchange that should have routed it. | |
banner = "Usage: validate_bindings.rb username password hostname" | |
OptionParser.new do |opts| |
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
{ | |
"log": { | |
"version": "1.2", | |
"creator": { | |
"name": "WebInspector", | |
"version": "537.36" | |
}, | |
"pages": [ | |
{ | |
"startedDateTime": "2020-04-14T11:54:17.318Z", |
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
{ | |
"nodes": [ | |
{ | |
"id": 1, | |
"callFrame": { | |
"functionName": "(root)", | |
"scriptId": "0", | |
"url": "", | |
"lineNumber": -1, | |
"columnNumber": -1 |
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 | |
sudo apt-add-repository ppa:brightbox/ruby-ng | |
sudo apt-get update | |
sudo apt-get install ruby2.4 | |
echo "gem: --no-document" > ~/.gemrc | |
sudo gem install bundler pry bunny |
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
Active Internet connections (w/o servers) | |
Proto Recv-Q Send-Q Local Address Foreign Address State | |
tcp 0 0 localhost.localdo:15672 localhost.localdo:53292 TIME_WAIT | |
tcp 0 0 myhostname-0:1883 123-123-123-123.b:33585 ESTABLISHED | |
tcp 0 0 localhost.localdo:53252 localhost.localdo:15672 TIME_WAIT | |
tcp 0 0 myhostname-0:1883 123-123-123-123.ba:60961 ESTABLISHED | |
tcp 0 0 localhost.localdo:60797 localhost.localdom:epmd TIME_WAIT | |
tcp 0 0 myhostname-0:1883 123-123-123-123.bam:39844 TIME_WAIT | |
tcp 0 0 localhost.localdo:53372 localhost.localdo:15672 TIME_WAIT | |
tcp 0 0 myhostname-0:1883 123-123-123-123.baf.mo:52738 ESTABLISHED |
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
import java.util.Scanner; | |
public class Personnummer { | |
public static void main(String[] args) { | |
String pNr; //deklarerar personnr | |
System.out.print("Ange ditt personnummer (10 siffror): "); | |
Scanner kbd = new Scanner(System.in); //uppfattar vad som skrivs på tangentbord | |
pNr = kbd.nextLine(); |
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
<script type="text/ng-template" id="ft-validation-message.html"> | |
<div class="md-caption" role="alert" ng-show="{{ field.error !== null }}"> | |
{{ field.error }} | |
</div> | |
</script> | |
<div ng-include="'ft-validation-message.html'" class="np-validation-message"></div> |
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 | |
cp $1 $1_bak | |
cdl=/tmp/$1.cdl | |
ncdump $1 > $cdl | |
nano $cdl | |
ncgen -o $1 $cdl |
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 | |
path=${@: -2:1} | |
term=${@: -1:1} | |
if [[ !(-d $path) ]]; then | |
echo "Usage: ncfind [-f] PATH PATTERN" | |
exit 0 | |
fi | |
execs="find . -name '*.nc' -exec grep -E -i -a -q '$term' {} \; -print " |