This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| StarHScale a Horizontal slider that uses stars | |
| Copyright (C) 2006 Mark Mruss <selsine@gmail.com> | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding:utf-8 -*- | |
| # | |
| # Copyright (C) 2013 Carlos Jenkins <[email protected]> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const puppeteer = require('puppeteer'); | |
| (async () => { | |
| const browser = await puppeteer.launch({headless:false}); | |
| const page = await browser.newPage(); | |
| let url = 'youtube url'; | |
| await page.goto(url); | |
| await page.evaluate(() => { | |
| self.moHandler = { | |
| changesObserver: function (mutation) { | |
| if (mutation.type === 'attributes'){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // first: `npm init -- yes && npm i chalk puppeteer-core` | |
| // then: `node . --help` | |
| const puppeteer = require('puppeteer-core'); | |
| const chalk = require('chalk'); | |
| // --- | |
| const ifHasParam = (s = '') => process.argv.includes(s); | |
| const paramValueOf = (s = '') => (process.argv.find(x => x.startsWith(`${s}=`)) || '').split('=')[1]; | |
| const DEFAULT_VIDEO_ID = '5qap5aO4i9A'; // ChillCow; his other channel is "DWcJFNfaw9c" | |
| const DEBUG = ifHasParam('--debug'); | |
| const SHOW_HEAD = ifHasParam('--head'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const puppeteer = require('puppeteer'); | |
| const uuid = require('uuid'); | |
| const sleep = ms => new Promise(r => setTimeout(r, ms)); | |
| (async () => { | |
| const browser = await puppeteer.launch({ headless: false }); | |
| const page = await browser.newPage(); | |
| const id = uuid.v4(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const puppeteer = require('puppeteer') | |
| const screenshot = 'youtube_fm_dreams_video.png' | |
| try { | |
| const browser = await puppeteer.launch() | |
| const page = await browser.newPage() | |
| await page.goto('https://youtube.com') | |
| await page.type('#search', 'Fleetwood Mac Dreams') | |
| await page.click('button#search-icon-legacy') | |
| await page.waitForSelector('ytd-thumbnail.ytd-video-renderer') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt-get update -y | |
| sudo apt-get install python g++ make checkinstall fakeroot -y | |
| src=$(mktemp -d) && cd $src | |
| wget -N http://nodejs.org/dist/node-latest.tar.gz | |
| tar xzvf node-latest.tar.gz && cd node-v* | |
| ./configure | |
| sudo fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install | |
| sudo dpkg -i node_* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| APPNAME=App | |
| BUILDNUMBER=123 | |
| CERTIFICATE="iPhone Distribution" | |
| cp "${APPNAME}.ipa" "${APPNAME}.zip" | |
| mkdir contents || true | |
| unzip "${APPNAME}.zip" -d contents | |
| codesign -d --entitlements :Entitlements.plist "contents/Payload/${APPNAME}.app" | |
| plutil -replace CFBundleVersion -string "${BUILDNUMBER}" "contents/Payload/${APPNAME}.app/Info.plist" | |
| rm -r "contents/Payload/${APPNAME}.app/_CodeSignature" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # | |
| # rdesktop-gui | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are | |
| # met: | |
| # | |
| # * Redistributions of source code must retain the above copyright |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #EXTINF:-1, TF1 | |
| http://pebbles109-lh.akamaihd.net/i/tf1_1@97468/index_900_av-b.m3u8|User-Agent=Mozilla%2F5.0%20(iPhone%3B%20U%3B%20CPU%20iPhone%20OS%203_0%20like%20Mac%20OS%20X%3B%20en-us)%20AppleWebKit%2F528.18%20(KHTML%2C%20like%20Gecko)%20Version%2F4.0%20Mobile%2F7A341%20Safari%2F528.16&X-Forwarded-For=146.159.95.38 | |
| #EXTINF:-1 ,TF1 | |
| http://wpc.e803.mucdn.net/80E803/enco35-tnt/hls/m3u8/tf1hl874093481.m3u8 | |
| #EXTINF:-1,France 2 HD | |
| http://pebbles101-lh.akamaihd.net/i/france2_1@97347/index_900_av-b.m3u8|X-Forwarded-For=146.159.95.38 | |
| #EXTINF:-1,France 3 |