Skip to content

Instantly share code, notes, and snippets.

View johnbahamon's full-sized avatar
Upper

John Bahamon johnbahamon

Upper
View GitHub Profile
<form action="https://api.playecommerce.com/products" method="post" enctype="multipart/form-data">
<input type="file" name="avatar" multiple>
<input type="submit" value="Enviar">
</form>
https://github.com/expressjs/multer/issues/114
https://evdokimovm.github.io/javascript/nodejs/expressjs/multer/2016/11/03/Upload-files-to-server-using-NodeJS-and-Multer-package-filter-upload-files-by-extension.html
https://blog.ragingflame.co.za/2015/2/6/resizing-images-in-nodejs-applications
https://ciphertrick.com/2015/12/21/image-manipulation-using-nodejs-imagemagick/
@johnbahamon
johnbahamon / gh-pages-deploy.md
Created March 31, 2017 22:55 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

Imports System
Imports System.IO
Imports System.Text
Public Class Form1
Private psi As ProcessStartInfo
Private cmd As Process
Private Delegate Sub InvokeWithString(ByVal text As String)
Dim directorio As String
Infinitive Past Simple Past Participle
be was / were been
beat beat beaten/beat
become became become
begin began begun
bend bent bent
bet bet/betted bet/betted
bite bit bitten
bleed bled bled
blow blew blown
function f(shouldInitialize: boolean) {
if (shouldInitialize) {
var x = 10;
}
return x;
}
f(true); // returns '10'
f(false); // returns 'undefined'
function sumMatrix(matrix: number[][]) {
var sum = 0;
for (var i = 0; i < matrix.length; i++) {
var currentRow = matrix[i];
for (var i = 0; i < currentRow.length; i++) {
sum += currentRow[i];
}
}
return sum;
}
<?xml version="1.0" encoding="us-ascii"?>
<ioc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="b0934042-0973-49e7-9317-12104f957b03" last-modified="2016-11-21T09:55:52" xmlns="http://schemas.mandiant.com/2010/ioc">
<short_description>blacknurse_sia34</short_description>
<description>BlackNurse es un ataque DDoS que aprovecha los paquetes ICMP de tipo 3, C?digo 3. El ataque hace que algunos equipos de red sobrecarguen la CPU con operaciones. Se sabe que cuando un usuario acepta ICMP de tipo 3 C?digo 3 de conexiones externas, el ataque BlackNurse se vuelve altamente eficaz incluso con un ancho de banda bajo.</description>
<authored_by>John Fredy Bahamon Bonilla</authored_by>
<authored_date>2016-11-21T07:25:27</authored_date>
<links>
<link rel="category">DDoS</link>
<link rel="report">TDC Security Operations Center(SOC)</link>
<link rel="comment">UNIPILOTO</link>
/*
* Decompiled with CFR 0_115.
*/
import java.io.PrintStream;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.SQLException;
public class conectaDB {
<script>
var name;
prompt("¿Cual es tu nombre?",name);
document.write("Tu nombre es " + name);
</script>