Skip to content

Instantly share code, notes, and snippets.

@illvart
illvart / crypto.md
Last active January 7, 2025 02:43
donate to our top crypto address

crypto address

tether usdt

usdt erc20

0xbe73eafba762eefa59263dcbde06ab0b2019da2d

usdt ton

UQBu_SyqdPtv3g_GJIq6cHOVjTdWNFReb4iNY_V6r_M-Zp2T

bitcoin – btc

@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 April 21, 2025 08:37
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:

@illvart
illvart / uca.xml
Last active June 29, 2021 12:56
Thunar Action
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<icon></icon>
<name>Delete/Bypass Recycle Bin</name>
<unique-id>1583421083799085-2</unique-id>
<command>rmtrash -rf %f %F</command>
<description>Description: Removes the selected file(s) from the disk, bypassing any local Recycle bin.</description>
<patterns>*</patterns>
<directories/>