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
| tmr@dev:~$ erl -sname boot | |
| Erlang R15B (erts-5.9) [source] [64-bit] [smp:2:2] [async-threads:0] [kernel-poll:false] | |
| Eshell V5.9 (abort with ^G) | |
| (boot@dev)1> | |
| (boot@dev)1> | |
| (boot@dev)1> erlang:get_cookie(). | |
| 'HAKAZNCDECSZGWFBJSGC' | |
| (boot@dev)2> | |
| (boot@dev)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
| /* | |
| * Module : ns_exec | |
| * Created : 20-NOV-2013 20:50 | |
| * Author : Tomas Morstein (www.IDEA.cz) | |
| * Description : Spawn a new process by inheriting all the kernel | |
| * namespaces of the existing process specified by PID | |
| * Prereqs : Linux >=3.8 built with kernel namespace support; | |
| * Older kernels does not implement all the namespaces | |
| * and even the 3.8 shipped by Ubuntu does not come | |
| * with CONFIG_USER_NS enabled: |
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
| @implementation CalendarView: CPView | |
| { | |
| } | |
| -(id)init { | |
| self = [super initWithFrame:CGRectMake(0, 0, 200, 200)]; | |
| if (self) { | |
| [self loadData]; | |
| } | |
| return self; |
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
| /* | |
| * $Id: $ | |
| * | |
| * Module: free -- description | |
| * Created: 15-SEP-2008 17:56 | |
| * Author: tmr | |
| */ | |
| #include <stdio.h> | |
| #include <unistd.h> |
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
| /* | |
| * addInt.c, v0.1 -- Manually add an intrusion database record | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <descrip.h> | |
| #include <ssdef.h> | |
| #include <jpidef.h> | |
| #include <ciadef.h> |
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
| /* | |
| * $Id: $ | |
| * | |
| * Module: inf -- description | |
| * Created: 18-DEC-2007 19:17 | |
| * Author: tmr | |
| */ | |
| #define INF (1.0 / 0.0) | |
| #define NAN (0.0 / 0.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
| tmr@gersemi:~/src/erl/misc$ git clone https://github.com/hypernumbers/LuvvieScript Cloning into 'LuvvieScript'... | |
| remote: Reusing existing pack: 784, done. | |
| remote: Total 784 (delta 0), reused 0 (delta 0) | |
| Receiving objects: 100% (784/784), 1.01 MiB | 546 KiB/s, done. | |
| Resolving deltas: 100% (405/405), done. | |
| tmr@gersemi:~/src/erl/misc$ cd LuvvieScript/ | |
| tmr@gersemi:~/src/erl/misc/LuvvieScript$ rebar get-deps | |
| ==> LuvvieScript (get-deps) | |
| Pulling mochiweb from {git,"git://github.com/mochi/mochiweb.git","master"} | |
| Cloning into 'mochiweb'... |
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
| // Build: | |
| // $ fsharpc ztmr.fs | |
| // Use: | |
| // $ mono ztmr.exe 5 | |
| open System | |
| let rec factorial n = | |
| match n with | |
| | 0 -> 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
| %% UNIX Login Records (utmp/wtmp) Parser | |
| %% Only GNU/Linux on x86_64 is supported at the moment. | |
| -module (unix_login_records). | |
| -export ([ | |
| read_utmp/0, read_wtmp/0, | |
| parse_file/1, parse/1, | |
| record_to_proplist/1 | |
| ]). | |
| -type utmp_type_code () :: integer (). |
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/env perl | |
| # | |
| # $Id: $ | |
| # | |
| # Module: spotify-adkiller -- Naive Spotify AdKiller | |
| # Created: 03-JUL-2014 19:54 | |
| # Author: tmr | |
| # | |
| # TODO: |