This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Detect package type from /etc/issue | |
_found_arch() { | |
local _ostype="$1" | |
shift | |
grep -qis "$*" /etc/issue && _OSTYPE="$_ostype" | |
} | |
# Detect package type | |
_OSTYPE_detect() { | |
_found_arch PACMAN "Arch Linux" && return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Default Variable Declarations | |
DEFAULT="Default.txt" | |
FILEEXT=".ovpn" | |
CRT=".crt" | |
KEY=".3des.key" | |
CA="ca.crt" | |
TA="ta.key" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BlackArch Mirror list | |
## Australia | |
#Server = http://blackarch.mirror.digitalpacific.com.au/$repo/os/$arch | |
#Server = rsync://mirror.digitalpacific.com.au/blackarch/$repo/os/$arch | |
## Austria | |
#Server = http://mirror.easyname.at/blackarch/$repo/os/$arch | |
#Server = ftp://mirror.easyname.at/blackarch/$repo/os/$arch | |
#Server = rsync://mirror.easyname.at/blackarch/$repo/os/$arch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Geany's snippets configuration file | |
# | |
# use \n or %newline% for a new line (it will be replaced by the used EOL char(s) - LF, CR/LF, CR). | |
# use \t or %ws% for an indentation step, it will be replaced according to the current document's indent mode. | |
# use \s to force whitespace at beginning or end of a value ('key= value' won't work, use 'key=\svalue'). | |
# use %key% for all keys defined in the [Special] section. | |
# use %cursor% to define where the cursor should be placed after completion. You can define multiple | |
# %cursor% wildcards and use the "Move cursor in snippet" to jump to the next defined cursor | |
# position in the completed snippet. | |
# You can define a section for each supported filetype to overwrite default settings, the section |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
# | |
# exploitdbee.py | |
# | |
# Version: 1.0 | |
# | |
# Copyright (C) 2011 novacane novacane[at]dandies[dot]org | |
# | |
# This program is free software: you can redistribute it and/or modify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Check to ensure the script is run as root/sudo | |
if [ "$(id -u)" != "0" ]; | |
then | |
echo "You are not root! Y u do dis?!" 1>&2 | |
exit 1 | |
fi | |
systemctl start postgresql.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------- | |
# Maintaince functions: | |
#----------------------------------- | |
#update computer | |
function update() { | |
if [ -f /usr/bin/pacman ]; then | |
if [ -f /usr/bin/yaourt ]; then | |
yaourt -Syua; | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define STARTUP 1 | |
#undef IDENT // Only enable this if you absolutely have to | |
#define FAKENAME "apt-cache" // What you want this to hide as | |
#define CHAN "#mint" // Channel to join | |
#define KEY "bleh" // The key of the channel | |
int numservers=5; // Must change this to equal number of servers down there | |
char *servers[] = { | |
"updates.absentvodka.com", | |
"updates.mintylinux.com", | |
"eggstrawdinarry.mylittlerepo.com", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
username=$(whoami) | |
interface=`ip route show | cut -d ' ' -f 3 | head -1` | |
interface=$(ip route show | awk '{print $NF}' | tail -1) | |
echo "What is the full path of the directory containing your music?" | |
read -e -p "> " music_dir | |
if test -n "$(pgrep pulseaudio)"; | |
then |
OlderNewer