See https://drbl.org/faq/fine-print.php?path=./2_System/43_read_ntfsimg_content.faq
# modprobe nbd
# imagemount -d /dev/nbd0 -f /home/partimag/my-sda1-img
# mount /dev/nbd0 /mnt
# umount /mnt
# pkill imagemount
from spotipy.oauth2 import SpotifyOAuth | |
scope = "user-library-read playlist-modify-private playlist-modify-public" | |
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope)) | |
playlists = sp.current_user_playlists() | |
for i in playlists['items']: | |
if "Discover Weekly Archive Clean" in i['name']: | |
print(i) | |
playlist_id="SETYOURSHERE" |
See https://drbl.org/faq/fine-print.php?path=./2_System/43_read_ntfsimg_content.faq
# modprobe nbd
# imagemount -d /dev/nbd0 -f /home/partimag/my-sda1-img
# mount /dev/nbd0 /mnt
# umount /mnt
# pkill imagemount
col-palette-colors=256 | |
col-active-tab-fg=light green | |
col-active-tab-bg=brown | |
col-inactive-tab-fg=light red | |
col-inactive-tab-bg=black | |
col-msg-date-fg=dark gray | |
# Uncomment the following lines for use on a light background terminal | |
#col-msg-sender-fg=#a00 | |
#col-msg-text-fg=#a00 |
/* | |
* Imports for webdriver | |
*/ | |
import org.openqa.selenium.OutputType; | |
import org.openqa.selenium.TakesScreenshot; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.phantomjs.PhantomJSDriver; | |
import java.io.*; // File library |
#!/bin/bash | |
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | |
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -r -s)/prod.list > /etc/apt/sources.list.d/mssql.list | |
apt-get update | |
apt-get -y install msodbcsql mssql-tools unixodbc-dev | |
apt-get -y install python-pip | |
pip install pyodbc==3.1.1 |
#!/bin/bash | |
set -ex | |
# Modified from https://github.com/plasma-phone-packaging/pm-flashtool/blob/master/flash-multirom | |
CACHEDIR=cache | |
function wait-for-device { | |
until adb shell true 2> /dev/null | |
do | |
sleep 1 |
from roboronya.plugins.plugin import Plugin | |
import roboronya.utils as utils | |
import urllib.request | |
import json | |
import sys | |
class Weather(Plugin): | |
description = 'Give the weather for a specified location' | |
name = 'weather' |