This file contains hidden or 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
| add policy |
This file contains hidden or 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
| iwlist scan | egrep -i 'ssid|quality' | |
| sudo modprobe -r rtl8723de | |
| sudo modprobe rtl8723de ant_sel=1 | |
| iwlist scan | egrep -i 'ssid|quality' | |
| sudo modprobe -r rtl8723de | |
| sudo modprobe rtl8723de ant_sel=2 | |
| iwlist scan | egrep -i 'ssid|quality' |
This file contains hidden or 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
| def plot_bar_x(): | |
| # this is for plotting purpose | |
| plt.bar(countPerHour,range(24)) | |
| plt.title('Time vs ridership') | |
| plt.xlabel('Time(Hour)') | |
| plt.ylabel('Ridership') | |
| plt.ion() | |
| plt.show() | |
| plt.pause(4) | |
| plt.close('all') |
- copy the below code in a file and save it in .sh extension.
- Configure your
OLD_MAIL,CORRECT_NAMEandCORRECT_EMAILand save the file. - This file should be in your directory whose correction you want to do.
- run this file
bash fileName.shor./filename - force push the repo.
git push -f origin master
This file contains hidden or 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
| import json | |
| def user_auth(): | |
| username=input('Enter username(reg. no.):-') | |
| password=getpass.getpass('Enter password:-') | |
| data={'username':username, | |
| 'password':password} | |
| with open('data.json','w') as outfile: | |
| json.dump(data,outfile) | |
Installed node modules globally but still showing error
suppose you installed a node module X-module globally somehting like this node i -g X-module but still getting error when you call that module. Then you might be having NODE_PATH not pointing to your modules. To solve the problem try the following method.
Write your command to install node module globally.check
node i -g X-module
This file contains hidden or 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
| import requests | |
| import re | |
| proxy_url = "https://free-proxy-list.net/" | |
| def getProxyBuffer(): | |
| headers = {'User-Agent': "Mozilla/5.0"} | |
| source = str(requests.get(proxy_url, headers=headers, timeout=10).text) | |
| data = [list(filter(None, i))[0] for i in re.findall("<td>(.*?)</td>|<td class='hx'>(.*?)</td>", source)] | |
| groupings = [dict(zip(['ip', 'port', 'code', 'using_anonymous', 'https'], data[i:i + 5])) for i in | |
| range(0, len(data), 5)] |
from google.colab import drive
drive.mount('/content/drive')
NewerOlder