Não use UUID como PK nas tabelas do seu banco de dados.
Download the package: http://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/rsync-3.1.2-2-x86_64.pkg.tar.xz
Extract it and move rsync.exe to %HOMEDRIVE%%HOMEPATH%\AppData\Local\Programs\Git\usr\bin.
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
| // Usage: | |
| // | |
| // npm install phantom @types/phantom --save | |
| // tsc --target "es6" ./phantomjs-example.ts | |
| // node phantomjs-example.js | |
| // | |
| import * as phantom from "phantom"; | |
| async function getPageContent(url: string) { |
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 python3 | |
| # -*- coding: utf-8 -*- | |
| from random import randint | |
| from requests import get | |
| from json import loads | |
| url = 'http://dabsistemas.saude.gov.br/sistemas/sadab/js/buscar_cpf_dbpessoa.json.php?cpf=' | |
| saida = 'N: {5}\nNome: {0}\nMãe: {1}\nSexo: {2}\nNacimento: {3}\nCPF: {4}' |
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 python | |
| # -*- coding: utf-8 -*- | |
| import requests,json,sys | |
| # Script simples para consulta de dados na base dados nacional do SUS utilizando o CPF. | |
| # Jhonathan Davi A.K.A jh00nbr / Insightl4b lab.insightsecurity.com.br | |
| # jh00nbr: http://jhonathandavi.com.br | |
| # Blog: lab.insightsecurity.com.br | |
| # Github: github.com/jh00nbr | |
| # Twitter @jh00nbr |
- Create new Ubuntu Micro instance (e.g., Name = Tools)
- Stop instance you want to lower EBS volume.
- Create AMI image as backup of your instance.
- Create an empty X GB Amazon EBS volume in the same availability zone where X is smaller size you desire.
- Detach the volume you wish to resize from the stopped instance from step 2 above.
- Attach the original volume to the Tools instance (e.g., as /dev/xvdf)
- Attach new downsized volume to the Tools instance (e.g., as /dev/xvdg)
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
| /*<?php | |
| //*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
| //\u000A\u002F\u002A | |
| class PhpJava { | |
| static function main() { | |
| echo(//\u000A\u002A\u002F | |
| "Hello World!"); | |
| }} | |
| //\u000A\u002F\u002A | |
| PhpJava::main(); |
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
| <?php | |
| namespace App\ActiveRecord; | |
| class PostRepository | |
| { | |
| private $cache; | |
| public function __construct(Cache $cache) | |
| { | |
| // Any set() / get() cache implementation. |
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
| @servers(['production' => 'productionserver', 'local'=> 'vagrant@127.0.0.1 -p 2222']) | |
| {{-- Configuration section --}} | |
| @setup | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Git Config | |
| |-------------------------------------------------------------------------- | |
| | |
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
| ################################## | |
| # ~/.ssh/config | |
| ################################## | |
| Host bitbucket.org | |
| Hostname altssh.bitbucket.org | |
| Port 443 |
NewerOlder