Skip to content

Instantly share code, notes, and snippets.

@fqborges
fqborges / tokens.json
Last active June 18, 2025 15:47
tokens.json
{
"Foobar": {
"mini": {
"$value": "4",
"$type": "sizing"
},
"minimini": {
"$value": "2",
"$type": "sizing"
},
@fqborges
fqborges / README.md
Created May 20, 2025 18:33
Install Debian from hdd partition

Install Debian from hdd partition

You can install debian or try a debian live from your hdd, without needing a cd or usb stick.

Instructions here are based on a debian forum topic [1]. There are alternative solutions for text based installers that does not need to copy files from inside the iso file, and just downlad them from debian mirrors, for that see [2].

@fqborges
fqborges / cleanup-roms.sh
Last active March 13, 2026 08:53
rsync.myrient.erista.me/files/No-Intro
#!/bin/sh
mkdir -p ./trash
find . -maxdepth 1 -name '*.zip' \
| grep -vF -f .meta/roms-selected.txt \
| xargs --no-run-if-empty -d '\n' -l1 mv -v -t ./trash
Make an Amazon EBS volume available for use on Linux
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html
Mount nvme using the device name we specified when we created the attachment
https://notificare.com/blog/2022/06/17/Mounting-EBS-Volumes-in-EC2/
EBS optimized docs
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html#current
EBS optimized EBSIOBalance% vs EBSByteBalance% / Using Amazon CloudWatch metrics to monitor burst usage
<?php
// php.ini
// extension = php_openssl.dll
$url = 'https://locationservices.mobiltracker.com.br';
$data = array(
'id' => 'YOUR_ID',
'lat' => '-30',
<?php
$API_KEY = "Solicitar via atendimento";
$url = "https://api.mobiltracker.com.br/trackers/233763/history/2019-02-05T000000Z";
// CHAVE DE API VIA QUERY STRING
$url = "$url?apiKey=$API_KEY";
$context = null;
// OU VIA HEADER
@fqborges
fqborges / Api.cs
Created January 27, 2020 19:29
Exemplo de acesso api mobiltracker
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace api
{
class Program
{
static async Task Main(string[] args)
{
@fqborges
fqborges / Publish-PackageDll.ps1
Created September 17, 2019 14:46
Publish nuget packages dlls into a directory to be used by powershell 6 (core) scripts
param (
[string]$Name = $(throw "-name is required."),
[string]$Destination = './packages',
[string]$Source = './package-cache'
)
$TargetFramework = ".NETStandard2.0"
function Get-Nuspec {
param( $package )
@fqborges
fqborges / boxstarter.ps1
Last active February 13, 2022 23:04
boxstarter
# start
Disable-UAC
# windows configs
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
Enable-RemoteDesktop
# dev tools
choco install -y git
choco install -y nodejs
@fqborges
fqborges / openlayers+gmap.js
Created January 9, 2018 18:21
make openlayers work with google maps
import ol from 'openlayers';
// View used to sync google maps with ol map
class GmapSyncView extends ol.View {
constructor(gmap, options) {
super(options);
this._gmap = gmap;
this._gmapInit();