Skip to content

Instantly share code, notes, and snippets.

@sureshdsk
sureshdsk / claude.md
Created October 28, 2025 16:24
Run Claudecode with Anthropic API Key

Add/edit ~/.claude/settings.json to add "apiKeyHelper":

~/.claude/settings.json

{

"apiKeyHelper": "~/.claude/anthropic_key.sh"

}
@sureshdsk
sureshdsk / hacktoberfest.md
Created October 10, 2025 04:40
hacktoberfest instructions
{
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"accept-language": "en-US,en;q=0.9,en-IN;q=0.8,en-GB;q=0.7",
"cache-control": "max-age=0",
"priority": "u=0, i",
"sec-ch-ua": '"Microsoft Edge";v="129", "Not=A?Brand";v="8", "Chromium";v="129"',
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": '"Windows"',
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
@sureshdsk
sureshdsk / pg_lo_example.sql
Last active November 2, 2021 15:23
pg_lo_example.sql
# https://www.postgresql.org/docs/14/lo-funcs.html
INSERT INTO image (name, raster)
VALUES ('rich_python', lo_import('/Users/dsk/Downloads/rich_python.png'));
SELECT lo_export(image.raster, '/Users/dsk/Downloads/lo_export/rich_python1.png') FROM image
WHERE name = 'rich_python';
# brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# nodejs
brew install node
# bower
npm install -g bower
# python 3
brew install python3
@sureshdsk
sureshdsk / free_email_domains_list.py
Created August 2, 2016 08:58
Free email providers list
free_email_domains_list=["gmail.com","googlemail.com","gmx.com", "aol.com", "att.net", "comcast.net", "facebook.com","hotmail.com","hotmail.fr","hotmail.co.uk","hotmail.de","hotmail.be","hotmail.com.ar","hotmail.es", "hotmail.com.mx","live.com","live.co.uk", "live.fr","live.de","live.be","live.com.ar","live.com.mx","msn.com", "outlook.com", "ymail.com","yahoo.com.ar", "yahoo.com.au", "yahoo.at", "yahoo.be", "yahoo.fr", "yahoo.be","yahoo.nl", "yahoo.com.br", "ca.yahoo.com", "qc.yahoo.com", "yahoo.com.co", "yahoo.com.hr", "yahoo.cz", "yahoo.dk", "yahoo.fi", "yahoo.fr", "yahoo.de", "yahoo.gr", "yahoo.com.hk", "yahoo.hu", "yahoo.co.in","yahoo.in", "yahoo.co.id", "yahoo.ie", "yahoo.co.il", "yahoo.it", "yahoo.co.jp", "yahoo.com.my", "yahoo.com.mx", "yahoo.ae", "yahoo.nl", "yahoo.co.nz", "yahoo.no", "yahoo.com.ph", "yahoo.pl", "yahoo.pt", "yahoo.ro", "yahoo.ru", "yahoo.com.sg", "yahoo.co.za", "yahoo.es", "yahoo.se", "yahoo.ch","yahoo.fr","yahoo.de", "yahoo.com.tw", "yahoo.co.th", "yahoo.com.tr", "yahoo.co.uk", "yaho
@sureshdsk
sureshdsk / install_wp.sh
Last active March 14, 2017 12:55 — forked from bgallagh3r/wp.sh
Wordpress: Bash Install Script -- Downloads latest WP version, updates wp-config with user supplied DB name, username and password, creates and CHMOD's uploads dir, copies all the files into the root dir you run the script from, then deletes itself!
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Table prefix: "
read -e tableprefix
echo "Database User: "
@sureshdsk
sureshdsk / avg_sum_of_squares.py
Created April 27, 2016 11:47
Average sum of Squares
def avgSumOfSquares():
enter_input = True
number = ""
number_list = []
while enter_input:
number = raw_input("Enter next number:")
print number
if number == "end":
enter_input = False
else:
<?php
function findTimeAgo($past, $now = "now") {
// sets the default timezone if required
// list of supported timezone identifiers
// http://php.net/manual/en/timezones.php
// date_default_timezone_set("Asia/Calcutta");
$secondsPerMinute = 60;
$secondsPerHour = 3600;
$secondsPerDay = 86400;
$secondsPerMonth = 2592000;
0815.ru
0wnd.net
0wnd.org
10minutemail.co.za
10minutemail.com
123-m.com
1fsdfdsfsdf.tk
1pad.de
20minutemail.com
21cn.com