This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function main() { | |
| const urlPesquisa = "http://www.dominiopublico.gov.br/pesquisa/PesquisaObraForm.do" | |
| const homeBody = await fetchBody(urlPesquisa+"?co_midia=2"); | |
| const regexSelect = /<select name="co_categoria"[^>]*>(.*?)<\/select>/s; | |
| const categories = getCategories() | |
| const categoriesToIdMap = new Map() | |
| const regexValue = /value="(\d*)"/s | |
| const fetchedCategories = regexSelect.exec(homeBody)[1].split("</option>").map(x=>{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmd="nohup $@ > /dev/null 2>&1&" | |
| eval $cmd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Concurrent; | |
| namespace Gbt.Identity.RavenDb.OpenId; | |
| public class OpenIdConnectHelper(string Issuer) | |
| { | |
| private static readonly ConcurrentDictionary<string, OpenIdConfiguration> Cache = new(); | |
| public record OpenIdConfiguration(string authorization_endpoint, string token_endpoint); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cp /usr/share/X11/locale/en_US.UTF-8/Compose /usr/share/X11/locale/en_US.UTF-8/Compose.bkp | |
| echo "$(cat /usr/share/X11/locale/en_US.UTF-8/Compose | sed -e 's|ć|ç|' | sed -e 's|Ć|Ç|')" > /usr/share/X11/locale/en_US.UTF-8/Compose | |
| echo "GTK_IM_MODULE=cedilla" >> /etc/environment | |
| echo "QT_IM_MODULE=cedilla" >> /etc/environment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| CONTENT='<?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>method</key> | |
| <string>app-store</string> <!-- app-store, ad-hoc, enterprise, development --> | |
| <key>teamID</key> | |
| <string>{TEAM_ID}</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); | |
| @override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| adb tcpip 5555 | |
| cat ~/adb-devices.txt | while read adb_device | |
| do | |
| adb connect $adb_device & | |
| done | |
| # file: ~/adb-devices.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require("fs"); | |
| const fsPromises = require("fs").promises; | |
| async function main() { | |
| // Sync | |
| const fileBuff = fs.readFileSync("file.txt"); | |
| const bArr = Uint8Array.from(fileBuff); | |
| // Async (EventLoop) | |
| const fileBuff2 = await fsPromises.readFile("file.txt"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>method</key> | |
| <string>app-store</string> <!-- app-store, ad-hoc, enterprise, development --> | |
| <key>teamID</key> | |
| <string>{TEAM_ID}</string> | |
| <key>provisioningProfiles</key> | |
| <dict> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| services: | |
| dns: | |
| restart: always | |
| image: strm/dnsmasq | |
| volumes: | |
| - ./dnsmasq.conf:/etc/dnsmasq.conf | |
| ports: | |
| - "53:53/udp" | |
| cap_add: |
NewerOlder