bundle install
bundle exec ruby feedjira_test.rb
bundle exec ruby monkeypatched_feedjira_test.rb
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
| # Cria um arquivo de texto com um conteúdo qualquer. | |
| echo "Este é o arquivo original" > arquivo.txt | |
| # Cria um link simbólico (symbolic link, também chamado de symlink) | |
| # para este arquivo. | |
| ln -s arquivo.txt symlink.txt | |
| # Cria um hard link para o mesmo arquivo. | |
| ln arquivo.txt hard.txt |
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
| /** | |
| * Exemplo de paralelismo heterogêneo com microtarefas. | |
| */ | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| task spec task1(); | |
| task body task1() { | |
| printf("Running task1\n"); |
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 python | |
| # Python script to search for a given symbol in libraries that are loaded by | |
| # the dynamic linker (ld.so) in Linux. | |
| # | |
| # For example: to use the function `cabs` (absolute value of a complex number) | |
| # you need to include the header <complex.h>, but the function itself is | |
| # defined in libm.so. | |
| # | |
| # To find that out, you'd run: |
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
| # Ubuntu 14.04 | |
| # Install Guest Additions | |
| # Install updates | |
| # Update system | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| # Xfce |
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
| # Minimal example that demonstrates a memory leak in Sidekiq (or Celluloid?). | |
| # Adapted from @grosser example: https://github.com/mperham/sidekiq/blob/master/examples/leak.rb | |
| # Run with LEAK=0 for no memory leak or LEAK=1 for memory leak, like so: | |
| # LEAK=1 sidekiq -r ./leak.rb > /dev/null | |
| require 'sidekiq' | |
| redis = { namespace: :leak } |
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
| // Gist with some stuff to refer to later. |
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
| <!DOCTYPE html> | |
| <html ng-app='DemoApp'> | |
| <head> | |
| <title></title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js" ></script> | |
| <script src="http://code.angularjs.org/1.2.0/angular-animate.min.js" ></script> | |
| <script type="text/javascript" src='toaster.js'></script> | |
| <link rel="stylesheet" href="toaster.css"></link> | |
| <script type="text/javascript"> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Solarized (dark)</string> | |
| <key>settings</key> | |
| <array> | |
| <dict> | |
| <key>settings</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
| // Source: https://www.youtube.com/watch?v=4mf_yNLlgic | |
| // https://www.youtube.com/watch?v=4mf_yNLlgic#t=75 | |
| console.time('ajax'); | |
| // Do something! | |
| console.timeEnd('ajax'); | |
| // https://www.youtube.com/watch?v=4mf_yNLlgic#t=111 | |
| console.log(element); | |
| console.dir(element); // or dir(), if in console. |
NewerOlder