Skip to content

Instantly share code, notes, and snippets.

View SudarshanSMD's full-sized avatar

Sudarshan Muralidhar Devardekar SudarshanSMD

View GitHub Profile
@SudarshanSMD
SudarshanSMD / switch-wifi.sh
Last active October 20, 2020 16:58
Gist to switch wifi if one of it goes down
#!/bin/bash
# set the profile name/ ssid of your wifi for a and b
# a preferably be the SSID/profile that you are already connected
# tip: to check the wifi profile you can use command "netsh wlan show profiles"
declare a="SMD"
declare b="pinjar"
declare c=$b
echo "scrip started"
@weberste
weberste / gist:354a3f0a9ea58e0ea0de
Last active January 28, 2022 13:47
Dates only with Angular-UI Bootstrap datepicker
app.directive('datepickerLocaldate', ['$parse', function ($parse) {
var directive = {
restrict: 'A',
require: ['ngModel'],
link: link
};
return directive;
function link(scope, element, attr, ctrls) {
var ngModelController = ctrls[0];