Use these commands to run a jupyter server on a remote server and access it locally in a browser. You must have SSH access to the browser. Use any port you want.
Do not forget to change username@server
to the correct value!
where | using | command |
---|
#!/usr/bin/env python | |
import curses | |
import curses.textpad | |
import time | |
stdscr = curses.initscr() | |
#curses.noecho() | |
#curses.echo() |
import math | |
import random | |
import csv | |
import cProfile | |
import numpy as np | |
import hashlib | |
memoization = {} | |
import pandas as pd | |
from rdkit import Chem | |
from rdkit.Chem import AllChem | |
df = pd.read_csv('SMILES.csv') | |
mols = [Chem.MolFromSmiles(smi) for smi in df.SMILES] | |
hmols = [Chem.AddHs(m) for m in mols] | |
for mol in hmols: | |
AllChem.EmbedMolecule(mol,AllChem.ETKDG()) | |
print(AllChem.UFFOptimizeMolecule(mol,1000)) | |
smiles = list(df.SMILES) |
#!/bin/bash | |
# Author: Maxwel Leite | |
# Website: http://needforbits.wordpress.com/ | |
# Description: Script to install the original Microsoft Tahoma Regular and MS Tahoma Bold (both version 2.60) on Ubuntu distros. | |
# Dependencies: wget and cabextract | |
# Tested: Ubuntu Saucy/Trusty/Xenial/Bionic | |
output_dir="/usr/share/fonts/truetype/msttcorefonts/" | |
tmp_dir="/tmp/ttf-ms-tahoma-installer" |
<?xml version="1.0"?> | |
<ThermalConfiguration> | |
<Platform> | |
<Name>T430</Name> | |
<ProductName>*</ProductName> | |
<Preference>QUIET</Preference> | |
<ThermalSensors> | |
<ThermalSensor> | |
<Type>pkg-temp-0</Type> | |
<Path>/sys/class/thermal/thermal_zone0/temp</Path> |
#!/bin/sh | |
# /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh | |
# INSTALL | |
# | |
# > curl -L 'https://gist.github.com/paulfurley/46e0547ce5c5ea7eabeaef50dbacef3f/raw/56ee5dd5f40dec93b8f7438cbdeda5475ea3b5d2/randomize-mac-addresses.sh' |sudo tee /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh | |
# > sudo chmod +x /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh | |
# Configure every saved WiFi connection in NetworkManager with a spoofed MAC |
#!/bin/sh | |
ip1=8.8.8.8 | |
ip2=208.67.222.222 | |
tries=3 | |
if [[ -z $1 ]]; then | |
logger -t watchdog "Missing interface name" | |
exit 1 | |
fi |
function foo() { | |
console.log("foo - start") | |
$("button.search-button").click() | |
setTimeout(function() { | |
var li = $(".list-item")[0] | |
var delButton = $(li).find("button.js-activity-delete") | |
var confirmDelButton = $(li).find("button.delete-yes") | |
console.log(delButton, confirmDelButton) |