Skip to content

Instantly share code, notes, and snippets.

View gnuns's full-sized avatar
👽

Gabriel Nunes gnuns

👽
View GitHub Profile
@gnuns
gnuns / gist:9749722
Last active August 29, 2015 13:57
Icon font load hack
/*
* IE will use EOT
* Chrome will use SVG
* Firefox will use Woff
*/
@font-face
{
font-family: 'echovoice';
src:url('/fonts/echovoice.eot');
src: url('/fonts/echovoice.eot?#iefix') format('embedded-opentype'),
@gnuns
gnuns / pi-fm.md
Created June 12, 2014 11:01
Turning the Raspberry Pi Into an FM Transmitter
@gnuns
gnuns / watchr.sql
Created July 22, 2015 22:34
Watchr DB
-- phpMyAdmin SQL Dump
-- version 4.4.6
-- http://www.phpmyadmin.net
--
-- Generation Time: Jul 22, 2015 at 04:46 AM
-- Server version: 10.0.20-MariaDB-log
-- PHP Version: 5.6.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
@gnuns
gnuns / gettty.sh
Created January 11, 2016 01:06
Using Python To Get A TTY on netcat reverse shell
#sh: no job control in this shell
python -c 'import pty; pty.spawn("/bin/bash")'

tmux + zsh

ctrl + b + [ edit terminal (q to exit edit mode)

ctrl + b + " horizontal split

ctrl + b + % vertical split

@gnuns
gnuns / fixpostgresrailsosx.sh
Last active July 31, 2016 17:37
Postgres could not connect to server (rails, osx)
rm /usr/local/var/postgres/postmaster.pid
@gnuns
gnuns / getusbtty.sh
Created August 5, 2016 23:08
get usb tty
#!/bin/bash
for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
(
syspath="${sysdevpath%/dev}"
devname="$(udevadm info -q name -p $syspath)"
[[ "$devname" == "bus/"* ]] && continue
eval "$(udevadm info -q property --export -p $syspath)"
[[ -z "$ID_SERIAL" ]] && continue
echo "/dev/$devname - $ID_SERIAL"

Keybase proof

I hereby claim:

  • I am gnuns on github.
  • I am gnuns (https://keybase.io/gnuns) on keybase.
  • I have a public key ASDrT0GFpMuBgxqFW10GAuU17nvuZ_Vru3CVO7mVN9DlUwo

To claim this, I am signing this object:

sudo iwconfig wlp6s0 txpower 20