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-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 -
Shell/Bash 2022-02-16 08:45:03
how to clear a port in linux
netstat -tulnap // list all ports and processes netstat -anp|grep "port_number" // show port details sudo fuser -k Port_Number/tcp // free the port needed # or lsof -n -i :'port-number' | grep LISTEN // get port details # sampl... Add solution -
Shell/Bash 2022-02-16 05:40:01
linux cli chart real time
curl -LO https://github.com/tenox7/ttyplot/releases/download/1.4/ttyplot_1.4-1.deb && sudo apt install ./ttyplot_1.4-1.deb { while true; do ps auxw | grep php | grep -v fpm | grep -v grep|grep -v tee | wc -l; sleep 0.5; done } | ttyplot Add solution -
Other 2022-02-15 23:05:35
enable mod_headers apache2
#enable directive sudo a2enmod headers && sudo service apache2 restart ls /etc/apache2/mods-enabled/ | grep headers.load #disable directive sudo a2dismod headers && sudo service apache2 restart ls /etc/apache2/mods-enabled/ | grep heade... Add solution -
Java 2022-02-13 20:50:18
conky cpu temperature
Please see this thread and note the answer by JeanFI. Basically it amounts to needing to review the hardware specification which will tell you the output that relates to the CPU. To add the display to conky once you are aware of the value (using k10temp... Add solution
Best helpers
Ranking is empty