Skip to content

Instantly share code, notes, and snippets.

View Glatharth's full-sized avatar
💭
:)

Paulo Henrique Lisboa Glatharth

💭
:)
View GitHub Profile
@Zbizu
Zbizu / #__vscode_functions.lua
Last active August 18, 2021 23:36
Visual Studio Code globals for Lua scripting in TFS 1.3
-- what is it:
-- this is a file designed to make vs code's Lua extension intellisense working properly
-- it contains placeholders for Lua content defined by C++ files
-- how to use:
-- download vs code
-- install sumneko's lua extension
-- drop this file to your data/scripts folder
-- make sure it starts with # so it won't get loaded by the tfs
-- open folder in vs code
@TheUltDev
TheUltDev / gen.js
Last active July 19, 2021 14:51
TFS Sublime Autocomplete Generator
var Promise = require("bluebird"),
os = require('os'),
fs = Promise.promisifyAll(require('fs')),
fse = Promise.promisifyAll(require('fs-extra'));
var dogen = function() {
return fs.readFileAsync('./lua-functions.txt')
// Parse XML contents into an object
.then(function(contents) {
@tzmartin
tzmartin / m3u8-to-mp4.md
Last active December 24, 2025 06:37
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@kotakanbe
kotakanbe / ipcalc.go
Created September 17, 2015 02:59
get all IP address from CIDR in golang
package main
import (
"net"
"os/exec"
"github.com/k0kubun/pp"
)
func Hosts(cidr string) ([]string, error) {