This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string GetClientIp() | |
{ | |
var httpContext = _httpContextAccessor?.HttpContext; | |
if (httpContext == null) | |
return null; | |
var header = httpContext.Request.Headers["CF-Connecting-IP"].FirstOrDefault() | |
?? httpContext.Request.Headers["X-Forwarded-For"].FirstOrDefault() | |
?? httpContext.Request.Headers["HTTP_TRUE_CLIENT_IP"].FirstOrDefault() | |
?? httpContext.Connection.RemoteIpAddress?.ToString(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// نام کشورهای جهان انگلیسی و فارسی جاوا اسکریپت | |
// © mehdico | |
let countries = { | |
'Zimbabwe' : 'زیمبابوه', | |
'Zambia' : 'زامبیا', | |
'Vietnam' : 'ویتنام', | |
'Venezuela' : 'ونزوئلا', | |
'Vatican City' : 'شهر واتیکان', | |
'Uzbekistan' : 'ازبکستان', | |
'Uruguay' : 'اروگوئه', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// نام فارسی کشورهای جهان بر اساس استاندارد ایزو ۳۱۶۶-۱ آلفا-۲ | |
let countries = { | |
'AD' : 'آندورا', | |
'AE' : 'امارات متحده عربی', | |
'AF' : 'افغانستان', | |
'AG' : 'آنتیگوا و باربودا', | |
'AI' : 'آنگویلا', | |
'AL' : 'آلبانی', | |
'AM' : 'ارمنستان', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-12-04T16:28:07.126Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.graphics.BlendMode; | |
import android.graphics.BlendModeColorFilter; | |
import android.graphics.PorterDuff; | |
import android.graphics.drawable.Drawable; | |
import android.os.Build; | |
public class FilterHelper { | |
public enum Mode { | |
CLEAR, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for filename in /Applications/*.app; do | |
echo "$filename"; | |
eval xattr -cr "$filename"; | |
done | |
echo "\nCOMPLETED!"; |