Skip to content

Instantly share code, notes, and snippets.

View jtgi's full-sized avatar
🎱

0xjtgi jtgi

🎱
View GitHub Profile
@jtgi
jtgi / util.ts
Last active January 29, 2024 20:32
Frame Response Helper - Use web standard response
// next.js usage
export default function handler() {
return frameResponse({
image: `https://domain.com/image.gif`,
buttons: [
{ text: 'Action 1' },
{ text: 'Action 2' },
]
});
@jtgi
jtgi / timeline
Created April 23, 2022 09:49
proof phishing :(
- Apr-22-2022 10:36:02 AM +UTC received airdrop with
- https://etherscan.io/tx/0xf7c33fc3154bdf38df2760889768f4cf6e90e3b8c6e17d5cdb09b3c3c30064bf
- Apr-22-2022 03:24:21 PM +UTC safe transfer
- https://etherscan.io/tx/0x7ef112e693aed1d25ffcbf1051fb9681c30cc5f65c2ff88040abf1373147ae2d
- Apr-22-2022 03:25:32 PM +UTC: Set approval yash’s opensea proxy contract
- https://etherscan.io/tx/0x41ab900d840df312b44c6ccf070b89ea34bede4b78ab322dd00367af5eae27c3
- Apr-22-2022 04:52:16 PM +UTC: remove approval for yash’s opensea proxy contract
- https://etherscan.io/tx/0x4f209f45cb3cde398082bb0da2ca6beb5917e10485cdf82abffd54b9169a4fea
@jtgi
jtgi / allyournftsarebelongto.js
Created April 23, 2022 08:55
Fake Mint Site
var _0x69ee09 = _0x2c92;
function _0x2c92(_0x3edf9a, _0x570cdf) {
var _0x2415bb = _0x2415();
return _0x2c92 = function(_0x2c9293, _0x285f1e) {
_0x2c9293 = _0x2c9293 - 0x80;
var _0x5bb445 = _0x2415bb[_0x2c9293];
return _0x5bb445;
}, _0x2c92(_0x3edf9a, _0x570cdf);
}(function(_0x36c0c9, _0x58705d) {
<Response>
<Say voice="alice" language="es-ES">Su numero PIN de firma electronica es: 3 7 9 4 1 2</Say>
</Response>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include <arpa/inet.h>
#include "mpi.h"
#include "fgmpi.h"
wow
Coding at the command line with Vim!
====================================
# Why Vim?
- Runs everywhere (your server), bindings in all your IDEs.
- Very effective for most dynamic / scripting languages and others
that operate closely on the command line.
- The genius of modal editing. Normal vs Insert vs Visual vs Visual Blocks
@jtgi
jtgi / gist:36a4e31d9fe25ae8dda6
Last active August 29, 2015 14:17
intro to *nix!

Intro to Unix and Vim star wars: telnet towel.blinkenlights.nl

Who am I

  • 4th year comp sci, cmd line noob

Why command line

  • highly productive
  • O(1) vs long time for mouse
  • Sometimes the only way to get something done. (SysAdmin and deployment.)
set shell=bash
set t_Co=256
syntax on
filetype on
filetype indent on
map ; :
map <C-h> <C-w>h
map <C-j> <C-w>j
import java.util.*;
/*
* NORMAL MODE
* challenge 0: motions
* hjkl - move in all directions
* www - move to next word
* bbb - move to prev word,
* eee - move to next word,
* $ - move to end of line
import java.util.*;
/*
* NORMAL MODE
* challenge 0: motions
* hjkl - move in all directions
* www - move to next word
* bbb - move to prev word,
* eee - move to next word,
* $ - move to end of line