Skip to content

Instantly share code, notes, and snippets.

24/04/07 00:56:17 | INFO | numexpr.utils | _init_num_threads | 161 : NumExpr defaulting to 4 threads.
24/04/07 00:56:19 | SUCCESS | menfess.database | db_connect | 80 : Database connected.
24/04/07 00:56:19 | SUCCESS | menfess.database | db_connect | 83 : Tables created.
24/04/07 00:56:21 | INFO | menfess.bot | start | 563 : Starting Bot Client...
24/04/07 00:56:22 | INFO | menfess.bot | start | 578 : Bot Client details:
ID: 6243829127
First Name: RANDOM MENFESS
Username: randomenfess_bot
24/04/07 00:56:22 | INFO | menfess.bot | start | 588 : Var.MENFESS_ID detected!
Title: RANDOM MENFESS 💭
@illvart
illvart / crypto.md
Created April 3, 2024 21:31
donate to my cryptocurrency address

cryptocurrency address

bitcoin (btc)

1CJHHcQAbDtTMfvjX4FtF6ie5FG2t5N5BN

ethereum (erc20)

0x4c9463589bd20a1baad927a1b7cea685c2e6ba10

toncoin (ton)

UQCoC9qEDQa2t6GR3YA61BzNAyY3P6fLecndStKQb4eRxd7_

@illvart
illvart / facebook-unblock-id.md
Last active March 18, 2024 03:23
Cara unblock Facebook, Instagram, Whatsapp melalui hosts

Cara unblock Facebook, Instagram, Whatsapp melalui hosts

Unblock Facebook termasuk Facebook Analytics, dan Facebook for Developers.

Lokasi file hosts untuk:

Linux dan macOS

/etc/hosts

Windows

c:\Windows\System32\Drivers\etc\hosts

@illvart
illvart / facebook-unblock.md
Last active October 31, 2024 04:18
How to unblock Facebook, Instagram, Whatsapp via hosts

How to unblock Facebook, Instagram, Whatsapp via hosts

Unblock Facebook includes Facebook Analytics, and Facebook for Developers.

The hosts file location for:

Linux and macOS

/etc/hosts

Windows

c:\Windows\System32\Drivers\etc\hosts

@illvart
illvart / git-io.md
Last active November 16, 2020 19:52
https://git.io custom shortener name
@illvart
illvart / checkTime.js
Last active March 2, 2022 06:13
Ignoring Telegraf old messages from users
module.exports = (ctx, next) => {
switch (ctx.updateType) {
case 'message':
if (new Date().getTime() / 1000 - ctx.message.date < 5 * 60) {
next();
} else {
console.log(`Ignoring messages updateType: 'message' from ${ctx.chat.id}`);
}
break;
case 'callback_query':
@illvart
illvart / aliases.js
Last active July 15, 2020 21:24
Telegraf.js snippet for Telegram bot Node.js
const {Context} = require('telegraf');
class Aliases extends Context {
constructor(update, telegram, options) {
super(update, telegram, options);
this.t = telegram;
}
sendAction(...args) {
return super.replyWithChatAction(...args);
@illvart
illvart / 0-nodejs-packages.md
Last active March 23, 2020 18:56
Install global node.js packages from packages.txt

Install global node.js packages from packages.txt

Create bash script

npm npm-global-install.sh:

#!/usr/bin/env bash

cat packages.txt | xargs npm install --global
@illvart
illvart / 0-vscode-extensions-backup.md
Last active September 28, 2024 13:22
VSCode - Visual Studio Code extensions backup

VSCode - Visual Studio Code extensions backup

If you are use Unix/Linux create a bash script with a loop. In this case I want to backup the extensions list and install again:

First create a list of the extensions:

$ code --list-extensions > extensions.txt

Create a bash script for example with the name vscode-extension-install.sh and input the following code:

Aliases ~/.bashrc or ~/.zshrc:

alias pmr='sudo reflector -c "Indonesia" -c "Singapore" -c "US" -c "China" --score 100 --latest 25 --sort rate --save /etc/pacman.d/mirrorlist --verbose'
alias update-mirror='pmr && cat /etc/pacman.d/mirrorlist > mirrorlist && gist -u 3ac7c21617513627a906d314f63a7eca mirrorlist'

Just update /etc/pacman.d/mirrorlist:

$ pmr

Update and push to gist: