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
| fetchJSON("https://toimisto.opinsys.fi/v3/users").each do |user_data| | |
| user = User.create_or_update(user_data) | |
| user.save! | |
| end | |
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 | |
| PREREQS="" | |
| prereqs() { echo "$PREREQS"; } | |
| case "$1" in | |
| prereqs) | |
| prereqs | |
| exit 0 |
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
| menuentry "DIGIABI TEST" { | |
| loopback loop "/digiabi.img" | |
| set root='(loop)' | |
| linux /boot/vmlinuz-3.12-1-686-pae ro quiet splash root=/dev/mapper/puavo-images loop="/digabi.img" | |
| initrd /boot/initrd.img-3.12-1-686-pae | |
| loopback -d loop | |
| } |
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 | |
| # usage: ./sysnipo-openarena-join.sh <username> | |
| nc -w 5 irc.nebula.fi 6667 <<EOF | |
| NICK sysnibot | |
| USER sysnibot- 8 x : sysnibot | |
| JOIN #sysnipo | |
| PRIVMSG #sysnipo :${1} joined openarena! | |
| QUIT |
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/share/initramfs-tools/scripts/init-premount/lvmfix | |
| [ "$1" = "prereqs" ] && exit 0 | |
| echo "trying to fix lvm" | |
| set -x | |
| sleep 60 |
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
| menuentry "USB installer" { | |
| search --set usbdev --no-floppy --fs-uuid 555517bf-ff25-4d56-ab44-007555156b76 | |
| loopback loop "(${usbdev})/usb.img" | |
| set root='(loop)' | |
| linux /boot/vmlinuz ro quiet splash root=UUID=555517bf-ff25-4d56-ab44-007555156b76 puavo.img.dev=/dev/disk/by-uuid/555517bf-ff25-4d56-ab44-007555156b76 loop="usb.img" | |
| initrd /boot/initrd.img | |
| loopback -d loop | |
| } |
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 | |
| # init-premount script for lvm2. | |
| PREREQS="udev mdadm" | |
| prereqs() | |
| { | |
| echo $PREREQS | |
| } |
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
| epeli@yk-atk-05:~$ nw | |
| Virheellinen käsky | |
| epeli@yk-atk-05:~$ strace nw | |
| execve("/usr/bin/nw", ["nw"], [/* 46 vars */]) = 0 | |
| brk(0) = 0xd30e000 | |
| access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
| mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb779f000 | |
| access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
| open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
| fstat64(3, {st_mode=S_IFREG|0644, st_size=133297, ...}) = 0 |
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
| curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d ' | |
| { | |
| "template": "logstash-*", | |
| "mappings": { | |
| "_default_": { | |
| "_all" : {"enabled" : false} | |
| } | |
| } | |
| }' |
OlderNewer