Skip to content

Instantly share code, notes, and snippets.

@nunomcruz
nunomcruz / advanced_conf-telnet.md
Created February 21, 2021 00:08 — forked from Anime4000/advanced_conf-telnet.md
XPON SFP ONU (V2801F), XPON STICK ONU (TWCGPON657), RTL8672, RTL9601C1

Clearing Up

  • Original author have abandoned DFP-34G-2C2 (ZTE) and moved to Realtek
  • Take not that V2801F using Realtek SoC RTL9601C1, not RTL8672
  • RTL8672 is ADSL Modem, /proc/cpuinfo reported wrong.
  • RTL9601C1 consider stable, active development and large user base

Telnet Command:

Username: admin
@nunomcruz
nunomcruz / update-pycom-fork.md
Last active March 6, 2020 00:16 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone https://github.com/nunomcruz/pycom-micropython-sigfox.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream https://github.com/pycom/pycom-micropython-sigfox.git -t Dev
git fetch upstream
#!/bin/bash
#
# Use LibreOffice to convert Word .doc/x files to PDF in the current,
# or relative directory location, unless --outdir option used (see below).
# Tested: macOS Sierra 10.12.3
# Version: 1.2
# VikingOSX, 2017-02-02, Apple Support Communities
#
Usage () {
printf "%s\n" "Usage"
<?php
echo fread($fp,filesize("/tmp/flag.txt"));
?>
@nunomcruz
nunomcruz / checkpoint.sh
Last active April 24, 2020 08:41 — forked from phoob/checkpoint.sh
The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just from time to time.
#!/bin/bash
#
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
# from time to time
#
# Usage: ./checkpoint.sh
#
# The script checks if Enpoint Security VPN is running. If it is, then it shuts it down, if it is not, it fires it up.
# Or, make an Automator action and paste the script. You will need sudo power.
@nunomcruz
nunomcruz / wp_cli.sh
Last active January 3, 2024 16:01 — forked from phlbnks/wp_cli.sh
WP CLI based version of wp.sh (https://gist.github.com/emirpprime/37ef1f355ec5a7ecbb8f)
#!/bin/bash -e
#
# Description:
# This will deploy WordPress in the current directory.
# Without modification it:
# - will configure basic security:
# - remove initial user created
# - deploy 6G firewall in .htaccess
# - attempt to prevent user enumeration in .htaccess
# - protect sensitive files and disallow executables in /wp-uploads
@nunomcruz
nunomcruz / cask_upgrade.sh
Last active July 11, 2022 10:35
Script upgrading outdated brew casks
#!/usr/bin/env bash
(set -x; brew update;)
(set -x; brew upgrade;)
(set -x; brew upgrade --cask --greedy --force;)
(set -x; brew cleanup --prune=2;)
#curl -s https://raw.githubusercontent.com/fwartner/mac-cleanup/main/mac-cleanup | bash /dev/stdin
softwareupdate -li -a