RSS

Posts in 2018

  • Leveraging yaml with cfengine

    Tuesday, September 25, 2018 in Cfengine

    CFEngine has core support for JSON and YAML. You can use this support to read, access, and merge JSON and YAML files and use these to keep policy files internal and simple. You access the data using the usual cfengine standard primitives. The use …

    Read more

  • Import commits from one git repo to another

    Tuesday, September 25, 2018 in Commands

    This imports commits from a repo in the ../masterfiles folder and applies them to the repository inside the current folder : (cd ../masterfiles/; git format-patch –stdout origin/master) | git am

    Read more

  • How to have asterisk call you into a meeting

    Tuesday, September 25, 2018 in Commands

    At alterway we sometimes have DTMF problems that prevent my mobile from joining a conference room. Here is something I use to have asterisk call me and place me inside the room : channeloriginateSIP/numlog/06XXXXXXXXapplicationMeetMe85224,M,secret

    Read more

  • Docker compose predictable bridge

    Tuesday, September 25, 2018 in Docker

    By default, docker-compose will create a network with a randomly named bridge. If you are like me using a strict firewall on all your machines, this just cannot work. You need to put your services in network_mode: “bridge” and add a custom network …

    Read more

  • Change the ip address of a running jail

    Tuesday, September 25, 2018 in FreeBSD

    Here is how to change the ip address of a running jail : jail -m ip4.addr=“192.168.1.87,192.168.1.88” jid=1

    Read more

  • Ansible custom facts

    Tuesday, September 25, 2018 in Ansible

    Custom facts are actually quite easy to implement despite the lack of documentation about it. How they work On any Ansible controlled host — that is, the remote machine that is being controlled and not the machine on which the playbook is run — you …

    Read more

  • Investigate memory errors

    Friday, July 06, 2018 in Netapp

    set adv system node show-memory-errors -node <cluster_node>

    Read more

  • Screen cannot open terminal error

    Tuesday, July 03, 2018 in Miscellaneous

    If you encounter : Cannot open your terminal '/dev/pts/0' - please check. Then you did not open the shell with the user you logged in with. You can make screen happy by running : script /dev/null

    Read more

  • Aggregate images into a video with mencoder

    Monday, April 30, 2018 in Miscellaneous

    Aggregate png images into a video mencoder mf://*.png -mf w=1400:h=700:fps=1:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi You should use the following to specify a list of files instead of *.png: mf://@list.txt …

    Read more

  • Find where inodes are used

    Wednesday, April 25, 2018 in Commands

    find . -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n

    Read more