Skip to content

Instantly share code, notes, and snippets.

View allexiusw's full-sized avatar
:shipit:
Breaking things, moving fast & recovery quickly.

William Ventura allexiusw

:shipit:
Breaking things, moving fast & recovery quickly.
View GitHub Profile
#! /bin/bash
usuario1="avaro"
usuario2="kelvin"
GROUP="casa"
echo "iniciando la creacion de los usuarios"
#crea el usuario alvaro
useradd -m -d /home/$usuario1 -s /bin/bash $usuario1
#!/bin/bash
USER1="KEVIN"
USER2="MARYORI"
USER3="OMARYORI"
GROUP="elmejor"
echo "Iniciando la creacion de usuarios"
Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
@canokay
canokay / decorators.py
Last active May 29, 2022 17:44
Django Custom View Decorators
from django.http import HttpResponseRedirect
from django.core.exceptions import PermissionDenied
from django.urls import reverse
from django.shortcuts import render
from django.shortcuts import redirect
def role_required(allowed_roles=[]):
def decorator(view_func):
def wrap(request, *args, **kwargs):
@tayl0r
tayl0r / Google Play Api - Apk Upload.md
Last active August 12, 2020 19:46 — forked from machinekoder/Google Play Api - Apk Upload.md
This python script uploads an apk file into Google Play Store using Android Play Publisher API

In Google Developer Console inside your app project, on the Credentials section, you must create a new "Service Account" "Client ID", if you have not already. And download the p12 file. You need the service account key file, generated in the Google APIs Console into the same directory and rename it to key.p12.

On Google Play Developer Console you have to give permissions to "YOUR_SERVICE_ACCOUNT_EMAIL@developer.gserviceaccount.com" for uploading apks.

Installation

Download Google APIs Client Library for Python (google-api-python-client): https://code.google.com/p/google-api-python-client/ or use pip:

$ pip install google-api-python-client
@Pulimet
Pulimet / AdbCommands
Last active April 16, 2024 09:06
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader