Skip to content

Instantly share code, notes, and snippets.

🐌
༼ つ ◕_◕ ༽つ 📶

Josh Schmelzle joshschmelzle

🐌
༼ つ ◕_◕ ༽つ 📶
Block or report user

Report or block joshschmelzle

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
@joshschmelzle
joshschmelzle / Stylebot.css
Last active Mar 31, 2016
simplynoise decluttered using stylebot
View Stylebot.css
/* See before and after here: http://imgur.com/a/3HQML */
#bottomSection {
visibility: hidden;
display: none;
}
#topSection {
visibility: hidden;
display: none;
@joshschmelzle
joshschmelzle / Emoji Cheat Sheet
Created Sep 2, 2016
Use this cheat sheet for a shorthand emoji list
View Emoji Cheat Sheet
http://www.webpagefx.com/tools/emoji-cheat-sheet/
@joshschmelzle
joshschmelzle / rewriting.md
Created Oct 12, 2016
Rewriting the default protocol for GitHub
View rewriting.md

git config --global url.https://github.com/.insteadOf git://github.com/

@joshschmelzle
joshschmelzle / spinner.cs
Created Oct 24, 2016
A spinner animation in a win32 console
View spinner.cs
private void Spin()
{
Console.CursorVisible = false;
for (int i = 0; i < 3; i++)
{
originalOut.Write(@"~");
Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop);
originalOut.Write(@"\");
Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop);
@joshschmelzle
joshschmelzle / spinner.js
Last active Oct 24, 2016
A simple spinner animation with JavaScript and HTML
View spinner.js
var a = ["&#126;", "&#47;", "&#124;", "&#92;"];
// - : &#45;
// ~ : &#126;
var asyncLoop = function(o) {
var i = -1;
var loop = function() {
i++;
@joshschmelzle
joshschmelzle / localhost-ping-timestamp.bat
Created Nov 3, 2016
win32 ping with timestamp. to use from the command line replace %%a with %a - found hre: http://stackoverflow.com/questions/24906268/ping-with-timestamp
View localhost-ping-timestamp.bat
@echo off
ping -t localhost|cmd /q /v /c "(pause&pause)>nul & for /l %%a in () do (set /p "data=" && echo(!time! !data!)&ping -n 2 localhost>nul"
@joshschmelzle
joshschmelzle / ffmpeg-cut-out-video.cmd
Created Nov 29, 2016
Cut a video without re-encoding with ffmpeg
View ffmpeg-cut-out-video.cmd
ffmpeg -i input.mp4 -c copy -ss 00:04:25.000 -to 00:09:25.000 output.mp4
View curl-simple.md

Simple CURL commands

Curl is a tool to transfer data from or to a server. It supports a busload of protocols and useful tricks. Here is how to simply use CURL.

Get the main page from Google's web-server:

curl http://www.google.com

Using a proxy and getting the main page from Google's web-server:

@joshschmelzle
joshschmelzle / ffmpeg-slow-a-video.md
Last active Dec 1, 2016
Slow a video down with ffmpeg
View ffmpeg-slow-a-video.md

To slow down your video, you have to use a multiplier greater than 1:

ffmpeg -i input.mkv -filter:v "setpts=2.0*PTS" output.mkv

For example, to double the speed of the video, you can use:

ffmpeg -i input.mkv -filter:v "setpts=0.5*PTS" output.mkv

Source

You can’t perform that action at this time.