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
section .text | |
global _start ;must be declared for linker (ld) | |
_start: ;tell linker entry point | |
mov edx,len ;message length | |
mov ecx,msg ;message to write | |
mov ebx,1 ;file descriptor (stdout) | |
mov eax,4 ;system call number (sys_write) | |
int 0x80 ;call kernel |
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
#include <stdio.h> | |
#include <stdlib.h> | |
/** | |
* | |
* ba 0b 00 00 00 ; mov ?, 0b (write ?) | |
* be 01 00 00 00 ; mov ?,1 (stdout) | |
* bf cb 06 40 00 ; mov edi, 0x00 40 06 cb (char * helloworld) | |
* e8 bb fe ff ff ; call fwrite | |
* 5d |
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
encode / decode mnemonics / opcodes: | |
rasm2 -b 64 'mov dword [rbp-0x1], 0x68' | rasm2 -d -b 64 - | |
r2 ./file | |
aa | |
[analyze all] | |
i |
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
begin; | |
-- GeoNetwork | |
CREATE SCHEMA geonetwork; | |
-- Mapfishapp | |
create schema mapfishapp; |
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
activate_this = '/var/www/pmauduit/private/GeoHealthCheck/bin/activate_this.py' | |
execfile(activate_this, dict(__file__=activate_this)) | |
import sys | |
sys.stdout = sys.stderr | |
sys.path.insert(0, '/var/www/pmauduit/private/GeoHealthCheck/GeoHealthCheck/GeoHealthCheck') | |
from app import APP as application |
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
List breakpoints: | |
i b | |
Show register state: | |
i r | |
Change / relocate sources: | |
set substitute-path /path/to/a /another/to/a | |
Conditional breakpoints: |
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
// don't really care of SSL issues ... | |
public static void disableCertificates() { | |
TrustManager[] trustAllCerts = new TrustManager[]{ | |
new X509TrustManager() { | |
@Override | |
public java.security.cert.X509Certificate[] getAcceptedIssuers() { | |
return null; | |
} |
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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "debian-7-amd64-c2c" | |
config.vm.provision "puppet" do |puppet| | |
puppet.module_path = "modules" | |
end | |
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
## in a maven project: | |
$ mvn eclipse:eclipse -DdownloadSources=true | |
## JDWP | |
-agentlib:jdwp=transport=dt_socket,address=30303,server=y,suspend=n | |
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -Xmx2048M -XX:MaxPermSize=1024M |
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 | |
set -x | |
# Chambéry | |
#CITY=Chambéry | |
#NORTH=45.5903 | |
#SOUTH=45.5354 | |
#WEST=5.8621 | |
#EAST=5.9755 |