Skip to content

Instantly share code, notes, and snippets.

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE dot)
Configuring secp256k1 subtree...
-- Could NOT find Valgrind (missing: Valgrind_INCLUDE_DIR Valgrind_WORKS)
secp256k1 configure summary
===========================
Build artifacts:
library type ........................ Static
[ 0%] Generating bitcoin-build-info.h
[ 0%] Built target generate_build_info
[ 0%] Building CXX object src/wallet/CMakeFiles/bitcoin_wallet.dir/dump.cpp.o
In file included from /Users/umairashraf/Develop/bitcoin/src/wallet/dump.cpp:10:
In file included from /Users/umairashraf/Develop/bitcoin/src/wallet/wallet.h:33:
In file included from /Users/umairashraf/Develop/bitcoin/src/wallet/scriptpubkeyman.h:26:
In file included from /usr/local/include/boost/signals2/signal.hpp:18:
In file included from /usr/local/include/boost/function.hpp:30:
In file included from /usr/local/include/boost/function/detail/prologue.hpp:17:
In file included from /usr/local/include/boost/function/function_base.hpp:21:
@umrashrf
umrashrf / InstagramHelper.js
Created March 30, 2023 23:50 — forked from james-harper/InstagramHelper.js
Instagram.com - Unsend All Messages
// instagram.com utilities
//
// currently I only have unsend all messages in thread implemented.
// but may add more if I need them
// (this won't work in incognito due to localStorage, session, & cookie values being required)
//
// To use, navigate to the thread in a web browser (I only tested with Chrome)
// and copy and paste the code into a Developer tools console
// "threadId" will need to be updated with the appropriate value
class InstagramHelper {
@umrashrf
umrashrf / docker_rmi.sh
Created October 3, 2019 15:31
Delete all docker images except listed by names
docker rmi -f $(docker images | grep -v -E '^python|^postgres|^redis|^scrapinghub' | grep -oE '[a-z0-9]{12}')
@umrashrf
umrashrf / kijiji_photos.py
Created August 4, 2019 23:04
Kijiji photo downloader in Python
photos = [
'https://i.ebayimg.com/00/s/MTA2N1gxNjAw/z/kXAAAOSwqYxdHbfJ/$_59.JPG',
]
import re
import urllib
basename = re.compile('/z/(.*)')
def fname(url):
"""
Generalized browser module for selenium web driver
"""
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from . import settings
[vagrant@localhost qt-everywhere-opensource-src-4.8.6]$ yes | ./configure -opensource -no-webkit -fast
This is the Open Source Edition.
You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.
Type '3' to view the GNU General Public License version 3.
This file has been truncated, but you can view the full file.
../../../../include/QtGui -I../../../../include/QtXml -I../../../../include/QtScript -I../../../../include -Iextension -Isdk -Iuilib -Ishared -I../../../shared/qtpropertybrowser -I../../../shared/deviceskin -I../../../../src/tools/rcc -I../../../shared/findwidget -I../../../shared/qtgradienteditor -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qtgradientutils.o ../../../shared/qtgradienteditor/qtgradientutils.cpp
g++ -c -include .pch/release-shared/QtDesigner -pipe -O2 -D_REENTRANT -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DQDESIGNER_SDK_LIBRARY -DQDESIGNER_EXTENSION_LIBRARY -DQDESIGNER_UILIB_LIBRARY -DQDESIGNER_SHARED_LIBRARY -DQT_DESIGNER -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/linux-g++ -I. -I../../../../incl
@umrashrf
umrashrf / extract_attachments.py
Last active February 18, 2019 13:48
Download emails from GMail API and extract files from each email using Python and GYB
import os
import sys
import email
for line in sys.stdin:
fle = line.strip()
if str.lower(fle[-3:]) == "eml":
msg = email.message_from_file(open(fle))
attachments = msg.get_payload()
for attachment in attachments:
@umrashrf
umrashrf / aws_ses.bash
Created July 26, 2016 19:05
Amazon AWS CLI - SES SEND EMAIL
sudo pip install awscli
aws configure
aws ses send-email \
--from "john@gmail.com" \
--destination "ToAddresses=mike@gmail.com" \
--message "Subject={Data=from ses,Charset=utf8},Body={Text={Data=ses says hi,Charset=utf8},Html={Data=,Charset=utf8}}"