just use GHC for OSX https://ghcformacosx.github.io
the rest of these directions are preserved for historical purposes
xcode-select --install ; brew tap homebrew/versions ; brew tap homebrew/dupes \
| from sqlalchemy import create_engine, event, orm | |
| from sqlalchemy.orm import sessionmaker | |
| from sqlalchemy.orm.session import Session as SessionBase, object_session | |
| from sqlalchemy.event.api import listen | |
| # The following adds delete, insert, and update events after successful commits. | |
| # SQLAlchemy provides only events after flushes, but not after commits. | |
| # The classes are adapted from Flask-SQLAlchemy. | |
| # see also https://stackoverflow.com/a/12026787/60982 |
| I wasn't first to get the key. Nor was I second, third, or even fourth. I'm probably not even the | |
| 10th to get it (ok, looks like I was the 8th.) But I'm happy that I was able to prove to myself | |
| that I too could do it. | |
| First, I have to admit I was a skeptic. Like the handful of other dissenters, I had initially | |
| believed that it would be highly improbable under normal conditions to obtain the private key | |
| through exploiting Heartbleed. So this was my motivation for participating in Cloudflare's | |
| challenge. I had extracted a lot of other things with Heartbleed, but I hadn't actually set out to | |
| extract private keys. So I wanted to see first-hand if it was possible or not. |
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <[email protected]> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| #! /bin/bash | |
| # | |
| # Diffusion youtube avec ffmpeg | |
| # Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
| VBR="2500k" # Bitrate de la vidéo en sortie | |
| FPS="30" # FPS de la vidéo en sortie | |
| QUAL="medium" # Preset de qualité FFMPEG | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
| 1 普通匹配,遵循最长匹配规则,假设一个请求匹配到了两个普通规则,则选择匹配长度大的那个 | |
| 例如: | |
| location /{ | |
| [matches] | |
| } | |
| location /test{ | |
| [matches] | |
| } | |
| 2 精确匹配 | |
| location = /{ |
just use GHC for OSX https://ghcformacosx.github.io
the rest of these directions are preserved for historical purposes
xcode-select --install ; brew tap homebrew/versions ; brew tap homebrew/dupes \
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import subprocess | |
| import re | |
| ntfs_pattern = re.compile(r'File System Personality: NTFS') | |
| ntfs_device_node = re.compile(r'.*Device Node:.*') | |
| device_dict = {} |
| # Example usage | |
| # $ python dft.py | gnuplot | |
| # 9 | |
| # 0 0 | |
| # 1 1 | |
| # 2 2 | |
| # 0 2 | |
| # 1 1 | |
| # -1 1 | |
| # 0 2 |
| # install dependencies | |
| sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm | |
| # clone cpuminer | |
| git clone https://github.com/pooler/cpuminer.git | |
| # compile | |
| cd cpuminer | |
| ./autogen.sh | |
| ./configure CFLAGS="-O3" |
| @implementation XCDUUID | |
| + (void) load | |
| { | |
| // query runtime if NSUUID class already exists, if so => done | |
| if (objc_getClass("NSUUID")) | |
| { | |
| return; | |
| } | |