Step 1
If any version of postman is installed we need to remove it
sudo rm -rf /opt/Postman
Step 2
#!/bin/bash | |
# btrfs-undelete | |
# Copyright (C) 2013 Jörg Walter <info@syntax-k.de> | |
# This program is free software; you can redistribute it and/or modify it under | |
# the term of the GNU General Public License as published by the Free Software | |
# Foundation; either version 2 of the License, or any later version. | |
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then | |
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2 | |
echo |
# libssl1.1, the only missing mongodb dependency. | |
# I prefer enable oldstable in case this get backport security patches | |
echo "deb http://deb.debian.org/debian bullseye main" | sudo tee /etc/apt/sources.list.d/oldstable-bullseye.list | |
# MongoDB 4.4, [end of life Feb 2024](https://www.mongodb.com/support-policy/lifecycles) | |
curl -fsSL https://pgp.mongodb.com/server-4.4.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-4.4.gpg --dearmor | |
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list | |
sudo apt-get update && sudo apt-get install mongodb-org-server -y | |
# Unifi |
#!/bin/bash | |
# CHANGE THESE | |
auth_email="user@example.com" | |
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings | |
zone_name="example.com" | |
record_name="www.example.com" | |
# MAYBE CHANGE THESE | |
ip=$(curl -s http://ipv4.icanhazip.com) |
This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.
This gist will no longer update, instead please go to https://github.com/lifehome/systemd-cfddns for more updated versions.
cfupdater
files to /usr/local/bin
-v4
to cfupdater
in the following systemd service unit.Well, in hope to get more reliable and modern firmware on my Totolink A850R router from aliexpress.com I decided to upgrade it by TOTOLINK A850R-V1.0.2-20151104.zip from Totolink official site. So, I unpacked downloaded ZIP, started to upgrade the TOTOLINK-A850R-V1.0.2-B20151104.1609.web firmware from web admin panel, where the web form counted from 90 till 1 sec, after that page has been reloaded, I waited few more mins, and ... I figured out that my upgrade failed, with next "achievements":
So,
Our goal here is to have one USB stick to rule them all. Objectives:
The last bullet is subject to interpretation, but I'm defining functional as:
#!/usr/bin/env escript | |
% -*- mode: erlang -*- | |
main([BeamFile]) -> | |
{ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(BeamFile,[abstract_code]), | |
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]). |
Using Python to check if remote port is open and accessible.
Taken from http://snipplr.com/view/19639/test-if-an-ipport-is-open/
Usage: