Skip to content

Instantly share code, notes, and snippets.

View azimsai's full-sized avatar

Azeem S azimsai

View GitHub Profile

Keybase proof

I hereby claim:

  • I am azimsai on github.
  • I am azimsai (https://keybase.io/azimsai) on keybase.
  • I have a public key whose fingerprint is F05D 8BA2 28B6 8E59 A55D 88BF 42A8 B091 1F8E 6228

To claim this, I am signing this object:

@azimsai
azimsai / update.sh
Created October 18, 2018 08:59 — forked from ctrleffive/update-vs-code.md
Update VS Code
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb
sudo dpkg -i /tmp/code_latest_amd64.deb
@azimsai
azimsai / gist:82c574e4a98df5af8fa9
Created May 13, 2015 07:07
How-to Manually Create a Custom Application Launcher on Pantheon Desktop
1)Open Terminal Window
Ctrl+Alt+t
2)Create Launcher Manually with Editor
sudo su -c "nano /usr/share/applications/firefox.desktop"
Add below content to the file
[Desktop Entry]
Name=Firefox
Comment=Firefox Browser
@azimsai
azimsai / gist:e4978ff4cea4c4196226
Last active August 29, 2015 14:01 — forked from Suave/gist:6127873
Truncate all tables in database
mysql -Nse 'show tables' DATABASE_NAME | while read table; do mysql -e "truncate table $table" DATABASE_NAME; done
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
* Updated for Laravel 4.1.22 (2014-02-03)
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
exit('Only to be used as an helper for your IDE');
# Set root
sudo su
# Install Composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
# Exit root
exit
@azimsai
azimsai / elementary open as root context menu
Last active August 29, 2015 13:56
elementary open as root context menu
In order to create 'Open folder as root' context menu command - and in order to create any new such command - a new *.contract file has to be creaetd in /usr/share/contractor.
For 'Open folder as root' - that file would have to contain something like
sudo gedit /usr/share/contractor/terminal.contract
[Contractor Entry]
Name=Open folder as root
Icon=gksu-root-terminal
How to crack Sublime Text (2 and 3)
===
1. Open Sublime in a HEX editor (the executable file)
2. Find 43 33 33 42 30 32
3. Replace in the string above 33 42 with 32 42
4. Save
5. Enter the license below:
—–BEGIN LICENSE—–