Good postgres monitoring tool:
sudo apt install pg_activity
Usage:
pg_activity -U testuser -h localhost -d testdb
export function App() { | |
useEffect(() => { | |
// Load Google Fonts locally instead of using a 3rd party resource | |
const fontFace = new FontFace( | |
'Inter', | |
'url(/Inter-VariableFont.ttf)' // Ensure the font file is in the public directory (download the font and put it in your public folder) | |
); | |
// Your index.css should specify the local font like this | |
// :root { |
const express = require('express') | |
const next = require('next') | |
const Cache = require('lru-cache'); | |
const compression = require('compression') | |
const port = parseInt(process.env.PORT, 10) || 3000 | |
const dev = process.env.NODE_ENV !== 'production' | |
const app = next({ dev }) |
jq -r '.[] | select(.project_url | contains("stringValueToFilterInproject_url"))' ./tmp/appid_analytic_data_raw.json |
#!/bin/bash | |
# For a list of EC2 AMI IDs in a file, find something in each of the AMI description attributes and capture the characters after it. | |
# Then output it in JSON. | |
# Replace 'SAMBA' with the string you want to search for. | |
# ami file of ids example: | |
# | |
# ami-a231212 | |
# ami-sf12518agsj2l31 |
import 'package:flutter/cupertino.dart'; | |
import 'package:speech_to_text/speech_recognition_error.dart'; | |
import 'package:speech_to_text/speech_recognition_result.dart'; | |
import 'package:speech_to_text/speech_to_text.dart'; | |
class VoiceFunctions extends ChangeNotifier { | |
bool speechEngineState = false; | |
final speechTimeoutDuration = Duration(seconds: 5); | |
double level = 0.0; | |
String lastWords = ""; |
Requires git for CMD Installs flutter to a folder named flutter on the desktop. Appends the flutter\bin folder to your current Windows PATH variable.
Open CMD in administrative mode, not powershell.
cd %USERPROFILE%/Desktop
// uses dark mode, sane hot keys, starting directory as desktop, 4k friendly font size, large history, | |
// This file was initially generated by Windows Terminal 0.11.1251.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.your_app_name" | |
xmlns:tools="http://schemas.android.com/tools"> <!-- newly added --> | |
<application | |
tools:replace="android:label" <!-- newly added --> | |
android:name="io.flutter.app.FlutterApplication" | |
... |
#configure freeIPA and generate certs + | |
https://gist.github.com/rechner/c6b9133b7816445b5850f8e22e16aa60 | |
# generate certs from freeIPA | |
sudo ipa-getcert request -K openvpn/`hostname` -k /etc/openvpn/server_freeipa.key -f /etc/openvpn/server_freeipa.crt -I openvpn -C /usr/local/sbin/set-ssl-permissions | |
#openvpn server config | |
local <addressToBindTo> | |
port 1194 |