Skip to content

Instantly share code, notes, and snippets.

View Danrancan's full-sized avatar

Dan Ran Danrancan

View GitHub Profile
@Danrancan
Danrancan / gist:9e609f6439ea2f586c4e4fc5b0ceb80c
Created February 10, 2024 02:11
Mega.nz Apt Repositories and Sources List tutorial for Debian
# The Up-To-Date Guide of Mega.nz apt repositories, signing keys, and sources.list for MEGAsync & MEGAcmd on Debian
### This is a tutorial on how to add the official source repository for the MEGAsync and MEGAcmd apps developed by mega.nz, to your /etc/apt/sources.list (or preferably /etc/apt/sources.list.d/mega.nz.list) for installation & auto-upgrades of the corresponding apps, using a Debian Based Distribution.
### 1. Find Your Repo from mega.nz
Below is the main website link to find your distro specific version of your source repository for mega.nz and the megasync app. It is here to help you find the correct URI that corresponsds to your working distribution. DO NOT ADD THIS TO YOUR SOURCES LIST DIRECTLY! Now, go to the link in your web browser.
[https://mega.nz/linux/repo/](https://mega.nz/linux/repo/)
### 2. Find the repository that corresponds to your distro
@Danrancan
Danrancan / .bash_aliases-rpi4-danran-rocks
Last active January 6, 2023 11:16
This is a bash aliases (/home/$USER/.bash_aliases) file with useful commands for building, debugging, and maintaining a Postfix/Dovecot/Nginx LEMP server on the Raspberry Pi 4 running Ubuntu Server 20.04. All alias commands here are based off of tutorials at linuxbabe.com , particularly the "Build your own email server from scratch on Ubuntu" tu…
#############################################################################################
########################################### ABOUT ###########################################
#############################################################################################
# This is a bash aliases (/home/$USER/.bash_aliases) file with useful commands for building,
# debugging, and maintaining a Postfix/Dovecot/Nginx LEMP server on the Raspberry Pi 4
# running Ubuntu Server 20.04. All alias commands here are based off of tutorials at
# www.linuxbabe.com , particularly the "Build your own email server from scratch on
# Ubuntu" tutorial. This is my personal /home/$USER/.bash_aliases file that I built
# over the course of 2 years while building a webserver/emailserver based off of
@Danrancan
Danrancan / flasher_n900.sh
Last active January 6, 2023 08:05 — forked from glennzw/flasher_n900.sh
Automated flashing of nokia n900 to latest (nokia) maemo5 for debian
#!/bin/bash
#glenn@sensepost.com
# This script will flash your N900. It assumes you want to use the MAEMO 5 GLOBAL RELEASE.
# Based on trying to understand http://wiki.maemo.org/Updating_the_tablet_firmware#N900
set -e
echo "[[ Glenn's Maemo Flasher: glenn@sensepost.com / @glennzw for comments ]]"
type flasher-3.5 >/dev/null 2>&1 || { echo >&2 "I require flasher but it's not installed. Install from http://www.fladnag.net/downloads/telephone/n900/tools/
Once you have done that, you must enable i386 package in your debian based distro by entering the following command in a seperate termianl window ....
sudo dpkg --add-architecture i386" ;exit 1; }

Keybase proof

I hereby claim:

  • I am danrancan on github.
  • I am danran (https://keybase.io/danran) on keybase.
  • I have a public key ASDOP9YR3i3V7TtatAFqJ8k_g87nlYPFITNXUCYVq7uOlQo

To claim this, I am signing this object: