- Download OpenSSH for Windows and install it.
- Setup the environment variables needed to run the SSH Agent by opening a command line shell, and running
ssh-agent -s
. This will output 2 environment variables that you can set by runningset SSH_AUTH_SOCK=value_here
andset SSH_AGENT_PID=value_here
. - In the command line shell, run
ssh-agent
to start the SSH Agent.
This file contains 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
function* getResponse() { | |
yield new Promise(resolve => { | |
request('example.com', res => { | |
resolve(); | |
}); | |
}); | |
// you can have more functions. It's just a example. just do it | |
// yield new Promise .... | |
} |
کد زیر رو دانلود یا کپی کنید بعدش تو ترمینال chmod +x tltweak.sh ./tltweak.sh
یه شماره وارد کنید مثلا ۲ که اسم تلگرامتون بشه Telegram 2 ایکون تو دسک تاپ ایجاد شد و همچنین تو منو اپ هاتون هم میاد
This file contains 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
/** | |
* Sort array of objects based on another array | |
*/ | |
function mapOrder (array, order, key) { | |
array.sort( function (a, b) { | |
var A = a[key], B = b[key]; | |
This file contains 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 hasBlobConstructor = typeof(Blob) !== 'undefined' && (function () { | |
try { | |
return Boolean(new Blob()); | |
} catch (e) { | |
return false; | |
} | |
}()); | |
let hasArrayBufferViewSupport = hasBlobConstructor && typeof(Uint8Array) !== 'undefined' && (function () { | |
try { |
This file contains 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
//spam message the chats with thirugram.js | |
//open up telegram web and go to the chat you want to spam | |
//open console ( Ctrl + Shift + J ) | |
//execute the code | |
var message = ""; //spam message | |
var interval = 1 ; // in seconds | |
var count = 10 ; //number of times to send | |
var notifyInterval = 5 ; //notify | |
var i = 0 ; | |
var timer = setInterval(function(){ |
This file contains 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
@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ } | |
@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ } | |
@media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ } | |
@media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ } | |
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ } | |
@media (min-width:1281px) { /* hi-res laptops and desktops */ } |
This file contains 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 mongoose, {Schema} from 'mongoose' | |
export const ServiceSchema = new Schema({ | |
displayName: {type: String, required: true, unique: true} | |
}) | |
ServiceSchema.set('toObject', { | |
transform: function (doc, ret) { | |
ret.id = ret._id | |
delete ret._id |
OlderNewer