Skip to content

Instantly share code, notes, and snippets.

View bonomali's full-sized avatar

brikkho net bonomali

View GitHub Profile
---
title: "Quick Start Step 1"
view:
baselayer: osm
featurelayers: []
latitude: 18.7360
longitude: -72.4178
maxZoom: 18
minZoom: 0
@bonomali
bonomali / wsl2-network.ps1
Created November 2, 2020 21:33 — forked from kaestnja/wsl2-network.ps1
WSL 2 TCP NETWORK FORWARDING
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}
@bonomali
bonomali / read_kml.py
Created October 22, 2020 23:09 — forked from symroc/read_kml.py
Read Google Eearth's kml(or kmz file converted to kml)
from bs4 import BeautifulSoup
import pandas as pd
import numpy as np
def remove_html_tags(text):
"""Remove html tags from a string"""
import re
clean = re.compile('<.*?>')
return re.sub(clean, '', text)
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
<cfsavecontent variable="theTagContent">
<p>
one<br />
<img src="//yaffa-cdn.s3.amazonaws.com/adnews/live/images/dmImage/StandardImage/dsc04193_sm.jpg" border="0" alt="dsc04193_sm.jpg" width="630" height="420" /><br />
<div>DIV</div>
two<br />
@bonomali
bonomali / Calculator
Created October 16, 2020 01:36 — forked from thetnainghtun/Calculator
Simple Calculator
from tkinter import*
def btnClick(numbers):
global operator
operator= operator+str(numbers)
text_input.set(operator)
def btnClear():
global operator
operator=''
/*****************************************************************************************************************
*
* Below is a list of drugs/medicine which can be used for populating a database with.
* I have compiled this list by referencing the A-Z Medicines list on the NHS website:
* http://www.nhs.uk/medicine-guides/pages/browsebymedicine.aspx
*
* This list was compiled by Benjamin Staker.
* email: ben@benstaker.com
* github: benstaker
*
@bonomali
bonomali / hosts
Created September 2, 2020 15:24 — forked from tyzbit/hosts
Windows 10 Ad/Telemetry (for https://github.com/StevenBlack/hosts/)
127.0.0.1 a-0001.a-msedge.net
127.0.0.1 a-0001.dc-msedge.net
127.0.0.1 a-0002.a-msedge.net
127.0.0.1 a-0003.dc-msedge.net
127.0.0.1 a-0004.a-msedge.net
127.0.0.1 a-0005.a-msedge.net
127.0.0.1 a-0006.a-msedge.net
127.0.0.1 a-0007.a-msedge.net
127.0.0.1 a-0008.a-msedge.net
127.0.0.1 a-0009.a-msedge.net
@bonomali
bonomali / github_clone_using_token.sh
Created June 25, 2020 09:42 — forked from magickatt/github_clone_using_token.sh
Clone a GitHub repository using a Personal Access Token
export GITHUB_USER=magickatt
export GITHUB_TOKEN=secret
export GITHUB_REPOSITORY=magickatt/ContainerisingLegacyApplicationsTalk
git clone https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
@bonomali
bonomali / hyper.js
Created June 22, 2020 22:21 — forked from coco-napky/hyper.js
Hyper config for git bash in Windows
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',