Skip to content

Instantly share code, notes, and snippets.

View agos's full-sized avatar

Agostino Carandente agos

View GitHub Profile

Keybase proof

I hereby claim:

  • I am agos on github.
  • I am agos (https://keybase.io/agos) on keybase.
  • I have a public key ASCmLvFge7H2YW0YDk_K1iuRGsRT16qDW0Y3xecXN0Z-Ngo

To claim this, I am signing this object:

identity = lambda x: x
compose = lambda f, g: lambda x: g(f(x))
# Test identity function
print identity(3) is 3
# Test composition
@agos
agos / gist:1291295
Created October 16, 2011 19:18
Homebrew nmap install problem
brew install % ago:AgoBookPro[~] brew install nmap
==> Downloading http://nmap.org/dist/nmap-5.51.tar.bz2
File already downloaded in /Users/ago/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/nmap/5.51 --without-zenmap
==> make
Makefile:375: makefile.dep: No such file or directory
/usr/bin/llvm-g++ -MM -I./libdnet-stripped/include -I./libpcre -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://nmap.org\" -DNMAP_PLATFORM=\"x86_64-apple-darwin11.2.0\" -DNMAPDATADIR=\"/usr/local/Cellar/nmap/5.51/share/nmap\" -D_FORTIFY_SOURCE=2 main.cc nmap.cc targets.cc tcpip.cc nmap_error.cc utils.cc idle_scan.cc osscan.cc osscan2.cc output.cc payload.cc scan_engine.cc timing.cc charpool.cc services.cc protocols.cc nmap_rpc.cc portlist.cc NmapOps.cc TargetGroup.cc Target.cc FingerPrintResults.cc service_scan.cc NmapOutputTable.cc MACLookup.cc nmap_tty.cc nmap_dns.cc tracer
@agos
agos / py2app error
Created July 21, 2011 22:42
py2app error
21/07/11 23.54.42 [0x0-0x94094].org.pythonmac.unspecified.bmgui[1024] <_FuncPtr object at 0x644b70>
21/07/11 23.54.42 [0x0-0x94094].org.pythonmac.unspecified.bmgui[1024] Traceback (most recent call last):
21/07/11 23.54.42 [0x0-0x94094].org.pythonmac.unspecified.bmgui[1024] File "/Users/mamma/Public/Drop Box/bmgui.app/Contents/Resources/__boot__.py", line 238, in <module>
21/07/11 23.54.42 [0x0-0x94094].org.pythonmac.unspecified.bmgui[1024]
21/07/11 23.54.42 [0x0-0x94094].org.pythonmac.unspecified.bmgui[1024] _run('bmgui.py')
21/07/11 23.54.42 [0x0-0x94094].org.pythonmac.unspecified.bmgui[1024] File "/Users/mamma/Public/Drop Box/bmgui.app/Contents/Resources/__boot__.py", line 210, in _run
21/07/11 23.54.42 [0x0-0x94094].org.pythonmac.unspecified.bmgui[1024]
21/07/11 23.54.42 [0x0-0x94094].org.pythonmac.unspecified.bmgui[1024] execfile(path, globals(), globals())
21/07/11 23.54.42 [0x0-0x94094].org.pythonmac.unspecified.bmgui[1024] File "/Users/mamma/Public/Drop Box/bmgui.app/Contents/Resources
@agos
agos / py2app setup.py
Created July 21, 2011 22:38
py2app issue
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
import ez_setup
ez_setup.use_setuptools()
;; ;;
;; ;;
; ________________________________________ ;
________________________________________
@agos
agos / gist:964175
Created May 10, 2011 09:31
Sospetta bufala
ricevo ed inoltro. Margherita
Ciao a tutti,
confermo la necessità di questo passaparola, aggiungendo che si tratta di informazione per ri-affermare i diritti costituzionalmente garantiti . Il dramma è che sembra la maggior parte della popolazione non sia consapevole di quanto sta avvenendo.
Quello che Vi porto è solo un piccolo esempio. Sono una ricercatrice, mi occupo di diritto ambientale e di risorse idriche. Ieri mattina dovevo intervenire ad un programma RADIO RAI (programmato ormai da due settimane) per parlare del referendum sulla privatizzazione dell'acqua e chiarirne meglio le implicazioni giuridiche.
'E arrivata una circolare interna RAI alle 8 di ieri mattina che ha vietato con effetti immediati a qualunque programma della RAI di toccare l'argomento fino a giugno (12-13 giugno quando si terrà il referendum), quindi il programma è saltato e il mio intervento pure.
Questo è un piccolo esempio delle modalità con cui "il servizio pubblico" viene messo a tacere e di come si boicotti pesantemente l
@agos
agos / gist:945373
Created April 27, 2011 22:25
Another Kod hanging trace
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys003
[Switching to process 75024 thread 0x0]
2011-04-28 00:24:19.388 Kod[75024:3c03] D [src/KNodeThread.mm:95] [node] starting in <KNodeThread: 0x1010273c0>{name = se.hunch.kod.nodejs, num = 2}
2011-04-28 00:24:19.388 Kod[75024:903] D [src/KMachService.mm:40] <KMachService: 0x101005730> opened
@agos
agos / gist:945362
Created April 27, 2011 22:18
Kod console output
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys003
[Switching to process 74497 thread 0x0]
2011-04-28 00:19:13.196 Kod[74497:903] D [src/KMachService.mm:40] <KMachService: 0x101025a80> opened
2011-04-28 00:19:13.197 Kod[74497:3c03] D [src/KNodeThread.mm:95] [node] starting in <KNodeThread: 0x101025190>{name = se.hunch.kod.nodejs, num = 2}
Process: Kod [780]
Path: /Applications/Kod.app/Contents/MacOS/Kod
Identifier: se.hunch.kod
Version: 0.0.3 (0.0.3)
Code Type: X86-64 (Native)
Parent Process: launchd [136]
Date/Time: 2011-01-11 23:44:07.667 +0100
OS Version: Mac OS X 10.6.6 (10J567)
Report Version: 6