Skip to content

Instantly share code, notes, and snippets.

🍴
Playing with Tide pods

Gary LameLemon

🍴
Playing with Tide pods
Block or report user

Report or block LameLemon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@LameLemon
LameLemon / giffer.sh
Created Jun 24, 2019
Bash script to make a gif from a section of a video using ffmpeg
View giffer.sh
#!/bin/bash
scale=640
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]
then
echo "Arugments <start time> <duration> <file>"
fi
ffmpeg -ss "$1" -t "$2" -y -i "$3" -vf fps=24,scale="$scale":-1:flags=lanczos,palettegen palette.png
@LameLemon
LameLemon / webm.md
Created Jun 23, 2019 — forked from ndarville/webm.md
4chan’s guide to converting GIF to WebM - https://boards.4chan.org/g/res/41212767
View webm.md

Grab ffmpeg from https://www.ffmpeg.org/download.html

It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.

The most trivial operation would be converting gifs:

ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
  • -crf values can go from 4 to 63. Lower values mean better quality.
  • -b:v is the maximum allowed bitrate. Higher means better quality.
@LameLemon
LameLemon / stars.py
Created Jun 9, 2019
Save all GitHub user stars to JSON
View stars.py
from time import sleep
from urllib.request import urlopen, Request, urlretrieve
import requests
from bs4 import BeautifulSoup as soup
import re
import sys
import json
stars_list = []
count = 0
@LameLemon
LameLemon / linfoxdomain-scraper.py
Created May 20, 2019
Downloads all flash games from linfoxdomain.com
View linfoxdomain-scraper.py
from time import sleep
from urllib.request import urlopen
from urllib.request import Request
from urllib.request import urlretrieve
import requests
from bs4 import BeautifulSoup as soup
import os
def scrape(category, down_path):
if not os.path.exists(down_path):
@LameLemon
LameLemon / http_server.c
Last active Jun 10, 2018
A simple HTTP Server in C
View http_server.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
int main() {
// Char array to hold html file text
@LameLemon
LameLemon / TwitterSubPoster.py
Last active Mar 15, 2018
Tweets hot posts from a given subreddit.
View TwitterSubPoster.py
import praw
import tweepy
from tweepy import OAuthHandler
import time
import sqlite3
'''
CONFIG INFORMATION
==================
This variables below can be put in a separate file but I've decided to keep
@LameLemon
LameLemon / TwitterPost.py
Created Feb 12, 2018
Comment on posts that have a tweet as a submission
View TwitterPost.py
import tweepy
from tweepy import OAuthHandler
import praw
# Reddit credentials go below
reddit = praw.Reddit(client_id = '',
client_secret= '',
user_agent= '',
username = '',
password = '')
You can’t perform that action at this time.