Skip to content

Instantly share code, notes, and snippets.

View LC43's full-sized avatar
🏄‍♀️
Digital nomad

Pedro de Carvalho LC43

🏄‍♀️
Digital nomad
View GitHub Profile
@LC43
LC43 / malaysia-stanford-v03-ands.geojson
Created July 27, 2023 10:18
malaysia-stanford-v03-ands.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LC43
LC43 / malyasia-gua-musang.geojson
Created July 27, 2023 10:13
malyasia-gua-musang.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LC43
LC43 / malaysia-cut.geojson
Created July 25, 2023 08:26
malaysia-cut
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LC43
LC43 / fir.geojson
Last active July 7, 2023 14:24
FIR boundaries for Air Traffic Control Services
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LC43
LC43 / launch.json
Last active March 23, 2023 17:38
Visual studio code Xdebug config for VVV virtual machine
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug on VVV",
"type": "php",
"request": "launch",
"pathMappings": {
// "/path/inside/vvv/public_html/to/repo": "/path/outside/vvv/www/site-name/public_html/to/repo"
"/srv/www/demo-php-latest/public_html": "/srv/vm/vvv/vvv-demo/www/demo-php-latest/public_html"
@LC43
LC43 / geo-json-germany-2d.geojson
Created March 17, 2023 01:27
geo json germany 2d
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LC43
LC43 / geo json germany 1d
Created March 17, 2023 01:14
geo json germany 1 digit
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[10.897026,51.6119101],[10.9014584,51.6175629],[10.9007892,51.6238205],[10.9047882,51.6270008],[10.9060882,51.6315796],[10.9192336,51.6361279],[10.9199092,51.64004],[10.9328427,51.6414688],[10.9462509,51.6530806],[10.9427982,51.6540604],[10.947029,51.6541615],[10.9528289,51.6612155],[10.9485696,51.6641959],[10.9332966,51.6632381],[10.9362386,51.6659208],[10.9317704,51.6667507],[10.9415463,51.6686948],[10.9425841,51.6706037],[10.9360222,51.6703558],[10.9358013,51.6723529],[10.9408897,51.6732071],[10.940258,51.6767425],[10.9507317,51.6794677],[10.9495772,51.6807505],[10.910948,51.6780366],[10.9089957,51.6798923],[10.9122247,51.6834495],[10.9050666,51.6859528],[10.9069583,51.6889687],[10.9109535,51.6868825],[10.9104146,51.692192],[10.8965071,51.6888954],[10.8959615,51.6918017],[10.9025537,51.6927222],[10.9046512,51.6949727],[10.9351143,51.693452],[10.9405287,51.6943053],[10.9415973,51.6963276],[10.9292705
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LC43
LC43 / git_diff_exclude.sh
Last active January 20, 2020 17:38
git diff between two branches, ignoring some paths
## note that there's two notations: :(exclude) or :!
git diff <branch1> <branch2> -- ':(exclude)*/vendor/*' ':(exclude)*/assets/*' ':!*/build/*' ':!*.lock'
@LC43
LC43 / send_workspace_next.sh
Last active May 14, 2022 00:18
Send window to next workspace
#!/bin/bash
## workspace Number ( count )
WS_N=$(wmctrl -d | wc -l)
## workspace ID
WS_ID=$(wmctrl -d | grep '*' | cut -d ' ' -f1)
## next workspace id ( loops around )
NEXT_ID=$(( ( $WS_ID + 1 ) % $WS_N ));