Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
Search, Hack and Dev

Doctor Who Jiab77

🤖
Search, Hack and Dev
View GitHub Profile
View openpgp.md
@Jiab77
Jiab77 / get-connected-friends-on-second-life-from-terminal.md
Last active Oct 14, 2021
Get connected friends on Second Life from terminal
View get-connected-friends-on-second-life-from-terminal.md

Get connected friends on Second Life from terminal

If you are like me, lazy but able to get some crazy ideas sometime 😅 then you might have wondered how to get your connected friends on Second Life without being forced to connect on their website.

I must admit that what I'm gonna explain is working only because Linden Labs seems to have no clue about how security should be implemented correctly...

The above sentence is only valid if you've not enabled the MFA on your account.

For example, if a bad actor gets hands on your session cookie, nothing will avoid that bad actor to impersonate your account without any time limit! >

@Jiab77
Jiab77 / setup-apcupsd-and-netdata-on-ubuntu.md
Created Jul 3, 2021
Setup apcupsd and netdata on Ubuntu
View setup-apcupsd-and-netdata-on-ubuntu.md

Setup apcupsd and netdata on Ubuntu

In this document, I will explain how to setup apcupsd on Ubuntu 18.04 and 20.04.

I'll only document USB connected UPS and not the other supported connection modes.

Remove nut

If you have followed my previous gist related to nut, I'd serisouly recommend you to cleanup everything before continuing this gist.

@Jiab77
Jiab77 / setup-nut-and-netdata-on-ubuntu.md
Last active Jul 9, 2022
Setup nut and netdata on Ubuntu
View setup-nut-and-netdata-on-ubuntu.md

Setup nut and netdata on Ubuntu

In this document, I will explain how to setup nut (Network UPS Tools) on Ubuntu 18.04 and 20.04.

It is basically the next chapter of my previous gist, Upgrade nut on Ubuntu 18.04.

I'll only document USB connected UPS and not the other supported connection modes.

Install required dependencies

@Jiab77
Jiab77 / upgrade-nut-on-ubuntu-18.04.md
Last active Jul 1, 2021
Upgrade nut on Ubuntu 18.04
View upgrade-nut-on-ubuntu-18.04.md

Upgrade nut on Ubuntu 18.04

In this document, I will explain how to upgrade the default nut (Network UPS Tools) version from 2.7.4-5.1ubuntu2 to 2.7.4-11ubuntu4.

It is basically the same process as the one used in my previous upgrade gist, Upgrade systemd on Ubuntu 18.04.

The main reason why you would follow this gist is because by default the UPS detection tool nut-scanner is not available by default on Ubuntu 18.04 and can't be compiled correctly from source due to non standard library linking used that does not find the shared library even if it is correctly installed / loaded on the system.

Maybe you have been more lucky than me on your side and then you can simply leave this gist 😅 but on my side every fix attempts resulted in:

@Jiab77
Jiab77 / simple-multi-threaded-php-web-server.md
Last active Oct 14, 2021
An easy way to start the embedded PHP web server with the multi-thread option enabled or simulated when necessary.
View simple-multi-threaded-php-web-server.md
@Jiab77
Jiab77 / create-DNS-over-TLS-bridge-with-pi-hole-unbound-and-stubby-on-ubuntu-server.md
Last active Jul 31, 2022
Create DNS-over-TLS bridge with Pi-hole, unbound and stubby on Ubuntu Server
View create-DNS-over-TLS-bridge-with-pi-hole-unbound-and-stubby-on-ubuntu-server.md

Create DNS-over-TLS bridge with Pi-hole, unbound and stubby on Ubuntu Server

Few months ago, I've made a similar work but I wanted something a little more easier to manage. Please have a look at here for my previous work.

This time, I'm gonna do pretty much the same thing but using Pi-hole as base then modify it to include unbound and stubby.

This way, I can use the power of Pi-hole with some additional security layers:

  • Recursive DNS check (unbound)
  • DNS-over-TLS (stubby)
@Jiab77
Jiab77 / get_cuda_sm.sh
Created Feb 22, 2021 — forked from eyalroz/get_cuda_sm.sh
Shell script for determining the SM value for your (single) GPU
View get_cuda_sm.sh
#!/bin/bash
#
# Prints the compute capability of the first CUDA device installed
# on the system, or alternatively the device whose index is the
# first command-line argument
device_index=${1:-0}
timestamp=$(date +%s.%N)
gcc_binary=${CMAKE_CXX_COMPILER:-$(which c++)}
cuda_root=${CUDA_DIR:-/usr/local/cuda}
@Jiab77
Jiab77 / hashcat-brain-on-raspberry-pi-3b-3bplus-and-4b.md
Created Aug 22, 2020
Hashcat brain on Raspberry Pi 3B / 3B+ and 4B
View hashcat-brain-on-raspberry-pi-3b-3bplus-and-4b.md

Hashcat brain on Raspberry Pi 3B / 3B+ and 4B

This gist will explain how to install and setup Hashcat brain on a Raspberry Pi based cluster.

I've initially tried to use VC4CL instead of POCL but I could not compile it on Ubuntu Server 18.04.5.

Even if I've also compiled CMake as requested, the compilation failed anyway...

Install build dependencies

@Jiab77
Jiab77 / create-DNS-over-TLS-bridge-with-unbound-stubby-and-systemd-on-ubuntu-server-18.04.md
Last active Jul 13, 2022
Create DNS-over-TLS bridge with unbound, stubby and systemd on Ubuntu Server 18.04
View create-DNS-over-TLS-bridge-with-unbound-stubby-and-systemd-on-ubuntu-server-18.04.md