Skip to content

Instantly share code, notes, and snippets.

@oldengremlin
oldengremlin / advanced_conf-telnet.md
Created July 26, 2024 11:22 — forked from nunomcruz/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
@oldengremlin
oldengremlin / anydesk-enable-remote-access.md
Created May 19, 2023 09:43 — forked from imami/anydesk-enable-remote-access.md
AnyDesk - How Enable Remote Access from ubuntu/debian terminal

###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.

Note:

Here are the commands might be usefull in this purpose:

  • anydesk --get-status : To get current status of anydesk, which might be offlien,online or nothing.
  • anydesk --get-id : To get the ID that your system can be accessed by.
  • anydesk --service : To start anydesk service if not already running (for Linux).
  • anydesk --restart-service : To restart anydesk service
  • anydesk --stop-service : To stop anydesk service
@oldengremlin
oldengremlin / loading.glade
Created April 5, 2020 15:38 — forked from carlos-jenkins/loading.glade
Simple example to use Gtk.ProgressBar with Python 2.7 and PyGObject.
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="wait">
<property name="can_focus">False</property>
<property name="border_width">10</property>
<property name="type">popup</property>
<property name="title" translatable="yes">Please wait...</property>
<property name="modal">True</property>
<property name="window_position">center-always</property>
@oldengremlin
oldengremlin / nginx.conf
Created February 26, 2020 15:37 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@oldengremlin
oldengremlin / remove.js
Created January 8, 2020 15:47 — forked from max-frai/remove.js
Remove outgoing facebook friend requests
var interval = window.setInterval(function() {
var moreButton = document.querySelector('a[ajaxify*="outgoing/more"]');
if (moreButton)
{
moreButton.click();
console.log('loading more...');
}
else
{
//window.clearInterval(interval);
# basic pfctl control
# ==
# Related: http://www.OpenBSD.org
# Last update: Tue Dec 28, 2004
# ==
# Note:
# this document is only provided as a basic overview
# for some common pfctl commands and is by no means
# a replacement for the pfctl and pf manual pages.
@oldengremlin
oldengremlin / tping
Last active July 12, 2019 13:53
tping
#!/bin/sh
if [ -z "$1" ]; then
echo Use: $0 ip-address
else
sudo ping $1 -A -s1600 -i0.01 -c1000 | awk '/time=[0-9]/ { printf("!"); next } { print }'
fi
@oldengremlin
oldengremlin / begin
Last active July 12, 2019 13:52
begin
#!/usr/bin/perl
$ARGV[0]="." if $#ARGV==-1;
my $string = $ARGV[0]; my $notfound = 1;
while (<STDIN>) { if ($notfound) { $notfound=0 if /$string/; next if $notfound; } print $_; }
@oldengremlin
oldengremlin / sslgen-cnf
Last active July 12, 2019 13:52
sslgen-cnf
#!/bin/sh
DAYS=9131
SSLDIR=/etc/ssl
PRIVATE=${SSLDIR}/private; #mkdir -p ${PRIVATE}
PUBLIC=${SSLDIR}/certs; #mkdir -p ${PUBLIC}
SSLGRP=ssl-cert
# Генеруємо свій корньовий сертифікат
ROOTCA=RootCA-OldenGremlin
@oldengremlin
oldengremlin / splitflac
Created December 20, 2016 09:15
Split flac from cue
#!/bin/bash
#############################
# зависимости:
# media-sound/shntool
# app-cdr/cuetools
# media-libs/flac
# media-sound/mac
# media-sound/ttaenc
# media-sound/wavpack
#############################