This file contains 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
# Create a user with Login | |
sql = [%(CREATE ROLE <username> WITH PASSWORD '<password>' LOGIN)] | |
# # Allow to connect | |
sql << %(GRANT CONNECT ON DATABASE reports TO <username>) | |
# # Allow to use schema | |
sql << %(GRANT USAGE ON SCHEMA public TO <username>) | |
# # grant on current objects | |
sql << %(GRANT SELECT ON ALL TABLES IN SCHEMA public TO <username>) | |
# # grant on future objects | |
sql << %(ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO <username>) |
This file contains 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
ThinkPad ACPI Extras Driver | |
Version 0.25 | |
October 16th, 2013 | |
Borislav Deianov <[email protected]> | |
Henrique de Moraes Holschuh <[email protected]> | |
http://ibm-acpi.sf.net/ | |
This file contains 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
How to conserve battery power using laptop-mode | |
----------------------------------------------- | |
Document Author: Bart Samwel ([email protected]) | |
Date created: January 2, 2004 | |
Last modified: December 06, 2004 | |
Introduction | |
------------ |
This file contains 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
Asus Laptop Extras | |
Version 0.1 | |
August 6, 2009 | |
Corentin Chary <[email protected]> | |
http://acpi4asus.sf.net/ | |
This driver provides support for extra features of ACPI-compatible ASUS laptops. | |
It may also support some MEDION, JVC or VICTOR laptops (such as MEDION 9675 or |
This file contains 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/sh | |
# This came from Greg V's dotfiles: | |
# https://github.com/myfreeweb/dotfiles | |
# Feel free to steal it, but attribution is nice | |
# | |
# Thanks: | |
# http://www.amsys.co.uk/2013/blog/using-command-line-to-benchmark-disks/ | |
echo "Benchmarking write..." | |
dd if=/dev/zero bs=2048k of=tstfile count=1024 2>&1 | grep sec | awk '{print $1 / 1024 / 1024 / $5, "MB/sec" }' |
This file contains 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 zsh | |
# This came from Greg V's dotfiles: | |
# https://github.com/myfreeweb/dotfiles | |
# Feel free to steal it, but attribution is nice | |
autoload colors && colors | |
echo $PATH | tr ":" "\n" | \ | |
awk "{ sub(\"/usr\", \"$fg_no_bold[green]/usr$reset_color\"); \ | |
sub(\"/bin\", \"$fg_bold[blue]/bin$reset_color\"); \ |
This file contains 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
# Shell prompt based on the Solarized Dark theme. | |
# Screenshot: http://i.imgur.com/EkEtphC.png | |
# Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles | |
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing. | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
export TERM='gnome-256color'; | |
elif infocmp xterm-256color >/dev/null 2>&1; then | |
export TERM='xterm-256color'; | |
fi; |
This file contains 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 | |
# --------------------------------------------------------------------------- | |
# new_script - Bash shell script template generator | |
# Copyright 2012, William Shotts <[email protected]> | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains 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
#compdef msfconsole | |
# ------------------------------------------------------------------------------ | |
# Copyright (c) 2014 Spencer McIntyre | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright |
This file contains 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
# setup metasploit from master on github: https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment | |
# good help on console and metasploit: http://www.offensive-security.com/metasploit-unleashed/Msfconsole | |
#start msfconsole | |
use auxiliary/scanner/http/apache_mod_cgi_bash_env | |
set VHOST app.local | |
set TARGETURI "/all" | |
set RPORT 3000 |