Skip to content

Instantly share code, notes, and snippets.

View thetinygoat's full-sized avatar
👾
Building stuff

Sachin Saini thetinygoat

👾
Building stuff
View GitHub Profile
@thetinygoat
thetinygoat / gist:cd0e20cb16fda6a5505ec410fe249fe4
Last active June 14, 2024 15:18
Network Management using nmcli
# set dns
nmcli conn mod "<name>" ipv4.dns "8.8.8.8 8.8.4.4"
# disable auto dns by dhcp
nmcli conn mod "<name>" ipv4.ignore-auto-dns yes
# set static ip
nmcli conn mod "<name>" ipv4.method manual ipv4.addresses <static_ip/subnet_mask> ipv4.gateway <gateway_addr>
# go back to dhcp
@thetinygoat
thetinygoat / .vimrc
Created May 18, 2024 21:31 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@thetinygoat
thetinygoat / widget.md
Created April 13, 2024 20:50 — forked from AlexxNB/widget.md
Howto make no-depends widget on Svelte and load it on the page

We should have at least three files: 'Widget.svelte', 'rollup.config.js' and 'package.json':

  1. Our widget Widget.svelte:
<script>
	export let name;
</script>

<h1>Hello {name}!</h1>
@thetinygoat
thetinygoat / readme.md
Created October 31, 2020 16:57 — forked from boxofrox/readme.md
Debugging streaming audio over TCP
@thetinygoat
thetinygoat / fork_and_daemon.go
Created July 6, 2020 15:17 — forked from smallnest/fork_and_daemon.go
golang fork and exec and handle signals
package main
import (
"flag"
"fmt"
"log"
"os"
"os/signal"
"syscall"
)
{
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "material-icon-theme",
"python.linting.pylintPath": "/usr/bin/pylint",
"python.formatting.blackPath": "/usr/bin/black",
"editor.fontFamily": "JetBrains Mono",
"editor.fontLigatures": true,
"extensions.showRecommendationsOnlyOnDemand": true,
"extensions.ignoreRecommendations": true,
"files.autoSave": "onFocusChange",