sudo apt update
sudo apt install xrdp
sudo apt install xfce4
| import requests | |
| from tqdm import tqdm | |
| def download(url: str, fname: str, chunk_size=1024): | |
| resp = requests.get(url, stream=True) | |
| total = int(resp.headers.get('content-length', 0)) | |
| with open(fname, 'wb') as file, tqdm( | |
| desc=fname, | |
| total=total, |
| name: build | |
| on: [ push, pull_request ] | |
| jobs: | |
| run: | |
| runs-on: ${{ matrix.operating-system }} | |
| strategy: | |
| matrix: | |
| operating-system: [ ubuntu-latest ] |
| <?php | |
| file_put_contents( 'progress.txt', '' ); | |
| $targetFile = fopen( 'testfile.iso', 'w' ); | |
| $ch = curl_init( 'http://ftp.free.org/mirrors/releases.ubuntu-fr.org/11.04/ubuntu-11.04-desktop-i386-fr.iso' ); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt( $ch, CURLOPT_NOPROGRESS, false ); | |
| curl_setopt( $ch, CURLOPT_PROGRESSFUNCTION, 'progressCallback' ); | |
| curl_setopt( $ch, CURLOPT_FILE, $targetFile ); |
| #!/bin/bash | |
| # This script cleans all cache for Microsoft Teams on Linux | |
| # Tested on Ubuntu-like and Debian by @necrifede. Feel free to test/use in other distributions. | |
| # Tested with Teams via snap package. | |
| # | |
| # How to use in terminal: | |
| # ./clear_cache_MS_Teams.sh ( deb-stable | deb-insider | snap ) | |
| # or | |
| # bash clear_cache_MS_Teams.sh ( deb-stable | deb-insider | snap ) |
| /** | |
| * @param SymfonyStyle $io | |
| * @param $remotePath | |
| * | |
| * @return string | |
| */ | |
| public function download(SymfonyStyle $io, $remotePath) | |
| { | |
| $io->section("Download " . $remotePath); | |
| $parts = parse_url($remotePath); |
| #!/home/drspock/scripts/FBInvite/bin/python | |
| import argparse | |
| import requests | |
| import pyquery | |
| def login(session, email, password): | |
| ''' | |
| Attempt to login to Facebook. Returns user ID, xs token and |