- Create a bot using @BotFather, get it's token
- Start conversation with bot
- Run following curl command
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Screen recorder</title> | |
</head> | |
<body> | |
<button id="recording-toggle">Start recording</button> | |
<script defer> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>👨🏻🍳🅰️ Ngx Light by Younes @ Marmicode.io</title> | |
<meta name="description" content="👨🏻🍳🅰️ Ngx Light" /> | |
<meta name="viewport" content="width=device-width,initial-scale=1" /> | |
<script type="importmap"> | |
{ | |
"imports": { |
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
<?php | |
/** | |
* Create Subdomains | |
* | |
* Note: This script was designed to be called silently by a bash script for project creation. | |
* Add to bash script: php "$HOME/scripts/php/create-subdomains.php" "$new_account_subdomain" | |
* | |
* Requires "jamesryanbell/cloudflare": "^1.11" for the CloudFlare PHP library | |
* Recommends "kint-php/kint": "^3.2" for improved temporary PHP debugging |
import { Component, HostListener } from "@angular/core"; | |
@Component({ | |
selector: "app-root", | |
template: ` | |
<div> | |
<h1>This is Application Header</h1> | |
<h2>This is Other Header Component</h2> | |
</div> | |
`, |
<? | |
// | |
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio) | |
// | |
// File: twitterFollowerCuratorBot.php | |
// | |
// Created: May 2021 | |
// License: MIT | |
// |
//Import dependencies | |
const bip32 = require('bip32') | |
const bip39 = require('bip39') | |
const bitcoin = require('bitcoinjs-lib') | |
//Define the network | |
const network = bitcoin.networks.bitcoin //use networks.testnet for testnet | |
// Derivation path | |
const path = `m/49'/0'/0'/0` // Use m/49'/1'/0'/0 for testnet |
<? | |
# MIT license, do whatever you want with it | |
# | |
# This is my invoice.php page which I use to make invoices that customers want, | |
# with their address on it and which are easily printable. I love Stripe but | |
# their invoices and receipts were too wild for my customers on Remote OK | |
# | |
require_once(__DIR__.'/../vendor/autoload.php'); |
var zip = new JSZip(); | |
var count = 0; | |
var zipFilename = "zipFilename.zip"; | |
var urls = [ | |
'http://image-url-1', | |
'http://image-url-2', | |
'http://image-url-3' | |
]; | |
urls.forEach(function(url){ |
function paginate(array, page_size, page_number) { | |
// human-readable page numbers usually start with 1, so we reduce 1 in the first argument | |
return array.slice((page_number - 1) * page_size, page_number * page_size); | |
} | |
console.log(paginate([1, 2, 3, 4, 5, 6], 2, 2)); | |
console.log(paginate([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 4, 1)); |