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 | |
| git push fedora-erlang refs/remotes/fedora/fedora-*:refs/heads/fedora-* |
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 | |
| # | |
| # https://news.ycombinator.com/item?id=11690917 | |
| # | |
| erl -noshell +sbwt none -smp disable +A 0 -mode minimal -eval 'io:format("Hello world~n").' -s init stop |
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
| -module(test). | |
| -export([main/0]). | |
| main() -> | |
| error_logger:tty(false), | |
| ok = error_logger:logfile({open, "/dev/null"}), | |
| Binary = [ {B, hello, {complex, [{object, [1,2,3,4]}, 5,6,7,8,9]}} || B <- lists:seq(1,20) ], | |
| print(Binary). |
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
| <SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/"> | |
| <os:ShortName>BTDigg</os:ShortName> | |
| <os:Description>BTDigg - BitTorrent DHT search engine</os:Description> | |
| <os:InputEncoding>UTF-8</os:InputEncoding> | |
| <os:Image width="16" height="16">data:image/x-icon;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAHYBAAB2AQAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wAB0oiYAdKIXf///wD///8AAdKIHwHSiNMB0og3////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAHSiOAB0ojWAdKIA////wAB0oh9AdKI/wHSiIH///8A////AAHSiFMB0oiW////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAHSiEgB0ojOAdKITP///wAB0ogCAdKI8gHSiP8B0ohuAdKIPAHSiNIB0oj/AdKIoP///wAB0og7AdKI8AHSiNH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AAdKIUQHSiP8B0ojwAdKIVAHSiGsB0oj/AdKI/wHSiP8B0oj/AdKI/wHSiP8B0ojuAdKIs |
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
| install | |
| url --url="http://mirror.yandex.ru/fedora/linux/development/23/x86_64/os/" | |
| lang en_US.UTF-8 | |
| keyboard us | |
| # python -c "import crypt, getpass, pwd; print crypt.crypt('testpass', '\$6\$86XQ0WSE\$')" | |
| rootpw --iscrypted $6$86XQ0WSE$xFUpTag3yF1sU7gBNpZs2YOgezvTgHx8vVarmM3DVrjJYRFQa6ovpENVtXsMDE2m0avQaL/BpvDEETdzs5gJI1 | |
| services --disabled iptables,ip6tables,netfs | |
| services --enabled ntpd | |
| firewall --disabled |
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 | |
| KSNAME=node00 | |
| VIRTNAME=$KSNAME-`date +%Y-%m-%d` | |
| virt-install --connect=qemu:///system \ | |
| --network=bridge:virbr0 \ | |
| --location=http://mirror.yandex.ru/centos/7/os/x86_64/ \ | |
| --initrd-inject=/root/kickstart.ks \ | |
| --extra-args="ks=file:/kickstart.ks ip=dhcp console=tty0 console=ttyS0,115200 ksdevice=eth0" \ | |
| --name=${VIRTNAME} \ | |
| --disk /var/lib/libvirt/images/${VIRTNAME}.img,size=20 \ |
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/erl -setcookie <secretcookie> -sname test@example-com -remsh rabbit@example-com | |
| lists:reverse(lists:keysort(1, [fun(P) -> {memory, M} = erlang:process_info(P, memory), {M, P} end (Pid) || Pid <- erlang:processes()])). | |
| # http://levgem.livejournal.com/261075.html?nojs=1 | |
| # https://azunyanmoe.wordpress.com/2011/04/01/getting-process-information-of-erlang-runtime-system/ | |
| # http://www.erlang.org/doc/efficiency_guide/profiling.html | |
| # http://www.erlang.org/doc/man/eprof.html | |
| # http://www.erlang.org/doc/apps/tools/fprof_chapter.html |
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
| USE opensips; | |
| INSERT INTO `load_balancer` VALUES (1,0,'sip:b2bua1.local:5060','b2bua=65535',2,''),(2,0,'sip:b2bua2.local:5060','b2bua=65535',2,''),(3,0,'sip:b2bua3.local:5060','b2bua=65535',2,''); |
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
| [Unit] | |
| Description=Enable HTTP access to the repository | |
| After=syslog.target network.target | |
| [Service] | |
| Type=simple | |
| # Execute ExecStartPre and ExecStopPost directives from superuser | |
| PermissionsStartOnly=true | |
| User=ftp | |
| Group=ftp |
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 | |
| # | |
| # http://www.openfusion.net/linux/pvmove_disk_migrations | |
| # http://artw.ru/blog/archives/1376/ | |
| # http://xgu.ru/wiki/LVM | |
| # | |
| pvcreate /dev/sdi | |
| vgextend video /dev/sdi | |
| pvmove /dev/sdh /dev/sdi |