Skip to content

Instantly share code, notes, and snippets.

View vallamost's full-sized avatar
:atom:
Helping

Ian vallamost

:atom:
Helping
View GitHub Profile
@vallamost
vallamost / gist:4b9b8ec0ec1d1509bf7aa5ece42a8a4f
Created February 6, 2023 21:36
Select an entire JSON object if a value in the array contains a specific string
jq -r '.[] | select(.project_url | contains("stringValueToFilterInproject_url"))' ./tmp/appid_analytic_data_raw.json
@vallamost
vallamost / getMatchFromDescription.sh
Last active June 9, 2020 21:52
Grab value out of AMI Description from AWS EC2 describe AMI call via AWS CLI
#!/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 = "";
@vallamost
vallamost / Download and Install the latest version of Flutter on Windows and add it to the path via the CLI.md
Last active May 13, 2020 04:08
Download and Install the latest version of Flutter on Windows and add it to the path via the CLI

Download and Install the latest version of Flutter on Windows and add it to the path via the CLI

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
@vallamost
vallamost / settings.json
Last active May 13, 2020 03:24
My favorite Windows Terminal Default Config
// 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
@vallamost
vallamost / gist:7d9638a1d54d2bf7ef84a43f7342197a
Last active May 7, 2020 16:00
AndroidManifest Fix for flutter location plugin
<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"
...
@vallamost
vallamost / gist:f10f043e7a300d6ef1b44e88765a4131
Created May 3, 2020 23:31
2020 - OpenVPN + FreeIPA Configs
#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
.notificationsFrame {
position: relative;
}
.notificationsFrame {
z-index: 2;
width: 100%;
top: 20px;
background: #fff;
border-radius: 3px;
overflow: hidden;
Cloud-init v. 0.7.7 running 'init-local' at Mon, 09 Apr 2018 00:38:07 +0000. Up 23.48 seconds.
Cloud-init v. 0.7.7 running 'init' at Mon, 09 Apr 2018 00:38:08 +0000. Up 23.93 seconds.
ci-info: +++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++++
ci-info: +--------+------+----------------------------+---------------+-------+-------------------+
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +--------+------+----------------------------+---------------+-------+-------------------+
ci-info: | eth0 | True | 10.0.1.165 | 255.255.255.0 | . | 02:da:ec:61:e4:8e |
ci-info: | eth0 | True | fe80::da:ecff:fe61:e48e/64 | . | link | 02:da:ec:61:e4:8e |
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | . |
ci-info: | lo | True | ::1/128 | . | host | . |
@vallamost
vallamost / gist:cb0a94b9cbc71441bd92f885fd9d2c9d
Created March 26, 2018 01:56
install nodejs LTS on amazon linux 2 from binaries
cd ~
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
. ~/.nvm/nvm.sh
nvm install --lts
node -e "console.log('Running Node.js ' + process.version + ', have fun.')"