Skip to content

Instantly share code, notes, and snippets.

View elventear's full-sized avatar
🧙‍♂️
Conjuring

Pepe Barbe elventear

🧙‍♂️
Conjuring
View GitHub Profile
BEGIN MESSAGE.
j8m4vOtqYXjxMLx HkkRgjM7RhWdkrV 1iVmZwKHbAcd8kr H0M80n5Z8UoOt0N
K4v0vX0a9QeZobP CV7usLTLokLTCKq 6Xr2MZHgg4V3oHL Pv8UQddrkrE3A8u
lsYIqAV2zOTYYy2 pXrJvvbASaRSKq0 gHNPhTPJiKLRALR UCnQyy1PU2b1PFp
XpridRNqGvx1SBf wvMHRwEhMn07lPk WtpM029HFxl.
END MESSAGE.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@elventear
elventear / isohybrid.pl
Created June 20, 2017 05:03 — forked from jsarenik/isohybrid.pl
isohybrid.pl from Syslinux-6.03
#!/usr/bin/perl
## -----------------------------------------------------------------------
##
## Copyright 2002-2008 H. Peter Anvin - All Rights Reserved
## Copyright 2009 Intel Corporation; author: H. Peter Anvin
##
## 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, Inc., 53 Temple Place Ste 330,
## Boston MA 02111-1307, USA; either version 2 of the License, or
@elventear
elventear / csd-wrapper.sh
Created April 20, 2017 22:40 — forked from l0ki000/csd-wrapper.sh
Cisco Anyconnect CSD wrapper for OpenConnect (exhanced to autodownload and autoupdate hostscan)
#!/bin/bash
# Cisco Anyconnect CSD wrapper for OpenConnect
# Enter your vpn host here
CSD_HOSTNAME=
if [[ -z ${CSD_HOSTNAME} ]]
then
echo "Define CSD_HOSTNAME with vpn-host in script text. Exiting."
exit 1
fi
@elventear
elventear / vm-resize-hard-disk.md
Created January 12, 2017 06:29 — forked from christopher-hopper/vm-resize-hard-disk.md
Resize a Hard Disk for a Virtual Machine provisioned using Vagrant from a Linux base box to run using VirutalBox.

Resize a Hard Disk for a Virtual Machine

Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.

Some assumptions

The following steps assume you've got a set-up like mine, where:

@elventear
elventear / README.md
Created July 14, 2016 21:30
Numerical Testing Sample with py.test parametrization

Original

Output

[2.7.10;@radtrack tests]$ py.test -v AnalyticCalc1_test.py
========================================== test session starts ===========================================
platform linux2 -- Python 2.7.10, pytest-2.8.3, py-1.4.30, pluggy-0.3.1 -- /home/vagrant/.pyenv/versions/2.7.10/bin/python
cachedir: ../.cache
rootdir: /home/vagrant/radtrack, inifile:
plugins: xdist-1.13.1
collected 1 items
" ftplugin/haskell.vim
set tags=tags;/,codex.tags;/
" Disable haskell-vim omnifunc
let g:haskellmode_completion_ghc = 0
autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc
autocmd FileType haskell nnoremap <buffer> <F1> :HdevtoolsType<CR>
#!/usr/bin/env ruby
require 'rubygems'
require 'twitter'
require 'json'
require 'faraday'
# things you must configure
PATH_TO_DROPBOX = "/Users/your_name/Dropbox/backup/tweets/" # you need to create this folder
TWITTER_USER = "your_twitter_username"

patch-edid.rb

A script to fix EDID problems on external monitors in Mac OS.

  1. Connect the problem monitor.

  2. Download this script into your /System/Library/Displays/Overrides (note: this file is only writeable by root, so some commands require sudo).

@elventear
elventear / gist:0f8bc9c281f43faf267e
Last active August 29, 2015 14:14 — forked from maskit/gist:2252422
Sniff WebSocket data
(function () {
WebSocket.prototype._send = WebSocket.prototype.send;
WebSocket.prototype.send = function (data) {
this._send(data);
this.addEventListener('message', function (msg) {
console.log('>> ' + msg.data);
}, false);
this.send = function (data) {
this._send(data);
console.log("<< " + data);