Skip to content

Instantly share code, notes, and snippets.

View ph47s74x's full-sized avatar
🎯
Focusing

ph47s74x

🎯
Focusing
View GitHub Profile
@spacepatcher
spacepatcher / Breach Compilation (1.4 billion credentials) in Postgres.md
Last active July 21, 2025 01:47
Breach Compilation (1.4 billion credentials) in Postgres.md
@dvdotsenko
dvdotsenko / tztools.py
Last active August 31, 2021 19:45
Timezone-aware datetime time zone conversions in Python
"""
Copyright 2017 Daniel Dotsenko
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
@UsedRadiosDevelopers
UsedRadiosDevelopers / README.md
Last active November 7, 2024 14:27
Automating Social Media

Automating your Social Media

statusbrew dashboard

statusbrew dashboard

Go Now

@carpiediem
carpiediem / product_orders.ds
Last active August 18, 2021 13:49
This script allows Zoho CRM users to add a new related list related to the Products module. It will list every Quote, Sales Order, Purchase Order, or Invoice in Zoho CRM that includes the current product as a line item.
string Orders(int productId)
{
// For use in Zoho CRM custom related lists
// 1. Open a product info page and click the + next to RELATED LIST
// 2. Click Custom Function & Create New Custom Function
// 3. Name the function "product_orders" and define a single argument named "productId" as a string
// 4. Switch to Free-Flow Scripting and paste in this code
productIdStr=input.productId.toString();
xml="";
row=0;
@heyalexej
heyalexej / pytz-time-zones.py
Created November 16, 2016 09:14
list of pytz time zones
>>> import pytz
>>>
>>> for tz in pytz.all_timezones:
... print tz
...
...
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
@julienb74
julienb74 / datetime.py
Created March 24, 2012 00:22 — forked from temoto/datetime.py
Python datetime timezone utils.
# coding: utf-8
from __future__ import absolute_import
"""Datetime utils.
To store time use `naive_to_utc(dt, tz_name)`.
To display time use `utc_to_local(dt, tz_name)`.
"""
import datetime as stdlib_datetime
import pytz