In order to install FuzzyCLIPS on OSX and Linux you simply have to
- Clone the repo
$ git clone git@github.com:rorchard/FuzzyCLIPS.git && cd FuzzyCLIPS/source
- Compile it
$ make fzclips
- Use the binary! 🎉
[javierhonduco@ ~/experiments] cat HelloWorld.java | |
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello, World"); | |
} | |
} | |
[javierhonduco@ ~/experiments] javac HelloWorld.java | |
[javierhonduco@ ~/experiments] gdb --args java HelloWorld |
[javierhonduco@fedora parca-agent]$ make GO=`which go` ENABLE_RACE=yes test/integration | |
mkdir -p pkg/profiler/cpu/bpf/amd64 | |
make -C bpf build | |
make[1]: Entering directory '/home/javierhonduco/code/parca-agent/bpf' | |
make[1]: Nothing to be done for 'build'. | |
make[1]: Leaving directory '/home/javierhonduco/code/parca-agent/bpf' | |
cp bpf/out/amd64/cpu.bpf.o pkg/profiler/cpu/bpf/amd64/cpu.bpf.o | |
sudo CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC="clang" CGO_CFLAGS="-I/home/javierhonduco/code/parca-agent/dist/libbpf/amd64/usr/include" CGO_LDFLAGS="-fuse-ld=ld -lzstd /home/javierhonduco/code/parca-agent/dist/libbpf/amd64/libbpf.a" /usr/local/go/bin/go test -race -v ./test/integration/... -count=1 | |
=== RUN TestAnyStackContains | |
--- PASS: TestAnyStackContains (0.00s) |
In order to install FuzzyCLIPS on OSX and Linux you simply have to
$ git clone git@github.com:rorchard/FuzzyCLIPS.git && cd FuzzyCLIPS/source
$ make fzclips
# This simple Rack middleware subscribes to all AS::Notifications | |
# and adds the appropriate `Server-Timing` header as described in | |
# the spec [1] with the notifications grouped by name and with the | |
# elapsed time added up. | |
# | |
# [1] Server Timing spec: https://w3c.github.io/server-timing/ | |
module Rack | |
class ServerTimingMiddleware | |
def initialize(app) |
import requests | |
import json | |
from bs4 import BeautifulSoup | |
config = { | |
'login_url': 'https://carpa.aig.uc3m.es/validacion.asp', | |
'user': '', | |
'password': '' | |
} | |
source 'https://rubygems.org' | |
gem 'rails', '5.0.0' | |
gem 'sqlite3' | |
gem 'http_accept_language' | |
gem 'friendly_id', '~> 5.0.0' | |
gem 'acts-as-taggable-on' | |
gem 'activeadmin', github: 'activeadmin' |
# computes the greatest common divisor | |
# with a small subset of math operations | |
# that does not include `division` or `modulo` | |
def gcd(a, b): | |
while b>0: | |
c = a | |
a = b | |
while(c >= b): | |
c -= b | |
b = c |
class Node | |
attr_accessor :id, :type, :goto | |
def initialize(type = nil, goto = {}) | |
@type, @goto = type, goto | |
end | |
end | |
def matches?(pattern, text) |
require 'digest/sha1' | |
dir = '/Users/javierhonduco/Dropbox/uni/Estructura/lab/CodigoInicialP1' | |
exercise = 'E2-CompToInt' | |
args = 10000001 | |
interval = 0.5 | |
def dirhash dir | |
items = [] | |
hashs = [] |
from pqueue import PersistentQueue | |
q1 = PersistentQueue("/tmp/queue_storage_dir") | |
q1.put("1") | |
q1.put("2") | |
q1.put("3") | |
q1.close() | |
q2 = PersistentQueue("/tmp/queue_storage_dir") | |
while not q2.empty(): |