Skip to content

Instantly share code, notes, and snippets.

View alexandrufulop's full-sized avatar

- alexandrufulop

View GitHub Profile
@alexandrufulop
alexandrufulop / UT_Install_ReadMe.md
Created January 14, 2025 09:40 — forked from thekosmix/UT_Install_ReadMe.md
How to install Ubuntu Touch in Lenovo Tab M10 HD (2nd Gen) - X306X (Wi-Fi+LTE)

If your device is X306F (Wi-Fi Only), follow the standard process on UT's website: https://devices.ubuntu-touch.io/device/amar-row-wifi/

Steps for Installing UT in Lenovo Tab M10 HD (2nd Gen) - X306X (Wi-Fi+LTE) using Linux

  1. Install adb and fastboot version 30.0
  2. Unlock Bootloader and Enable USB debugging
  3. Download the latest firmware of Android 11 and extract the zip.
  4. Boot your device in fastboot mode by holding volume down and power keys together.
  5. Run fastboot devices to confirm if the device is being detected or not.
  6. Open a terminal in unzipped directory and run the following commands
@alexandrufulop
alexandrufulop / redis_cheatsheet.bash
Created June 6, 2019 22:26 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@alexandrufulop
alexandrufulop / self-signed.sh
Created April 24, 2019 19:55 — forked from darth-veitcher/self-signed.sh
Create Self-signed Certs
#!/bin/sh
# one-liner to quickly generate certs
# props to StackOverflow (as always)
# https://stackoverflow.com/a/51417561
# and
# https://www.shellhacks.com/create-csr-openssl-without-prompt-non-interactive/
# (note use of * for wildcard)
# https://github.com/wekan/wekan/wiki/Traefik-and-self-signed-SSL-certs
# https://crypto.stackexchange.com/questions/26591/tls-encryption-with-a-self-signed-pki-and-python-s-asyncio-module
# https://jimfrenette.com/2018/03/ssl-certificate-authority-for-docker-and-traefik/
@alexandrufulop
alexandrufulop / iptables.sh
Created April 22, 2019 17:16 — forked from thomasfr/iptables.sh
iptable rules to allow outgoing DNS lookups, outgoing icmp (ping) requests, outgoing connections to configured package servers, outgoing connections to all ips on port 22, all incoming connections to port 22, 80 and 443 and everything on localhost
#!/bin/bash
IPT="/sbin/iptables"
# Server IP
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')"
# Your DNS servers you use: cat /etc/resolv.conf
DNS_SERVER="8.8.4.4 8.8.8.8"
# Allow connections to this package servers
@alexandrufulop
alexandrufulop / gist:6ee048bfed3ee52386d2bff1ebcf17f9
Last active December 10, 2018 16:05
Digital Nation Instructiuni Access
PASUL 1: de pe masina cu client-ul telnet ruleaza:
telnet digitalnation.fulop.ro 2018
PASUL 2: trebuie rulat urmatorul calup:
dupa fiecare linie introdusa apasati ENTER
GET / HTTP/1.1
Host: digitalnation.fulop.ro
User-Agent: DigitalNation Welcome
<?php
//Test how many times a php script runs
file_put_contents('runs.txt', 'executed'.PHP_EOL, FILE_APPEND);
?>
@alexandrufulop
alexandrufulop / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console