Skip to content

Instantly share code, notes, and snippets.

View suakow's full-sized avatar
🙋‍♂️
open to new opportunities

Puri suakow

🙋‍♂️
open to new opportunities
View GitHub Profile
@suakow
suakow / talib-install.sh
Last active February 9, 2023 05:50 — forked from artiya4u/talib-install.sh
Install TA-Lib script
#!/usr/bin/env bash
sudo apt install build-essential wget -y
# wget https://artiya4u.keybase.pub/TA-lib/ta-lib-0.4.0-src.tar.gz
wget -O ta-lib-0.4.0-src.tar.gz https://firebasestorage.googleapis.com/v0/b/suakow.appspot.com/o/Shared%2Fta-lib-0.4.0-src.tar.gz?alt=media&token=c53ddc2b-8e9e-4af2-ac53-55fd0f009650
tar -xvf ta-lib-0.4.0-src.tar.gz
cd ta-lib/
./configure --prefix=/usr
make
sudo make install
@suakow
suakow / es.py
Created April 18, 2021 01:39 — forked from korakot/es.py
Test elasticsearch server & client on Colab
# install es server
!apt install default-jdk > /dev/null
!wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.tar.gz -q --show-progress
!tar -xzf elasticsearch-6.5.4.tar.gz
!chown -R daemon:daemon elasticsearch-6.5.4
# start server
import os
from subprocess import Popen, PIPE, STDOUT
es_server = Popen(['elasticsearch-6.5.4/bin/elasticsearch'],
stdout=PIPE, stderr=STDOUT,
@suakow
suakow / ping.py
Created January 1, 2018 15:00 — forked from pklaus/ping.py
A pure python ping implementation using raw socket.
#!/usr/bin/env python2
"""
Other Repositories of python-ping
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* https://github.com/l4m3rx/python-ping supports Python2 and Python3
* https://bitbucket.org/delroth/python-ping
@suakow
suakow / README.md
Created May 31, 2016 08:34 — forked from Coeur/README.md
Write to NTFS on OSX Yosemite and El Capitan

Install osxfuse (3.x.x) from https://github.com/osxfuse/osxfuse/releases.

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Update Homebrew formulae:

brew update

The Laracasts PHPStorm theme - modified.

This is a slightly modified version of the great Laracasts PHPStorm theme. I've added some styles for Verions Control (add, modified, deleted line...) and fixed some missing things like warnings.

Download

image

Mac: Add to ~/Library/Preferences/WebIde80/colors

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.*;
public class JsonHelper {
public static Object toJSON(Object object) throws JSONException {
if (object instanceof Map) {
JSONObject json = new JSONObject();
@suakow
suakow / _.md
Last active August 29, 2015 14:17 — forked from klange/_.md

Since this is on Hacker News and reddit...

  • No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later). My actual résumé is written in BSD mandoc.
  • I apologize for the use of _t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
  • Since people kept complaining, I've fixed the assignments of string literals to non-const char *s.
  • My use of type * name, however, is entirely intentional.
  • If you're using an older compiler, you might have trouble with the anonymous unions and the designated initializers - I think gcc 4.4 requires some extra braces to get them working together. Anything reasonably recent should work fine. Clang and gcc (newer than 4.4, at