This file contains 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
# resumes file downloading | |
rsync --partial --progress --rsh='ssh -p 1234' usr@host:/remote/from /local/to | |
# resumes file uploading | |
rsync --partial --progress --rsh='ssh -p 1234' /local/from usr@host:/remote/to |
This file contains 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 | |
LIB_HOME=/path/to/lib/*.jar | |
version['45.3']=1.1 | |
version['46']=1.2 | |
version['47']=1.3 | |
version['48']=1.4 | |
version['49']=5 | |
version['50']=6 |
This file contains 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
import java.rmi.RemoteException; | |
import java.rmi.registry.LocateRegistry; | |
import java.rmi.registry.Registry; | |
public class PortScan { | |
public static void main(String... args) { | |
String host = args[0].equals("-") ? "localhost" : args[0]; | |
int portStarting = Integer.parseInt(args[1]); |
This file contains 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
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; | |
CREATE DATABASE `formulario` DEFAULT CHARACTER SET utf8 ; | |
USE `formulario` ; | |
-- ----------------------------------------------------- | |
-- Table `formulario`.`proyecto` | |
-- ----------------------------------------------------- |
This file contains 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
public static void main(String[] args) { | |
System.out.println("-- -- -- OR -- -- --"); | |
if(bol(1, true) | bol(2, true)); | |
System.out.println(); | |
if(bol(1, false) | bol(2, false)); | |
System.out.println("-- -- -- XOR -- -- --"); |
This file contains 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
INTPUT: | |
http://algo/consulta?cosa=alguien | |
OUTPUT: | |
25625304d4ab6165fdee1f0c4c66fd58cb436544 |