Skip to content

Instantly share code, notes, and snippets.

Avatar

Ramon de la Fuente ramondelafuente

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am ramondelafuente on github.
  • I am ramondelafuente (https://keybase.io/ramondelafuente) on keybase.
  • I have a public key whose fingerprint is 9113 7E1E 04DA 18BD 66ED 2631 DBF1 303E 61FA D801

To claim this, I am signing this object:

View builder
Route::get('/experiment', function() {
//create a new file parser
$parser = new Tmont\Midi\Parsing\FileParser();
$midiFile = __DIR__ . '/../lib/kotta/assets/examples/simple.mid';
// $midiFile = __DIR__ . '/../vendor/tmont/midiparser/sample/And_We_Die_Young.mid';
//replace this path with the path to an actual MIDI file
$parser->load($midiFile);
$formatter = new Kotta\Formatter\NoteFormatter(0);
@ramondelafuente
ramondelafuente / test_sudo_and_variables.yml
Last active Aug 12, 2021
Testing ansible "ansible_ssh_user" and "ansible_user_id" variables with sudo
View test_sudo_and_variables.yml
- name: Testing variables with SUDO=NO
hosts: "*"
sudo: no
tasks:
- name: "PLAYBOOK SUDO=NO, TASK SUDO=NO"
command: whoami
register: whoami_output
sudo: no
- debug: var=whoami_output.stdout
@ramondelafuente
ramondelafuente / slack-tests.yml
Created Mar 20, 2014
A test playbook for the Slack module
View slack-tests.yml
---
- name: Test Slack Integration Module
hosts: "*"
vars:
- slack_domain: yourusername.slack.com
- slack_token: yourtoken
tasks:
- name: "It should arrive in the channel set in slack integration"