Skip to content

Instantly share code, notes, and snippets.

@erichurst
erichurst / US Zip Codes from 2013 Government Data
Created December 9, 2013 23:00
All US zip codes with their corresponding latitude and longitude coordinates. Comma delimited for your database goodness. Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
This file has been truncated, but you can view the full file.
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
@roaldnefs
roaldnefs / mac-docker-gui.txt
Created December 22, 2019 10:27
Running GUI application in Docker on MacOS
# Install XQuartz
brew cask install xquartz
# Restart MacOS
# Open XQuartz
open -a XQuartz
# Ensure the "Allow connections from network clients" option in Preferences >> Security is turned on
@naiieandrade
naiieandrade / emojis_unicode.md
Last active May 21, 2024 00:09
Unicode emojis for Telegram
emoji unicode emoji unicode
✒️ :black_nib: \U00002712 ✔️ :heavy_check_mark: \U00002714
✖️ :heavy_multiplication_x: \U00002716 ‼️ :bangbang: \U0000203C
✳️ :eight_spoked_asterisk: \U00002733 :sparkles: \U00002728
:grey_exclamation: \U00002755 ✴️ :eight_pointed_black_star: \U00002734
❄️ :snowflake: \U00002744 ❇️ :sparkle: \U00002747
:x: \U0000274c :negative_squared_cross_mark: \U0000274e
@wagyourtail
wagyourtail / bypass-disable-devtool.js
Last active May 21, 2024 00:06
bypass disable-devtool
// ==UserScript==
// @name Bypass Detect-Devtool
// @namespace http://tampermonkey.net/
// @version 0.1
// @description bypass https://github.com/theajack/disable-devtool
// @author Wagyourtail
// @match {site}
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.io
// @grant none
// ==/UserScript==
@mdonkers
mdonkers / server.py
Last active May 21, 2024 00:06
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@davidmc971
davidmc971 / config.yml
Created January 30, 2022 14:45
My Trafik 2 Setup using Let's Encrypt Wildcard Certificates with Cloudflare
# config.yml in traefik directory
# Dynamic Configuration for Dashboard
http:
routers:
dashboard:
# Your domain here
rule: Host(`traefik-dashboard.example.com`)
service: api@internal
middlewares:
- auth
@0xdevalias
0xdevalias / reverse-engineering-macos.md
Last active May 20, 2024 23:55
Some notes, tools, and techniques for reverse engineering macOS binaries
@d-wasserman
d-wasserman / FeatureTabletoDataframe.py
Last active May 20, 2024 23:55
Functions to convert a ArcGIS Table/Feature Class in arcpy to a pandas dataframe. For other options, check the new ArcGIS Python API, but this works across versions.
import arcpy
import pandas as pd
def arcgis_table_to_df(in_fc, input_fields=None, query=""):
"""Function will convert an arcgis table into a pandas dataframe with an object ID index, and the selected
input fields using an arcpy.da.SearchCursor.
:param - in_fc - input feature class or table to convert
:param - input_fields - fields to input to a da search cursor for retrieval
:param - query - sql query to grab appropriate values
:returns - pandas.DataFrame"""
@5z1punch
5z1punch / analyse.py
Created February 6, 2023 04:56
binance futures transaction history csv dump analyse
import csv
from enum import Enum
import decimal
# dump data for one year from https://www.binance.com/my/orders/futures/transactionhistory Big Data Dump
data = []
with open(r'/your/dump/data/path/0.csv', newline='') as csvfile:
spamreader = csv.reader(csvfile)
@lopspower
lopspower / README.md
Last active May 20, 2024 23:50
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store