Skip to content

Instantly share code, notes, and snippets.

View remohammadi's full-sized avatar

Reza M Ghayeghchi remohammadi

View GitHub Profile
@yatsu
yatsu / numpy-openblas-macos-pip.sh
Created April 5, 2020 10:31
Install numpy with enabling openblas using pip on macOS
# Setup HomeBrew: https://brew.sh/
brew install openblas
pip download --no-binary :all: --no-deps numpy
unzip numpy-1.18.2.zip # (you may have newer version)
cd numpy-1.18.2
cat > site.cfg <<EOF
[openblas]
libraries = openblas
library_dirs = $(brew --prefix openblas)/lib
@farnasirim
farnasirim / goto.sh
Last active November 2, 2017 09:28
navigate to a go project directory easily using `goto` command
#!/bin/bash
if [ -z "$@" ]; then
echo "Usage: goto project-name"
return
fi
search_path=$GOPATH/src/
for i in {1..3}; do
@philips
philips / users.md
Last active April 5, 2023 14:17
Kubernetes Third-Party Resource Users
// https://gist.github.com/DavidWittman/b7a509632ed92fccf237 (SuperMicro)
package main
import (
"fmt"
"net"
"github.com/vmware/goipmi"
)
@alibo
alibo / filternet_bypass_bug.php
Last active August 29, 2015 14:23
Bypass filternet! (a bug in filtering system of Iran) - Proof of Concept
<?php
/**
* There is a bug in filternet (filtering system of Iran).
* if you wait 2 seconds or more
* before sending http request headers, you can bypass
* filternet! Also you should use LF
* instead of CRLF (like netcat).
*
*
* How to run:
@m0n5t3r
m0n5t3r / gunicorn-upstart.conf.template
Created July 30, 2010 12:27
template for a gunicorn upstart job that can run several instances of a django application
# %(mysite)s - run %(mysite)s instances (default is the main production instance)
#
# This runs gunicorn-django for %(mysite)s; to install:
# * sudo ln -s <this file> /etc/init/%(mysite)s
# * sudo initctl reload-configuration
#
# it expects the following directory layout:
#
# /home/%(mysite)s/public_html
# \-env -> virtualenv