My Dell N4010's wifi driver seems not to work well on Ubuntu.
sudo vim /etc/apt/sources.list| sudo apt-get install netcat openssl libpcre3 dnsmasq procps perl | |
| # for ubuntu 16.04 (xenial) | |
| sudo apt-get -y install postgresql postgresql-contrib phppgadmin | |
| sudo -i -u postgres | |
| psql | |
| CREATE USER kong; CREATE DATABASE kong OWNER kong; | |
| ALTER USER kong WITH password 'kong'; |
This is an example of using module tls in NodeJS to create a client securely connecting to a TLS server.
It is a modified version from documentation about TLS, in which:
If you use LiteLLM to proxy requests to Ollama.ai in corporate environments, you may encounter the following error in your Python application:
httpcore.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1006)var mqtt = require('mqtt');
var lodash = require('lodash');
var client = mqtt.connect({ host: 'localhost', port: 1883 });
client.on('connect', function () {
console.log('Connected')
client.subscribe('presence');
});| // g++ -lstdc++ -Wno-write-strings fetch.cpp -o fetch | |
| #ifdef _WIN32 // Windows | |
| #include <winsock2.h> | |
| #include <ws2tcpip.h> | |
| #define MSG_NOSIGNAL 0 | |
| #else // Linux + Mac | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> |
| import requests | |
| r = requests.get(r'http://jsonip.com') | |
| ip= r.json()['ip'] | |
| print 'Your IP is', ip |
| from selenium import webdriver | |
| driver = webdriver.Firefox() | |
| driver.get('https://www.facebook.com/') | |
| with open('jquery-1.9.1.min.js', 'r') as jquery_js: | |
| jquery = jquery_js.read() #read the jquery from a file | |
| driver.execute_script(jquery) #active the jquery lib | |
| driver.execute_script("$('#email').text('anhld')") |
| sudo yum install -f libtool | |
| cd autoconf-2.68 | |
| chmod +x configure | |
| ./configure | |
| chmod +x build-aux/git-version-gen | |
| sudo make | |
| sudo make install | |
| cd .. |