Skip to content

Instantly share code, notes, and snippets.

View ribasco's full-sized avatar
🎯

Rafael Ibasco ribasco

🎯
  • 13:43 (UTC +08:00)
View GitHub Profile
@ribasco
ribasco / fixperms.sh
Last active September 28, 2021 07:48
Simple bash script to fix the SSH Permissions of a user (in case you encounter Bad Ownership errors)
#!/bin/bash
set -e
if [[ $UID != 0 ]]; then
echo "Please run this script with sudo"
exit 1
fi
HOME_USER=$1
@ribasco
ribasco / SourceInfoQuery.java
Last active September 30, 2021 10:24
Source Info Query in Java (New Update)
import java.io.IOException;
import java.io.PrintStream;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.channels.DatagramChannel;
import java.nio.charset.StandardCharsets;
class SourceInfoQuery {
@ribasco
ribasco / clinterp.md
Last active August 22, 2022 02:12
About cl_interp
@ribasco
ribasco / index.html
Created September 26, 2022 15:15
Matt Cowley - Console Site
<body id="particles-js">
<style id="cmd-css">
</style>
<div class='console'>
<div class='console-inner'>
<div id="outputs">
</div>
<div class='console-prompt-box'>
<span class='console-label'>User ></span><input type="text" class='console-input' placeholder="Type command...">
</div>