Skip to content

Instantly share code, notes, and snippets.

View tamimibrahim17's full-sized avatar
🎯
Focusing

Tamim Ibrahim tamimibrahim17

🎯
Focusing
  • Tikweb
  • Bangladesh
View GitHub Profile
@tamimibrahim17
tamimibrahim17 / google.sh
Created March 29, 2018 10:56 — forked from deanet/google.sh
Uploading File into Google Drive (because grive too many dependencies qt, xorg ? )
#!/bin/bash
## uploading to google
## rev: 22 Aug 2012 16:07
det=`date +%F`
browser="Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1"
username="[email protected]"
password="password"
accountype="HOSTED" #gooApps = HOSTED , gmail=GOOGLE
@tamimibrahim17
tamimibrahim17 / ffmpeg-compress-mp4
Created February 26, 2018 18:30 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@tamimibrahim17
tamimibrahim17 / convert-mp3-frm-webm.txt
Created February 24, 2018 17:27
Convert webm to mp3
FILE="the-file-location.webm"
ffmpeg -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3"
Notice: wpdb::prepare was called incorrectly. Unsupported value type (object). Please see Debugging in WordPress for more information. (This message was added in version 4.8.2.) in /srv/www/idapublishing.shop/www/wordpress/wp-includes/functions.php on line 4147
Warning: mysqli_real_escape_string() expects parameter 2 to be string, object given in /srv/www/idapublishing.shop/www/wordpress/wp-includes/wp-db.php on line 1102
Notice: Trying to get property of non-object in /srv/www/idapublishing.shop/www/wordpress/wp-content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php on line 559
Warning: Illegal offset type in isset or empty in /srv/www/idapublishing.shop/www/wordpress/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 247
Notice: wpdb::prepare was called incorrectly. Unsupported value type (object). Please see Debugging in WordPress for more information. (This message was added in version 4.8.2.) in /srv/w
@tamimibrahim17
tamimibrahim17 / readme.md
Created October 28, 2017 07:28 — forked from hitautodestruct/readme.md
Generate a custom structure for Wordpress menus.

This gist is for showing an example of a custom wordpress menu.

If you want to get more from the menu item simply have a look at the $item object. i.e:

// Will return a large object with lots of props like title, url, description, id etc.
var_dump( $item );

This code works on Wordpress 4.1.1 as of 31st of March 2015

@tamimibrahim17
tamimibrahim17 / PowerShell-profile.ps1
Created May 23, 2017 05:09 — forked from PierreMage/PowerShell-profile.ps1
Make your Windows command line better with doskey
# http://technet.microsoft.com/en-us/library/ee692685.aspx
# F7 = history
# Alt+F7 = history -c
# F8 = Ctrl+R
Set-Location C:
# Easier navigation
Set-Alias o start
function oo {start .}
@tamimibrahim17
tamimibrahim17 / dispatch.py
Created April 26, 2017 11:29 — forked from aortbals/dispatch.py
Synchronize two folders using python.
#! /usr/bin/python
# Dispatch - synchronize two folders
import os
import filecmp
import shutil
from stat import *
class Dispatch:
''' This class represents a synchronization object '''
/* Common styles for all types */
.bs-callout {
padding: 20px;
margin: 20px 0;
border: 1px solid #eee;
border-left-width: 5px;
border-radius: 3px;
}
.bs-callout h4 {
margin-top: 0;
function __construct( $config ) {
$this->providers = $config['providers'];
$this->provider = $config['provider'];
// Actions and filters here
}
@tamimibrahim17
tamimibrahim17 / README.md
Created April 3, 2017 06:11 — forked from raecoo/README.md
Surge config

Install Configurations

  1. Create your own start.conf:
  2. Download rules.conf
  3. Tap start.conf in the configuration list, then tap Start button.

Update Rules