Skip to content

Instantly share code, notes, and snippets.

View sbeleidy's full-sized avatar

Saad Elbeleidy sbeleidy

View GitHub Profile
@bkawk
bkawk / index.js
Last active June 14, 2016 06:06
Search for your name in a bitcoin address
var bitcoin = require('bitcoinjs-lib')
var fs = require("fs")
function randomString(length, chars) {
var result = '';
for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
return result;
}
@sbeleidy
sbeleidy / index.html
Last active March 20, 2017 19:14
Foundation project package.json - inspired by https://css-tricks.com/why-npm-scripts/
<!DOCTYPE html>
<html lang="en">
<head>
<title>Foundation Project</title>
<meta charset="UTF-8">
<link href="dist/css/style.css" rel="stylesheet">
</head>
<body>
@zaiste
zaiste / rst_to_md.sh
Created February 5, 2017 18:54
Convert RST to Markdown using Pandoc
FILES=*.rst
for f in $FILES
do
filename="${f%.*}"
echo "Converting $f to $filename.md"
`pandoc $f -f rst -t markdown -o $filename.md`
done
@bkawk
bkawk / default
Created April 2, 2017 14:36
nginx reverse proxy with caching and SSL for IPFS
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript max;
~image/ max;
}
server {
listen 443 ssl http2 default_server;
@ynadeem
ynadeem / sendEmail.py
Created May 20, 2018 15:00
Automatically Send Email in Outlook With Optional Attachment (Windows)
import win32com.client as win32
def send_email(recipientList, mailSubject, mailBody, attachmentPath = None):
outlook = win32.Dispatch('outlook.application')
mail = outlook.CreateItem(0)
mail.To = recipientList
mail.Subject = mailSubject
mail.body = mailBody
if attachmentPath:
mail.Attachments.Add(Source = attachmentPath)