Skip to content

Instantly share code, notes, and snippets.

View nullrndtx's full-sized avatar

Randall Tux nullrndtx

View GitHub Profile
@nullrndtx
nullrndtx / FlashTools-Installer.sh
Last active May 15, 2024 11:41
SP Flash Tool on Linux? Why not? 8-)
#!/bin/bash
# check root user
if [ "$(id -u)" != 0 ]; then
echo "ERROR! Run this script with root user!"
exit 1
fi
# tab width
tabs 4
@nullrndtx
nullrndtx / dirc
Created February 10, 2016 16:18
DIRC - DracOS Irc Client
#!/bin/bash
# dirc - DracOS IRc Client
# Copyright (c) 2016 - randalltux
###################################
##### HOW TO #####
##### -h: hostname #####
##### -p: port #####
##### -n: nick #####
##### -k: password #####
##### -c: config #####
@nullrndtx
nullrndtx / simpleDirectoryLister.php
Created January 30, 2016 14:14
A simple PHP Directory Lister
<?php
/*
*** OPTIONS ***/
// TITLE OF PAGE
$title = "List of Files";
// ADD SPECIFIC FILES YOU WANT TO IGNORE HERE
$ignore_file_list = array( ".htaccess", "Thumbs.db", ".DS_Store", "index.php" );
# Test Internet Connection
ping -c 1 google.com > /dev/null
if [ "$?" != 0 ]
then
echo [*] [Internet Connection]: FAILED...;
echo [x] [warning]:This Script Needs An Active Internet Connection;
sleep 3
@nullrndtx
nullrndtx / ob.exit.py
Created January 14, 2016 03:56
Custom Openbox Logout Using PyGTK
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
import os
import getpass
class cb_exit:
def disable_buttons(self):