Skip to content

Instantly share code, notes, and snippets.

@maop
maop / create-hotspot.md
Created December 8, 2019 21:58 — forked from narate/create-hotspot.md
Create Wi-Fi Hotspot on Linux using nmcli

Create a Wi-Fi hotspot on Linux using nmcli

Original post : https://unix.stackexchange.com/a/310699

nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
### Keybase proof
I hereby claim:
* I am maop on github.
* I am maop (https://keybase.io/maop) on keybase.
* I have a public key ASA7CPlRozF12L5jZ5ZKxroKBtrDByCZe9eavLH7RHX7hwo
To claim this, I am signing this object:
@maop
maop / commitstrip-bot.py
Created September 14, 2017 21:06
RSS to Mastodon with a Media Attachment
#!/usr/bin/python3
# rss to toot with media attachment
# CommitStrip
# by Marco Alfonso [maop.mx]
# 2017-09
import os
import feedparser #pip3 install feedparser
from mastodon import Mastodon #pip3 install Mastodon.py
@maop
maop / tint2rc.txt
Created August 27, 2017 22:27 — forked from ututogit/tint2rc.txt
BunsenLabs Minimo tint2 config
#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
# For more information about tint2, see:
# http://code.google.com/p/tint2/wiki/Welcome
#
# For more config file examples, see the BunsenLabs Tint2 config thread:
# https://forums.bunsenlabs.org/viewtopic.php?id=254
# Background definitions
@maop
maop / soyoustart.py
Created December 10, 2015 02:11
Python Script for watching SoYouStart.com server availability, it can watch many servers at many datacenters and notify by email
#!/usr/bin/env python
# I was in a hurry for a SYS server so i make this quick script,
# notice that you have to use codes from the "us" version, since server's id
# are different in the Europe versions of ovh sites
# You'll receive notification mails like this:
#
# 141cabk1 | BK-8T: Intel i3 2130 2c/4t 3.4 GHz+ 8 GB 2x4 TB SATA
# AVAILABLE (1H-low) in gra
# AVAILABLE (1H-low) in sbg
@maop
maop / dlAttachments.py
Last active August 29, 2015 14:26 — forked from baali/dlAttachments.py
Python script to download all gmail attachments.
# Something in lines of http://stackoverflow.com/questions/348630/how-can-i-download-all-emails-with-attachments-from-gmail
# Make sure you have IMAP enabled in your gmail settings.
# Right now it won't download same file name twice even if their contents are different.
import email
import getpass, imaplib
import os
import sys
detach_dir = '.'
<?php
require_once('Crypto.php');
function setKey(){
try {
$key = Crypto::CreateNewRandomKey();
// WARNING: Do NOT encode $key with bin2hex() or base64_encode(),
// they may leak the key to the attacker through side channels.
} catch (CryptoTestFailedException $ex) {
die('Cannot safely create a key');
} catch (CannotPerformOperationException $ex) {
### Keybase proof
I hereby claim:
* I am maop on github.
* I am maop (https://keybase.io/maop) on keybase.
* I have a public key whose fingerprint is 862F CA88 9456 DEE3 2E2D 5579 43BC CC7C 776B 1324
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am maop on github.
  • I am maop (https://keybase.io/maop) on keybase.
  • I have a public key whose fingerprint is 8DCF D0F6 98E0 4A33 CEFC 6172 ECAD 5DB3 ED5A 692B

To claim this, I am signing this object:

@maop
maop / corneta.sh
Last active December 17, 2015 20:59
Script para "grabar" los programas de "La Corneta" www.los40.com.mx/lacorneta/ y generar RSS para suscribirse como podcast
#!/bin/bash
# by maop <me@maop.mx>
# RSS: maop.gulegro.org/corneta/corneta.xml
# v0.1 29/05/2013
#
# Install:
# Modify Paths, and create a crontab with:
#
# 0 13 * * 1-5 /home/maop/scripts/corneta.sh
#