Skip to content

Instantly share code, notes, and snippets.

@snhasani
snhasani / disable-apps-verification-on-mac.md
Last active August 10, 2024 08:36
Disable Apps verification in the opening on Mac
  1. Open Terminal App; enter this command
sudo nano /etc/hosts
  1. Drop fllowing line into the end of the file and save it
0.0.0.0 ocsp.apple.com
@snhasani
snhasani / .babelrc
Last active February 20, 2017 18:02
task runner stack for build static web-page
{
"presets": [
"latest"
]
}
@snhasani
snhasani / keybase.md
Created February 20, 2017 16:14
prove keybase.io

Keybase proof

I hereby claim:

  • I am snhasani on github.
  • I am naser (https://keybase.io/naser) on keybase.
  • I have a public key whose fingerprint is FA2D D98F C125 4A11 2A73 D434 DA07 9A22 0350 663C

To claim this, I am signing this object:

@snhasani
snhasani / wp-amp-plugin_rtl.css
Last active January 2, 2017 21:31
wordpress amp plugin rtl style
@font-face {
font-family: IranSans;
font-style: normal;
font-weight: 300;
src: url('../assets/fonts/iransans/IRANSansWeb_Light.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
url('../assets/fonts/iransans/IRANSansWeb_Light.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url('../assets/fonts/iransans/IRANSansWeb_Light.ttf') format('truetype');
}
# NAME REGEXP ADDRESS TTL
0 facebook.com 31.13.92.36 1d
1 twitter.com 104.244.42.193 1d
2 twitter.com 104.244.42.65 1d
3 plus.google.com 216.58.208.46 1d
4 youtube.com 216.58.208.46 1d
5 lh3.googleusercontent.com 172.217.2.1 1d
6 lh3.googleusercontent.com 216.58.213.33
@snhasani
snhasani / .linustrap
Created June 24, 2015 11:21
bash script for install essential application after setup linux
#!/bin/bash
# originally: https://github.com/taataam/helloworld
echo "Downloading GetDeb and PlayDeb"
wget http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb http://archive.getdeb.net/install_deb/playdeb_0.3-1~getdeb1_all.deb
echo "Installing GetDeb"
sudo dpkg -i getdeb-repository_0.1-1~getdeb1_all.deb

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@snhasani
snhasani / gem-http-source.md
Created February 26, 2015 09:22
change gem source url from https to http

Enter exactly following command

$ gem source -r https://rubygems.org/
$ gem source -a http://rubygems.org/
@snhasani
snhasani / gulpfile.js
Last active August 29, 2015 14:12
Gulpfile for PhoneGap App on Ripple
var gulp = require('gulp');
var path = require('path');
var o = require('open');
var ripple = require('ripple-emulator');
var webPath = function (p) { return path.join('./www/', p); };
// The default task
gulp.task('default', function() {
var options = {
@snhasani
snhasani / packge.json
Created December 28, 2014 14:09
package.json for PhoneGap App on Ripple
{
"name": "Rippler",
"version": "1.0.0",
"description": "test Ripple",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"cordova": "^4.1.2",
"gulp": "^3.8.10",
"open": "0.0.5",