Skip to content

Instantly share code, notes, and snippets.

View JunaidQadirB's full-sized avatar
🎯
Social Media Fasting

Junaid Qadir JunaidQadirB

🎯
Social Media Fasting
View GitHub Profile
@JunaidQadirB
JunaidQadirB / compress_files
Created January 15, 2015 10:29
Compress Files on your host if you don't have cpanel or ssh
<?php
$time_stamp=time();
/*
* Set $archive and $directory path accordinging to your host
*/
$archive = "../tmp/backup_{$time_stamp}.tar";
$directory = "../html/";
print "starting...";
exec( "tar cf $archive $directory 2>&1 ",$retArr, $retVal);
@JunaidQadirB
JunaidQadirB / unity-gitignore
Created March 1, 2015 14:17
Gitignore file for unity3d projects
===============
Unity generated
===============
Temp/
Library/
=====================================
Visual Studio / MonoDevelop generated
=====================================
ExportedObj/
@JunaidQadirB
JunaidQadirB / Gruntjs
Created April 17, 2015 11:00
My Gruntfile which does every thing for me
/*global module:false*/
module.exports = function (grunt) {
require('jit-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - '
+ '<%= grunt.template.today("yyyy-mm-dd") %>\n'
+ '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>'
@JunaidQadirB
JunaidQadirB / getFeedUrls.php
Created July 25, 2011 19:00
Checks whether a web site has feeds if so, grabs its url returns false otherwise
/**
* Checks whether a web site has feeds
* if so, grabs its url returns false otherwise
* @author Junaid Qadir baloch
* @version 0.1 11:12 PM 7/25/2011
* @param sting $url
* @return boolean
*/
function getFeedUrls($url)
{
@JunaidQadirB
JunaidQadirB / Uploader.php
Created July 31, 2011 17:13
The Uploader class is a simple php script that makes file uploads a bit easier.
/**
*
* The Uploader class is a simple php script that makes file
* uploads a bit easier.
* @author Junaid Qadir Baloch (shekhanzai.baloch@gmail.com)
* @version 0.1 10:18 PM 7/30/2011
*
*/
class Uploader
{
@JunaidQadirB
JunaidQadirB / song_dot_pk_player.js
Created August 23, 2011 18:11
This is a Bookmarklet which parses specific pages (those which are showing a list of linked audio files) for songs and adds to the MP# Player's (http://flash-mp3-player.net) playlist and displays the player on top of the page. * This is helpf
/*
* This is a Bookmarklet which parses specific pages (those which are showing a list of linked audio files) for songs and adds to the MP# Player's (http://flash-mp3-player.net) playlist and displays the player on top of the page.
* This is helpful suppose I want to download only the songs I like.
* @author Junaid Qadir Baloch (shekhanzai.baloch@gmail.com)
* @version 0.1 Tue Aug 23 15:04:14 PKT 2011
*
*/
javascript: (function (e, a, g, h, f, c, b, d) {
if (!(f = e.jQuery) || g > f.fn.jquery || h(f)) {
c = a.createElement("script");
@JunaidQadirB
JunaidQadirB / adb_usb.ini
Created October 9, 2015 15:36
When Xiomi device does not show in adb devices, Copy to ~/.android/adb_usb.ini
0x2717
0x0bb4
<%
SUB reacExcelFile(fileName)
'initialize variables
Dim objConn, strSQL
Dim x
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DRIVER={Microsoft Excel Driver (*.xls)}; IMEX=1; HDR=NO; "&_
"Excel 8.0; DBQ=" & Server.MapPath(fileName) & "; "
strSQL = "SELECT * FROM A1:G1000"
@JunaidQadirB
JunaidQadirB / fonts.md
Last active May 19, 2017 13:19
Fonts that support Balochi UniBal

Google Fonts That Fully Support UniBal Script

The following fonts fully support UniBal script.

Serif Fonts

Preview

@JunaidQadirB
JunaidQadirB / add_display_resolution.sh
Created April 1, 2018 20:20
Add new screen resolution
#!/bin/bash
# This detects the connected display
# xrandr | grep "\sconnected"
DISPLAY_ID="eDP-1"
xrandr --newmode "1280x720_60.00" 74.48 1280 1336 1472 1664 720 721 724 746
xrandr --addmode $DISPLAY_ID 1280x720_60.00
xrandr --output $DISPLAY_ID --mode 1280x720_60.00