Skip to content

Instantly share code, notes, and snippets.

View mavaddat's full-sized avatar
🏠
Working from home

Mavaddat Javid mavaddat

🏠
Working from home
View GitHub Profile
@josheinstein
josheinstein / PSObjectComparer.cs
Created May 1, 2012 21:17
IComparer for PSObjects in PowerShell
namespace Einstein.PowerShell
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.Globalization;
using System.Linq;
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@dredix
dredix / UpdateDDNS.ps1
Created August 29, 2012 07:50
A PowerShell script for performing a Dynamic DNS Update with namecheap.com
# UpdateDDNS.ps1
# Update Dynamic DNS on Namecheap.com via HTTP GET request.
Param(
[parameter(Mandatory=$true)]
[alias("c")]
$ConfigFile)
# Parse the content of an INI file, return a hash with values.
# Source: Artem Tikhomirov. http://stackoverflow.com/a/422529
Function Parse-IniFile ($file) {
@kentbrew
kentbrew / pinning_from_chrome_on_ios.txt
Created September 25, 2012 18:57
Pinning from Chrome on IOS
Pinning from Chrome on IOS
This is fugly but it works. (As soon as Google opens up extensions in Chrome or allows bookmarklets to open in an existing tab, or Apple opens up the Share panel, I'll update.)
Install the bookmarklet:
1) Open up this gist on your iPad.
2) Bookmark this page.
@osrecio
osrecio / Backup_cpanel.sh
Created June 24, 2013 12:55
Get Backup Cpanel ( Files & DB's )
#!/bin/bash
LOG="/path_to_save_logs"
echo "Start backup web `date`" >> $LOG
cd /folder_to_save
FECHAF=`date +%Y.%m.%d`
mkdir $FECHAF
cd $FECHAF
FECHA=`date +%-m-%-d-%Y`
@VonC
VonC / .gitignore
Last active July 12, 2019 19:28
Simple download and installation script, which can be called from the cloud
/senv.sublime-*
/WindowTabsSettings.txt
@hfossli
hfossli / ffmpeg_split.sh
Last active December 27, 2020 21:47
A bash / shell script for splitting videos / movies into several / multiple files using ffmpeg
#!/bin/bash
# Created by Håvard Fossli <hfossli@gmail.com> in 2013
# Derived from Alexis Bezverkhyy <alexis@grapsus.net> in 2011
# This is free and unencumbered software released into the public domain.
# For more information, please refer to <http://unlicense.org/>
#
# Description
# A bash script for splitting videos into several files using ffmpeg.
#
@mhkeller
mhkeller / endpoint.txt
Last active January 9, 2023 18:47
Google "I'm Feeling Lucky" Endpoint
http://www.google.com/search?hl=en&btnI=I%27m+Feeling+Lucky&pws=0&q=<ENTER SEARCH TERM HERE>
@wkjagt
wkjagt / audio-book-reader.md
Last active April 12, 2024 14:18
How I built an audio book reader for my nearly blind grandfather

#How I built an audio book reader for my nearly blind grandfather

Tweet this - Follow me

Last year, when visiting my family back home in Holland, I also stopped by my grand-parents. My grand-father, now 93 years old, had always been a very active man. However, during the presceding couple of months, he'd gone almost completely blind and now spent his days sitting in a chair. Trying to think of something for him to do, I suggested he try out audio books. After finally convincing him -- he said audio books were for sad old people -- that listening to a well performed recording is actually a wonderful experience, I realized the problem of this idea.

####The problem with audio devices and the newly blind. After my first impulse to jump up and go buy him an

@mildred
mildred / download.sh
Created October 20, 2014 10:03
Download from archive.org Wayback Machine
#!/bin/bash
url=http://redefininggod.com
webarchive=https://web.archive.org
wget="wget -e robots=off -nv"
tab="$(printf '\t')"
additional_url=url.list
# Construct listing.txt from url.list
# The list of archived pages, including some wildcard url