This file contains 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 | |
# Copyright (c) 2021 Soumya Deb <debloper@gmail.com> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains 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
#![feature(arbitrary_self_types)] | |
use pyo3::prelude::*; | |
use pyo3::pyclass::PyClassShell; | |
use pyo3::types::{PyBytes, PyTuple}; | |
use pyo3::ToPyObject; | |
use bincode::{deserialize, serialize}; | |
use serde::{Deserialize, Serialize}; | |
#[derive(Serialize, Deserialize)] |
https://ubuntu.com/core/docs/networkmanager/configure-wifi-connections
- List devices:
nmcli d
- Turn on:
nmcli r wifi on
- List networks:
nmcli d wifi list
This file contains 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
# 09Sep23 v1 | |
# https://gist.githubusercontent.com/trungnt13/34a8b101ab7fe14f7f0f194d1f63ad6c/raw/ea9293953796d78b8b93e67e046a5583c6cc6d39/tmux_linux.conf | |
# 09Sep23 v2 | |
# https://gist.githubusercontent.com/trungnt13/34a8b101ab7fe14f7f0f194d1f63ad6c/raw/51dc5214e47d648039dffe83908e603ab07bf9c2/tmux_linux.conf | |
set -g history-limit 100000 | |
## Change background and border of active pane | |
set-option -g pane-border-style fg=default,bg=default | |
set-option -g pane-active-border-style fg=red,bg=default |
This file contains 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
// env: an array of user-defined variables for substitution in configurations | |
// configurations: an array of configuration objects for IntelliSense engine | |
// version: tracks current version of c_cpp_properties.json file | |
{ | |
"env": { | |
"myDefaultIncludePath": [ | |
"${workspaceFolder}", | |
"${workspaceFolder}/include" | |
], | |
"myCompilerPath": "/usr/local/bin/gcc-7" |
This file contains 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
// https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json | |
{ | |
"version": "2.0", | |
// Specifies how many function invocations are aggregated when calculating metrics for Application Insights. | |
"aggregator": { | |
"batchSize": 1000, | |
"flushTimeout": "00:00:30" | |
}, | |
"concurrency": { | |
"dynamicConcurrencyEnabled": true, |
NewerOlder