Skip to content

Instantly share code, notes, and snippets.

View joshschmelzle's full-sized avatar
༼ つ ◕_◕ ༽つ ø

jsz joshschmelzle

༼ つ ◕_◕ ༽つ ø
View GitHub Profile
@joshschmelzle
joshschmelzle / Stylebot.css
Last active March 31, 2016 12:46
simplynoise decluttered using stylebot
/* 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 September 2, 2016 14:02
Use this cheat sheet for a shorthand emoji list
http://www.webpagefx.com/tools/emoji-cheat-sheet/
http://www.computerhope.com/keys.htm
@joshschmelzle
joshschmelzle / rewriting.md
Created October 12, 2016 15:50
Rewriting the default protocol for GitHub

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

@joshschmelzle
joshschmelzle / spinner.cs
Created October 24, 2016 15:42
A spinner animation in a win32 console
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 October 24, 2016 15:43
A simple spinner animation with JavaScript and HTML
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 November 3, 2016 18:33
win32 ping with timestamp. to use from the command line replace %%a with %a - found hre: http://stackoverflow.com/questions/24906268/ping-with-timestamp
@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"

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 / lynx-proxy.md
Created December 15, 2016 13:33
Lynx 2.8.8re1.1 win32 proxy config

Add http_proxy:http://your.proxy.com:8080 to C:\Program Files (x86)\Lynx - web browser\lynx.cfg

To look up files recursively in the given directory for the given text, and display the file name with line number that has the matching text.

grep -rHn "text to search" /path/to/dir

To use a search pattern, use the following command:

grep -rHn -e "text pattern to search" /path/to/dir

Args: