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/sh -e | |
#Define our target device | |
export TARGET_ARCH="-march=armv7-a" | |
export TARGET_TUNE="-mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb" | |
#Define the cross compilators on your system | |
export AR="arm-linux-gnueabi-ar" | |
export CC="arm-linux-gnueabi-gcc" | |
export CXX="arm-linux-gnueabi-g++" |
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 | |
adb reboot bootloader | |
fastboot flash boot boot.img | |
fastboot flash userdata userdata.img | |
fastboot flash system system.img | |
fastboot flash recovery recovery.img | |
fastboot erase cache | |
fastboot reboot |
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
const express = require('express') | |
const app = express() | |
const port = 3000 | |
const fs = require('fs') | |
app.use(express.json()) | |
app.use(express.urlencoded({ extended: true })) | |
let counter = 0 |
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
https://trello.com/1/authorize?key=YOURAPPLICATIONKEY&scope=read%2Cwrite&name=APPLICATIONNAME&expiration=never&response_type=token |
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
/* | |
Write a program that prints out the numbers 1 to 100 (inclusive). If the number is | |
divisible by 3, print Crackle instead of the number. If it's divisible by 5, print Pop. If | |
it's divisible by both 3 and 5, print CracklePop. You can use any language. | |
*/ | |
for (var i=1; i<=100; i++) { | |
var a = !(i % 15) ? 'CracklePop' : | |
!(i % 3) ? 'Crackle' : | |
!(i % 5) ? 'Pop' : |
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
pref("app.update.channel", "nightly"); | |
pref("app.update.url.override", "http://update.boot2gecko.org/unagi/1.2.0/%CHANNEL%/update.xml?build_id=%BUILD_ID%&version=%VERSION%"); |
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
pref("app.update.channel", "nightly"); | |
pref("app.update.url.override", "http://update.boot2gecko.org/unagi/1.3.0/%CHANNEL%/update.xml?build_id=%BUILD_ID%&version=%VERSION%"); |
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
echo "Se van a listar los archivos" | |
sleep 5 | |
ls | |
sleep 2 | |
echo "Digite el nombre del primer archivo a comprar: " | |
read archivo1 | |
[ -f $achivo1 ] && echo "El archivo existe" || echo "El archivo no existe" && exit | |
sleep 2 | |
echo "Digite el nombre del segundo archivo a comprar: " | |
read archivo2 |
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
function creat_dir() { | |
echo "Ruta y nombre del directorio (la ruta es opcional): " | |
read directorio | |
mkdir -p $directorio | |
echo "Directorio creado exitosamente!" | |
sleep 2 | |
} | |
function mov_dir() { |
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 | |
repos=( | |
myrepo1 | |
myrepo2 | |
myrepo3 | |
myrepo4 | |
myrepo5 | |
myrepo6 | |
myrepo7 | |
myrepo8 |
NewerOlder