sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
You need to do this if you try this command:
ssh -T git@github.com
and you get something that says
git@github.com: Permission denied (public key).
https://github.com/nvie/gitflow https://formulae.brew.sh/formula/git-flow
For more info: https://gist.github.com/orclev/db21dc1d848c231ea729
brew install git-flow
import psycopg2 | |
import psycopg2.extras | |
from flask_csv import send_csv | |
@app.route("/fake", methods=["GET"]) | |
def fake(): | |
desde = "01/01/2020" | |
hasta = "25/05/2020" | |
tipo = "whatsapp" | |
SLACK_WORKSPACE_URL = app.config.get("SLACK_WORKSPACE_URL") |
10/10/19 | |
^\d{1,2}\/\d{1,2}\/\d{4}$ | |
^\d{2}\/\d{2}\/\d{4}$ --> dd/MM/yyyy | |
^\d{1}\/\d{1}\/\d{4}$ --> d/M/yyyy | |
^\d{1}\/\d{2}\/\d{4}$ --> d/MM/yyyy | |
^\d{2}\/\d{1}\/\d{4}$ --> dd/M/yyyy | |
^\d{2}\/\d{2}\/\d{2}$ --> dd/MM/yy |
$('#selUser').select2('readonly', true); // DESHABILITANDO UN SELECT2 | |
// PASANDO UNA LISTA A UN SELECT2 | |
var ids = tableDetail.column(0).data().toArray(); | |
initAsyncSelect2('selUser', CONSTANTS.routes.users.list, CONSTANTS.lang.users.rolePlaceholder,false, function () { | |
return { idUsersWithRoles: JSON.stringify(ids) }; // getting the id's | |
}); |
//https://developer.mozilla.org/es/docs/Web/JavaScript/Referencia/Objetos_globales/NumberFormat | |
var number = 123456.789; | |
// En el alemán la coma se utiliza como separador decimal y el punto para los millares | |
alert(new Intl.NumberFormat("de-DE").format(number)); | |
// → 123.456,789 | |
// En la mayoría de los países de lengua arábiga se utilizan también símbolos arábigos | |
alert(new Intl.NumberFormat("ar-EG").format(number)); |
//Changing user status to inactive. | |
List<String> ldapUsernames = lstLdap.stream() | |
.map(ItemUserLDAP::getUsername) | |
.collect(Collectors.toList()); | |
List<User> inactiveUsers = User.find. | |
where() | |
.not(Expr.in("username", ldapUsernames)) | |
.not(Expr.eq("username", MAIN_USR)) | |
.eq("status_ldap", Parameters.ACTIVE) |
// Convertir todo la data de una tabla en un array | |
table.data().toArray(); | |
// OBETENER UNA COLUMNA EN ESPECIFICO COMO ARRAY | |
var ids = table.column(0).data().toArray(); | |
// Boolean, si la tabla especificada es dt o no. | |
$.fn.DataTable.isDataTable('#table_permission_days'); | |
// Integer Para saber si la tabla esta vacía |