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
# koha-dev:/etc/apache2# cat bots-disable.conf | |
RewriteEngine On | |
# disable PetalBot | |
RewriteCond %{HTTP_USER_AGENT} PetalBot [NC] | |
RewriteRule .* - [F] | |
# disable Barkrowler/0.9; | |
RewriteCond %{HTTP_USER_AGENT} Barkrowler [NC] |
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
dpavlin@black:~/dell-switch$ git -C snmpbulkwalk/ grep 0:11:43:9a:5b:88 | grep ifPhysAddress | |
sw-aula:IF-MIB::ifPhysAddress[25] = STRING: 0:11:43:9a:5b:88 | |
sw-aula:IF-MIB::ifPhysAddress[26] = STRING: 0:11:43:9a:5b:88 | |
sw-aula:IF-MIB::ifPhysAddress[27] = STRING: 0:11:43:9a:5b:88 | |
sw-aula:IF-MIB::ifPhysAddress[28] = STRING: 0:11:43:9a:5b:88 | |
sw-aula:IF-MIB::ifPhysAddress[29] = STRING: 0:11:43:9a:5b:88 | |
sw-aula:IF-MIB::ifPhysAddress[30] = STRING: 0:11:43:9a:5b:88 | |
sw-aula:IF-MIB::ifPhysAddress[31] = STRING: 0:11:43:9a:5b:88 | |
sw-aula:IF-MIB::ifPhysAddress[32] = STRING: 0:11:43:9a:5b:88 | |
sw-aula:IF-MIB::ifPhysAddress[100000] = STRING: 0:11:43:9a:5b:88 |
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/sh -e | |
free=`df -k /var/lib/influxdb/ | grep / | awk '{ print $4 }'` | |
test "$free" -gt 2097152 && exit 0 | |
df -h /var/lib/influxdb | |
influx -database telegraf -execute 'show shards' | grep telegraf | head -2 | tee /dev/stderr | awk '{ print $1 }' | tail -1 | xargs -i influx -database telegraf -execute 'drop shard {}' | |
df -h /var/lib/influxdb |
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 warnings; | |
use strict; | |
use Socket qw( inet_aton ); | |
use Getopt::Long; | |
my $col = 1; | |
my $del = '\s+'; |
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/sh -e | |
ls -d */.git | cut -d/ -f1 | while read dir ; do | |
cd $dir | |
echo "# cd" `pwd` | |
git $* | |
cd .. | |
done |
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
# cd /klin/FPGA/saxonsoc/buildroot | |
diff --git a/board/spinal/saxon_ulx3s/linux.config b/board/spinal/saxon_ulx3s/linux.config | |
index 4608aeeb28..940cf271f7 100644 | |
--- a/board/spinal/saxon_ulx3s/linux.config | |
+++ b/board/spinal/saxon_ulx3s/linux.config | |
@@ -88,3 +88,13 @@ CONFIG_MTD=y | |
CONFIG_MTD_SPI_NOR=y | |
CONFIG_MTD_M25P80=y | |
+# debug kernel |
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/sh | |
xclip -out | sed 's/&/\&/g; s/</\</g; s/>/\>/g; s/"/\"/g; s/'"'"'/\'/g' | xclip -in -selection clipboard |
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/sh | |
# workflow: | |
# 1. focus textarea in browser you want to edit | |
# 2. press ctrl+a then ctrl+c | |
# 3. switch to terminal and start this script with optional extensioni for highlight: xclip-vi html | |
# 4. edit file in vi, and save it | |
# 5. switch back to browser, and press ctrl+v in already selected textarea | |
ext=$1 |
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 warnings; | |
use strict; | |
use Term::ReadKey; | |
use Data::Dump qw(dump); | |
my $direction = { | |
A => 'UP', | |
B => 'DOWN', |
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/sh -e | |
nr=1 | |
mkdir $1 | |
while true ; do | |
file=$1/`printf "%04d" $nr`.jpg | |
echo "scanning page $nr -> $file" | |
scanimage --progress --resolution 300 --format jpg -l 0mm -t 0mm -x 210mm -y 297mm > $file |
NewerOlder