Skip to content

Instantly share code, notes, and snippets.

View siygle's full-sized avatar

S.Y. Lee siygle

View GitHub Profile
@siygle
siygle / gist:4468676
Last active December 10, 2015 17:38 — forked from avimar/gist:3092732
Install nodejs with salt under ubuntu env
nodejs-deps:
pkg.installed:
- names:
- build-essential
- g++
- curl
- libssl-dev
- apache2-utils
- git
//
// ViewController.swift
// TestSwift
//
// Created by Jameson Quave on 6/2/14.
// Copyright (c) 2014 JQ Software LLC. All rights reserved.
//
import UIKit
#!/usr/bin/env python
# Written with pymongo-2.6
# Modify for pymongo-2.1
#!/usr/bin/env python
__author__ = 'mongolab' \
@siygle
siygle / gist:f766c835396bc05d02205f5c2e8cb2ef
Created February 2, 2017 02:49 — forked from keithics/gist:fd53431b6f57014249ca
Mongodump and Amazon Glacier
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
AWS = require('aws-sdk'),
exec = require('child_process').exec,
fs = require('fs'),
name = new Date().toISOString();
@siygle
siygle / Dockerfile
Last active July 25, 2017 03:42 — forked from jimpick/Dockerfile
Hosting dathttpd on now.sh - https://dat.jimpick.com/
FROM ubuntu:16.04
RUN apt-get update --yes && apt-get upgrade --yes
RUN apt-get update --yes && apt-get upgrade --yes
RUN apt-get -y install curl
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt-get -y install ffmpeg zlib1g-dev automake autoconf git \
@siygle
siygle / hyper.js
Last active January 17, 2018 04:07 — forked from coco-napky/hyper.js
Hyper config for git bash in Windows (Use bash)
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 16,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@siygle
siygle / cloudflare-worker-youtube-dl.js
Created August 9, 2024 07:05 — forked from hizkifw/cloudflare-worker-youtube-dl.js
Download YouTube videos with Cloudflare Worker
/**
* cloudflare-worker-youtube-dl.js
* Get direct links to YouTube videos using Cloudflare Workers.
*
* Usage:
* GET /?v=dQw4w9WgXcQ
* -> Returns a JSON list of supported formats
*
* GET /?v=dQw4w9WgXcQ&f=251
* -> Returns a stream of the specified format ID