Skip to content

Instantly share code, notes, and snippets.

View jt0in3e's full-sized avatar
🔍
looking carefully

YxbJt jt0in3e

🔍
looking carefully
View GitHub Profile
@jt0in3e
jt0in3e / tmux-cheatsheet.markdown
Created July 3, 2017 16:35 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jt0in3e
jt0in3e / tmux.md
Created July 3, 2017 16:42 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@jt0in3e
jt0in3e / get-tv-programme.js
Last active October 30, 2017 10:02 — forked from anonymous/node.js
GET tv-programme in NODE.js / Our style
"use strict"
const request = require('request')
const fs = require('fs');
const zlib = require('zlib');
const opts = {
url: "https://iptvx.one/epg/epg.xml.gz",
headers: {
"User-Agent": "request"
}
@jt0in3e
jt0in3e / fb-upload-image.js
Last active June 13, 2021 00:32
Facebook Messenger APIs: upload and send image to messenger with Node.js
/*
Would be updated
*/
"use strict"
const request = require("request");
const fs = require("fs");
const image = fs.createReadStream("path/to/image.jpg ")
//run from terminal /node app.js/ and get variables from command line
@jt0in3e
jt0in3e / fb-batched-requests.js
Last active December 22, 2023 14:48
Facebook Messenger APIs: Send multiple/bulk messages (batched requests) with Node.js
/*
There are a lot of examples on FB Messenger Dev Docs how to send multiple messages
using curl in command line (terminal).
This code demonstraits how to send these messages using Node.js
*/
"use strict"
const request = require("request");
const fs = require("fs");
@jt0in3e
jt0in3e / GetPeers.py
Last active December 17, 2018 05:53 — forked from harmonbc/GetPeers.py
Print out all Torrent IP Addresses
#!/usr/bin/python
#Heavily based on libtorrent example
#Did this to print examples of what information is being processed at different parts of the bittorrent protocol
#added saving to file > jt0in3e
import libtorrent as lt
import time
import sys
@jt0in3e
jt0in3e / mbsync-notify.sh
Last active May 17, 2024 14:26 — forked from nlamirault/gist:38cfc46682eaeb28709e
Sync emails with mbsync and get notifications on new emails
#!/usr/bin/bash
#
# Script to notify user for new mails.
# Crontab ex:
# */3 * * * * $HOME/.local/scripts/mbsync-notify.sh [acc_name]
#
# do not duplicate
killall mbsync &>/dev/null
@jt0in3e
jt0in3e / twitterTweetUnliker.js
Last active July 26, 2023 16:36 — forked from mrkacan/twitterTweetUnliker.js
Twitter auto unlike tweets - Tweet unliker
//added a little randomness to the initial script
let interval = null
let count = 10000
let ntt = function(){
interval = setInterval(function(){
document.querySelectorAll('[data-testid=unlike]').forEach((t)=> {
t.click()
})
count += 1000