-
Create Telegram bot:
Search for user @BotFather in Telegram app. Type /help in BotFather chat and wait for the reply. Type in the chat:
/newbot
or select /newbot command from Help text. Answer few setup questions:
| # A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows | |
| # | |
| # Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only: | |
| # Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process | |
| # | |
| # To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ ) | |
| # .\WhateverScriptName.ps1 | |
| # ------------------------------------------------------------------------------------------- | |
| # Script by ThioJoe - https://github.com/ThioJoe | |
| #Requires -Module Spotishell | |
| # Install and setup Spotishell | |
| # https://github.com/wardbox/spotishell | |
| $InformationPreference = "Continue" | |
| # Set your spotify username here | |
| $username = "myspotifyusername" | |
| $public_playlists = Get-UserPlaylists -Id $username | Where-Object { $_.owner.uri -eq "spotify:user:$username" -and $_.public} |
| #!/usr/bin/python | |
| import glob | |
| import socket | |
| import time | |
| from threading import Timer | |
| import picamera | |
| import RPi.GPIO as GPIO | |
| <script> | |
| /*Animate element and change text / html if konami code is entered on a page - can be used as custom HTML in Google Tag Manager. | |
| Source / idea: https://www.simoahava.com/gtm-tips/add-konami-code-to-your-site/ */ | |
| /* SETUP */ | |
| //message to display on "konami element" after animation. HTML can be used as well - innerHTML will be replaced with whatever gets defined here. | |
| //leave blank for no change (just animation) | |
| var konamiMessage = 'you are awesome! ;)</small>'; | |
| //CSS Selector for element to animate and display message (e.g. "#someId", "div.someclass". info: https://www.w3schools.com/cssref/css_selectors.asp) |
(extracted from the now defunct SGI project at http://lavarand.sgi.com/cgi-bin/how.cgi via the magical Internet Archive Wayback Machine)
Lava Lamps can be used as a source of randomness, which can be used to establish a random number generator. The output of the RNG can then be consumed by various computer applications.
| <?php | |
| /** | |
| * This is an example of a practical encoder and decoder for base-62 data in PHP | |
| * It differs from the majority of examples in that it's fast enough for moderate data sizes, unlike multiprecision converters | |
| * To be practical, base-62 encoding needs to use internal chunking and padding because base-62 does not fit exactly into any integral number of bits | |
| * This means the output is not quite compatible with multiprecision conversions, | |
| * but the encoded data retains all the desirable properties of base-62, so (unlike any base-64 encoding) it's URL, DNS, email address and pathname safe | |
| * @author Marcus Bointon <marcus@synchromedia.co.uk> | |
| * @copyright 2011 Marcus Bointon | |
| * @license http://www.opensource.org/licenses/mit-license.html MIT License |