Skip to content

Instantly share code, notes, and snippets.

View spookyuser's full-sized avatar
🌎
reading and writing

spookyuser

🌎
reading and writing
View GitHub Profile
@spookyuser
spookyuser / NEXT_TYPESCRIPT.json
Created October 9, 2023 09:17 — forked from anandmt/NEXT_TYPESCRIPT.json
VSCODE_SNIPPETS
{
"Next Typescript React Functional Component": {
"prefix": "fc",
"body": [
"import { FC } from 'react';",
"",
"interface ${TM_FILENAME_BASE}Props {",
" $1",
"}",
"",
@spookyuser
spookyuser / install_ffmpeg.sh
Last active December 28, 2019 07:07 — forked from loong/Install ffmpeg on AWS Linux AMI
Installs FFmpeg on aws\whatever
# Taken from https://forums.aws.amazon.com/thread.jspa?messageID=332091
# And https://gist.github.com/rainabba/07425c3bc14a0bb51632f12e913d9081
#
# Usage: `sudo bash ./install_ffmpeg.sh`
# Config Variables
static_host=https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
filename=ffmpeg-git-64bit-static.tar.xz
@spookyuser
spookyuser / AddCookiesInterceptor.kt
Last active July 16, 2017 22:27 — forked from nikhiljha/AddCookiesInterceptor.java
Retrofit2/OkHttp3 Cookies (Drag and Drop, One Size Fits 99%)
import android.content.SharedPreferences
import okhttp3.Interceptor
import okhttp3.Response
import org.threeten.bp.Instant
import timber.log.Timber
import java.io.IOException
import java.util.*
import javax.inject.Inject
/**