Skip to content

Instantly share code, notes, and snippets.

View zet235's full-sized avatar
🌴
On vacation

Zet zet235

🌴
On vacation
View GitHub Profile
@zet235
zet235 / 1.md
Created January 23, 2019 11:32

https://www.appcoda.com.tw/cocoapods/

xcode

sudo /Applications/HPE_Security/Fortify_SCA_and_Apps_17.10/bin/sourceanalyzer -b buidl_id -Xmx8000M xcodebuild  HealthNewService -workspace HealthNewService.xcworkspace -scheme HealthNewService -configuration Release build "CODE_SIGN_IDENTITY=iPhone Developer: f4ke.tw@gmail.com (T23WA3668N)" -sdk iphonesimulator
sudo /Applications/HPE_Security/Fortify_SCA_and_Apps_17.10/bin/sourceanalyzer -b HealthNewService -Xmx8000M -scan -f ./result.fpr
@zet235
zet235 / TrueColour.md
Created March 9, 2018 17:30 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
@zet235
zet235 / brew-perms.sh
Created January 26, 2018 09:42 — forked from jaibeee/brew-perms.sh
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
@zet235
zet235 / Kali 2017.1 x64, Docker-ce Install script
Created November 23, 2017 14:48 — forked from nikallass/Kali 2017.1 x64, Docker-ce Install script
Kali 2017.1 x64, Docker-ce Install script
#!/bin/bash
# update apt-get
export DEBIAN_FRONTEND="noninteractive"
sudo apt-get update
# remove previously installed Docker
sudo apt-get remove docker docker-engine docker.io* lxc-docker*
# install dependencies 4 cert
@zet235
zet235 / router_env.sh
Last active November 22, 2016 10:16
router env install script
git clone https://github.com/devttys0/binwalk.git
apt-get -y install python-lzma
apt-get -y install python-crypto
apt-get -y install python-numpy python-scipy python-pip
apt-get -y install python-pip
pip install --upgrade pip
pip install pyqtgraph
pip install capstone
cd binwalk
sudo python setup.py install

Performance of Flask, Tornado, GEvent, and their combinations

Wensheng Wang, 10/1/11

Source: http://blog.wensheng.org/2011/10/performance-of-flask-tornado-gevent-and.html

When choosing a web framework, I pretty much have eyes set on Tornado. But I heard good things about Flask and Gevent. So I tested the performance of each and combinations of the three. I chose something just a little more advanced than a "Hello World" program to write - one that use templates. Here are the codes:

1, Pure Flask (pure_flask.py)