Skip to content

Instantly share code, notes, and snippets.

View hosseinsalemi's full-sized avatar

Hossein Saleminejad hosseinsalemi

View GitHub Profile
@nasirhafeez
nasirhafeez / openvpn-server-for-mikrotik-on-docker.md
Last active June 10, 2024 00:28
OpenVPN Server for Mikrotik on Docker
@farmad
farmad / BIN_list.json
Last active April 18, 2019 17:45
List of Issuer Identification Numbers
{
"610433": "mellat",
"589905": "melli",
"170019": "melli",
"603799": "melli",
"603769": "saderat",
"639217": "keshavarzi",
"603770": "keshavarzi",
"589210": "sepah",
"627353": "tejarat",
@rnjailamba
rnjailamba / solrMysqlSetup.md
Last active March 16, 2024 14:10
Solr + Mysql + Data Import Handler + Delta Import Handler [ Version 5.5.0 of solr ]
@onevcat
onevcat / Jitouch-Restarter
Created February 15, 2016 04:14
This gist kill Jitouch and then restart it. It solves problems when using Jitouch with Magic Trackpad 2
pkill -f "Jitouch"
sleep 5
nohup ~/Library/PreferencePanes/Jitouch.prefPane/Contents/Resources/Jitouch.app/Contents/MacOS/Jitouch > /dev/null 2>&1 &
@v1shwa
v1shwa / apache-permission.sh
Last active October 28, 2023 08:03
Ubuntu: Fix for Permissions denied on /var/www/html
# 1. Change owner of /var/www/html directory to apache user, here: www-data
sudo chown -R www-data:www-data /var/www/html
# 2. Allow Group to edit
sudo chmod -R 775 /var/www/html
# 3. Add yourself to apache group(www-data)
sudo usermod -a -G www-data ${USER}
@salcode
salcode / .gitignore
Last active February 10, 2024 10:56
See https://salferrarello.com/wordpress-gitignore/ for the latest version of my WordPress .gitignore file
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@sturobson
sturobson / gulpfile.js
Last active October 9, 2020 13:01
My gulpfile.js (so far, so simple). Compiles Sass (removes erroneous _partial compilation), autoprefixes the CSS then minifies the CSS into the folder 'dist/CSS'. Uglifys JS into the foloder 'dist/JS'. Minifys SVGs using SVGO, Minifys images with imagemin. Adds gulp-size to calculate project size. Runs development and production tasks
// Deep Breaths //
//////////////////
// Gulp
var gulp = require('gulp');
// Sass/CSS stuff
var sass = require('gulp-sass');
var prefix = require('gulp-autoprefixer');
var minifycss = require('gulp-minify-css');
@timhettler
timhettler / reveal.js
Created March 12, 2012 16:24
Animating an element from a fixed height to "auto" height using jQuery
var $selector = $('div');
$selector.data('oHeight',$selector.height()).css('height','auto').data('nHeight',$selector.height()).height($selector.data('oHeight')).animate({height: $selector.data('nHeight')},400);
@eAmin
eAmin / en2fa.js
Created January 19, 2011 12:33
English Digit to Persian
/*
* English digit to persian
* Copyright(C) 2009 by Amin Akbari [ http://eAmin.me/ ]
* Licensed under the MIT Style License [http://www.opensource.org/licenses/mit-license.php]
*
*/
String.prototype.toFaDigit = function() {
return this.replace(/\d+/g, function(digit) {
var ret = '';