What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-24 14:25:01
how to find the no of user for a wifi using python for ubuntu
""" Search for a specific wifi ssid and connect to it. written by kasramvd. """ import os class Finder: def __init__(self, *args, **kwargs): self.server_name = kwargs['server_name'] self.password = kwarg... Add solution -
Shell/Bash 2022-02-18 17:25:02
bash script wget
#!/bin/sh # Linux wget=/usr/bin/wget tar=/bin/tar apachectl=/usr/sbin/apache2ctl # FreeBSD #wget=/usr/local/bin/wget #tar=/usr/bin/tar #apachectl=/usr/local/sbin/apachectl TXT="GOT TO THE END, YEAH" WORKING_DIR="/var/asl/updates" TA... Add solution -
Shell/Bash 2022-02-17 21:30:11
bash storing and getting global variables between shells
#!/bin/bash global_export () { { flock 0 #prevents process fork when active set -x #enables verbose/debug . /tmp/env [ $# -eq 0 ] || export "$@" echo "$@" KEY=`echo "$@" | awk '{split($0,a,"=&q... Add solution -
Python 2022-02-16 10:05:06
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
Method 1 ps aux | grep -i apt sudo kill -9 <process_id> Method 2 sudo lsof /var/lib/dpkg/lock sudo lsof /var/lib/apt/lists/lock sudo lsof /var/cache/apt/archives/lock sudo kill -9 <process_id> sudo rm /var/lib/apt/lists/lock sudo rm /var/c... Add solution
Best helpers
Ranking is empty