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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
/* | |
VCPU, Basic ALU | |
Jörg Kost | |
[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
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
) | |
func main() { |
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 | |
# Script will convert / rename the portfiles from the ID (ifIndex Observium) to LibreNms (port_id) | |
# Run this script after discovery | |
use strict; | |
use warnings; | |
use DBI; | |
my $hostname = "localhost"; |
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
diff -upwbr quagga/bgpd/bgpd.c quagga-jk/bgpd/bgpd.c | |
--- quagga/bgpd/bgpd.c 2012-06-27 12:02:11.000000000 +0200 | |
+++ quagga-jk/bgpd/bgpd.c 2012-06-27 12:06:46.000000000 +0200 | |
@@ -4646,6 +4646,7 @@ peer_uptime (time_t uptime2, char *buf, | |
/* Making formatted timer strings. */ | |
#define ONE_DAY_SECOND 60*60*24 | |
#define ONE_WEEK_SECOND 60*60*24*7 | |
+#define ONE_YEAR_SECOND 60*60*24*7*52 | |
if (uptime1 < ONE_DAY_SECOND) |
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 | |
SWITCHS=\ | |
" | |
foo1:127.0.0.1:g944g4 | |
foo2:127.0.0.2:g944g2 | |
" | |
DATUM=`date +%Y%m%d_%H%M%S` | |
export DATUM |
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/expect -f | |
set timeout 60 | |
set host [lindex $argv 0] | |
set password [lindex $argv 1] | |
set mac [lindex $argv 2] | |
log_user 1 | |
spawn telnet $host | |
#expect "Press any key to continue" | |
expect "*" | |
send "y\n" |
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
FROM debian:stretch | |
RUN apt-get -q update && apt-get -yq upgrade && apt-get -yq install golang openssl ca-certificates git && mkdir /root/go && cd /root && git clone https://go.googlesource.com/go && cd /root/go/src && ./all.bash && apt-get -y purge golang && echo 'PATH=$PATH:/root/go/bin' >> /root/.bashrc |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"net/http" | |
"net/url" | |
"os" | |
"strings" |
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
diskutil list | |
hdiutil convert -format UDRW -o image image.iso | |
diskutil unmountDisk /dev/disk2 | |
sudo dd if=image.dmg of=/dev/disk2 | |
diskutil unmountDisk /dev/disk2 |
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
package main | |
import ( | |
"bufio" | |
"log" | |
"os" | |
"strings" | |
) | |
func main() { |
OlderNewer