Skip to content

Instantly share code, notes, and snippets.

View whatsdis's full-sized avatar

whatsdis

View GitHub Profile
@moyix
moyix / aigen.php
Last active April 2, 2025 02:41
PHP code generated by GPT-2
<?php
require ' vendor/autoload.php ' ;
/**
* Handles an HTTP request that contains information for registering/unregistering
* a FNA application.
@nomadekr
nomadekr / README.md
Last active January 28, 2020 15:02
AWS chalice 에서 jinja2 템플릿 활용하기

AWS chalice 에서 jinja2 템플릿 활용하기

디렉토리 구조

  • app.py
  • requirements.txt
  • chalicelib/
    • tempaltes/
      • index.html
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active November 14, 2024 21:20
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@feelinc
feelinc / UploadDirS3.py
Last active October 8, 2024 20:55
Upload folder contents to AWS S3
#!/usr/bin/python
import os
import sys
import boto3
# get an access token, local (from) directory, and S3 (to) directory
# from the command-line
local_directory, bucket, destination = sys.argv[1:4]