Skip to content

Instantly share code, notes, and snippets.

View smdpro's full-sized avatar
🏠
Working from home

Samad Rahimi smdpro

🏠
Working from home
  • Freelance
  • Turkey
View GitHub Profile
@smdpro
smdpro / gist:01db4b6eb4312aa96b70ea0320ee2f07
Created March 15, 2022 14:38 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@smdpro
smdpro / license-badges.md
Created March 10, 2022 01:34 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@smdpro
smdpro / cloudSettings
Last active November 14, 2021 11:03 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
{"lastUpload":"2021-11-14T11:02:53.120Z","extensionVersion":"v3.4.3"}
@smdpro
smdpro / node_nginx_ssl.md
Created October 11, 2020 16:15 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

a
@smdpro
smdpro / nginx.conf
Created November 15, 2019 12:24 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@smdpro
smdpro / vscode_shortcuts.md
Created November 3, 2019 02:52 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@smdpro
smdpro / iran-sanctions_blocker-sites.csv
Created August 31, 2018 00:13 — forked from alibo/iran-sanctions_blocker-sites.csv
List of sites which block IPs come from Iran [UPDATING... (Aug 20, 2018)] #SANCTIONS
Title URI
Flurry by Yahoo https://dev.flurry.com/secure/signup.do
Google NikCollection https://dl.google.com/edgedl/photos/nikcollection-full-1.2.11.dmg
Bitbucket http://bitbucket.org/
SoftLayer http://softlayer.com/
VirtualBox http://download.virtualbox.org/virtualbox/5.0.16/VirtualBox-5.0.16-105871-OSX.dmg
Docker Hub https://hub.docker.com/
Oracle http://oracle.com/
Java http://java.com
Sun http://sun.com
@smdpro
smdpro / 0_reuse_code.js
Created March 12, 2017 03:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@smdpro
smdpro / StartAndEndOfWeek.cs
Last active January 18, 2017 08:45
Get start and end dates of a week in c#
public static DateTime[] GetStartAndEndDatesOfCurrentWeek(int weekNum = 0)
{
var currentDate = DateTime.Now.Date.AddDays(weekNum * 7);
var dayOfWeekForcurrentDate = (int)currentDate.DayOfWeek;
var startDateOfWeek = currentDate.Date.AddDays(dayOfWeekForcurrentDate - 6);
var endDateOfWeek = currentDate.Date.AddDays(6 - dayOfWeekForcurrentDate);
return new[] { startDateOfWeek.Date , endDateOfWeek.Date };
}
}
// how to call method