Skip to content

Instantly share code, notes, and snippets.

View nuc's full-sized avatar
🍱
Always Hungry

Georgios Giannoutsos Barkas nuc

🍱
Always Hungry
View GitHub Profile
@nuc
nuc / non-expiring-fb-page-tokens.md
Last active June 14, 2025 23:23
How to generate Non-Expiring Facebook Page tokens

Non-Expiring Facebook Page tokens

#!/bin/bash
# Path definitions
CURSOR_USER_DIR="$HOME/Library/Application Support/Cursor/User"
ICLOUD_DIR="$HOME/Library/Mobile Documents/com~apple~CloudDocs/cursor-sync"
SETTINGS="settings.json"
VSCDB="globalStorage/state.vscdb"
# Ensure iCloud dir exists
mkdir -p "$ICLOUD_DIR/globalStorage"
@nuc
nuc / lg.txt
Last active January 17, 2024 20:51
0.0.0.0. de.ad.lgsmartad.com
0.0.0.0. de.info.lgsmartad.com
0.0.0.0. de.lgrecommends.lgappstv.com
0.0.0.0. de.lgtvsdp.com
0.0.0.0. de.rdx2.lgtvsdp.com
0.0.0.0. de.tvsdp.lgeapi.com
0.0.0.0. eic-gfts.lge.com
0.0.0.0. eic-ngfts.lge.com
0.0.0.0. eic-ocp.lgtviot.com
0.0.0.0. eic.lgtviot.com
@nuc
nuc / attach-cube.sh
Created March 8, 2023 14:04
Attach .cube to movie file, using YouTube's hdr_metadata tool
#!/bin/bash
# Check if both parameters have been provided
if [ $# -ne 2 ]; then
echo "Usage: $0 <video_file> <cube_file>"
exit 1
fi
# Check if mkvmerge is available in PATH
if ! command -v mkvmerge &> /dev/null; then
@nuc
nuc / tabindexDebug.js
Created September 8, 2016 11:14
Debug tabindex with javascript by listening "tab" key event and show in console the active element. Tested in Chrome 25 and Firefox 19
(function(){
"use strict";
document.addEventListener('keydown', function (event) {
setTimeout(function () {
var key, win, frameEl, activeEl, uri, msg;
msg = "";
key = window.event ? event.keyCode : event.which;
//Tab
if (key === 9) {
@nuc
nuc / .gvimrc
Last active October 17, 2019 10:27
vimrc & gvimrc
set macmeta
" MacVim GUI mode
if has("gui_macvim")
" Dark
" set macligatures
set guifont=Operator\ Mono\ Light:h14
" set guifont=Droid\ Sans\ Mono:h12
" Light
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
@nuc
nuc / .gvimrc
Last active May 14, 2019 09:44
vimrc
set macmeta
" MacVim GUI mode
if has("gui_macvim")
" Dark
set guifont=Operator\ Mono\ Light:h14
" set guifont=Droid\ Sans\ Mono:h12
" Light
" set guifont=Source\ Code\ Pro:h12
@nuc
nuc / plaintext-contenteditable.css
Last active April 18, 2019 01:24 — forked from Schniz/plaintext-contenteditable.css
Plain-Text ContentEditable div for React.js
.comPlainTextContentEditable {
-webkit-user-modify: read-write-plaintext-only;
}
.comPlainTextContentEditable--has-placeholder::before {
content: attr(placeholder);
opacity: 0.5;
color: inherit;
cursor: text;
}
@nuc
nuc / upload-sourcemap.js
Last active March 27, 2019 06:12
Upload sourcemaps to Sentry
/* eslint-disable no-sync */
const request = require('superagent')
const path = require('path')
const fs = require('fs')
const ACCOUNT = 'account'
const PROJECT = 'project-name'
const TOKEN = 'your-token'
const ASSET_URL = 'https://example.com/assets'
const SOURCEMAPS_PATH = './temp'