I hereby claim:
- I am mousavian on github.
- I am mousavian (https://keybase.io/mousavian) on keybase.
- I have a public key whose fingerprint is 2F46 5BDA 596E 2752 A31A A306 75BB 88CA 99BB 6A68
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #run this to keep the output: | |
| #$ cleaner.py > cleaner.log | |
| import mysql.connector | |
| uuids = [] | |
| class MySQLCursorDict(mysql.connector.cursor.MySQLCursor): | |
| def _row_to_python(self, rowdata, desc=None): | |
| row = super(MySQLCursorDict, self)._row_to_python(rowdata, desc) | |
| if row: | |
| return dict(zip(self.column_names, row)) |
| class FakeBeanstalkdJob(): | |
| body = None | |
| def __init__(self, body=''): | |
| if not isinstance(body, str): | |
| raise Exception('Job body must be a str instance') | |
| self.body = body | |
| def delete(self): | |
| pass |
| # http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ | |
| # remap prefix from 'C-b' to 'C-a' | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # split panes using | and - | |
| bind | split-window -h | |
| bind - split-window -v |
| #!/bin/bash | |
| sn=GuGu | |
| # Start the session and window 0 in workplace | |
| # This will also be the default cwd for new windows created | |
| # via a binding unless overridden with default-path. | |
| cd /home/workspace | |
| tmux new-session -s "$sn" -n "FirstWindowName" -d | |
| tmux split-window -v |
| import Html exposing (text) | |
| islamic_epoch = 1948439.5 | |
| gregorian_epoch = 1721425.5 | |
| persian_epoch = 1948320.5 | |
| type alias Date = | |
| { year : Int | |
| , month : Int | |
| , day : Int |
| import Html exposing (text) | |
| import List | |
| type alias Date = | |
| { year : Int | |
| , month : Int | |
| , day : Int | |
| } | |
| gregorian_days_in_month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] |
| KEY="<telegram-token>" | |
| CHATID="<CHATID>" | |
| COUNTER=1 | |
| replay() { | |
| curl -s -d "chat_id=$CHATID&text=$1" "https://api.telegram.org/bot$KEY/sendMessage" | |
| } | |
| while [[ true ]]; do | |
| URL_GET="https://api.telegram.org/bot$KEY/getUpdates?limit=1&update_id=$UPDATEID&offset=$((UPDATEID + 1))" |
| const HttpAgent = require('agentkeepalive') | |
| const superagent = require('superagent') | |
| const Benchmark = require('benchmark') | |
| const axios = require('axios') | |
| const http = require('http') | |
| var suite = new Benchmark.Suite() | |
| const targetUrl = 'http://httpbin.org/ip' | |
| const axiosInstance = axios.create({ | |
| baseURL: 'http://httpbin.org', |
| #!/bin/bash | |
| readonly CLIENT_SECRET="" | |
| readonly CLIENT_TOKEN="" | |
| readonly ACCESS_TOKEN="" | |
| readonly HOST="" | |
| readonly REQUEST_PATH="/papi/v1/search/find-by-value" | |
| readonly REQUEST_BODY='{"propertyName":"myProperty"}' | |
| readonly REQUEST_TYPE="POST" |