- wget -qO- https://get.docker.com/ | sh
- sudo docker run ubuntu:14.04
- sudo docker images
javascript: (function() { | |
function cargarDatos() { | |
var $ = jQuery.noConflict(true), | |
username = "admin", | |
password = "password"; | |
$('#username').trigger('focus').val(username); | |
$('#password').trigger('focus').val(password); | |
$('#remerberMe').trigger('focus').attr('checked',true); | |
} | |
var version = "1.7.1"; |
#unlock android pattern lock | |
#paso 1 | |
adb shell | |
cd /data/data/com.android.providers.settings/databases | |
sqlite3 settings.db | |
update system set value=0 where name='lock_pattern_autolock'; | |
update system set value=0 where name='lockscreen.lockedoutpermanently'; | |
.quit | |
#reboot android |
#!/usr/bin/bash | |
clear | |
dirproy=$(basename "`pwd`") | |
versionapp=$dirproy\_$(date +%d)_$(date +%b) | |
echo | |
echo -e 'Generando archivo tarball del proyecto: \e[1;33m'\"$dirproy\"'\e[0m' | |
echo -e 'Nombre para la Version: \e[1;36m'\"$versionapp\"'\e[0m' | |
rama=$(git br| sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \1/') | |
brname=$(git rev-parse --abbrev-ref HEAD) | |
echo -e 'Rama actual: \e[1;32m' $rama '\e[0m' |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>docsify</title> | |
<link rel="icon" href="_media/favicon.ico"> | |
<meta name="keywords" content="doc,docs,documentation,docsify,gitbook,creator,generator,github,jekyll,github-pages"> | |
<meta name="description" content="A magical documentation generator."> | |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
# elementary OS post install | |
sudo apt update && sudo apt upgrade | |
sudo apt install software-properties-common --no-install-recommends | |
sudo apt install ubuntu-restricted-extras libavcodec-extra ffmpeg | |
sudo apt install firefox vlc | |
sudo apt install audacious audacious-plugins | |
sudo apt install screenfetch |
void MainWindow::createfile(){ | |
QString filename="test.txt"; | |
QFile file(filename); | |
if(!file.exists()){ | |
qDebug() << "NO existe el archivo "<<filename; | |
}else{ | |
qDebug() << filename<<" encontrado..."; | |
} | |
QString mesg="una segunda linea"; | |
if (file.open(QIODevice::WriteOnly | QIODevice::Text)){ |
#!/bin/bash | |
app=setupgit.sh; | |
uname="Peter Anderson" | |
email="diniremix@gmail.com" | |
clear; | |
echo "Fijando nombre de usuario y email..." | |
echo | |
git config --global user.name "$uname" | |
git config --global user.email $email | |
echo "Creando algunos alias..." |
#!/bin/sh | |
PASSWD= | |
XAMPP_PATH=/opt/lampp/lampp | |
run_as_root (){ | |
PASSWD=`zenity --password --title "Xampp requires access"` | |
} | |
run_xampp_service (){ |