Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
| # VIM | |
| sudo apt-get install vim -y | |
| # LAMP | |
| sudo apt-get update -y | |
| sudo apt-get install apache2 php5 mysql-server libmysql-java ant unzip -y | |
| sudo /etc/init.d/mysql start | |
| # Java | |
| sudo apt-get install openjdk-7-jdk |
Getting started:
Related tutorials:
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
| if(msg.body=='!clearChats'){ | |
| //clearing ALL CHATS | |
| msg.reply("Clearing chats !") | |
| const chats = await client.getChats(); | |
| for (let index = 0; index < chats.length; index++) { | |
| let chat = chats[index] | |
| /* | |
| UNCOMMENT IF YOU WANT CLEAR ONLY PRIVATE CHATS |
| var stickerExif = 0 // to prevent stickers with the same name | |
| const webp = require('webp-converter'); | |
| const Exif = require('/path/to/exif.js'); //https://gist.github.com/JoseHM8A/14a09d7afa34e63eb2c57492d59c2ddd | |
| const exif = new Exif() | |
| stickerExif++ | |
| const packname = 'Pack Name' | |
| const autor = 'Author' | |
| exif.create(packname, autor, `stc_${author}${stickerExif}`) | |
| const encryptMedia = isQuotedImage ? await quotedMsg.downloadMedia() : await msg.downloadMedia() |
| /** | |
| * Originally created by cwke | |
| * Reuploaded by Waxaranai | |
| * Recoded by SlavyanDesu | |
| * | |
| * GitHub is an open-source community, so why are you so triggered when someone shared some simple code? | |
| */ | |
| const fs = require('fs-extra') | |
| const packID = 'com.snowcorp.stickerly.android.stickercontentprovider b5e7275f-f1de-4137-961f-57becfad34f2' |
| const { decryptMedia } = require('@open-wa/wa-decrypt') | |
| const mime = require('mime-types') | |
| const nrc = require('node-run-cmd') | |
| const fs = require('fs-extra') | |
| const sizeOf = require('image-size') | |
| const buffer = await decryptMedia(message) | |
| const fileName = `temp${from}.${mime.extension(mimetype)}` | |
| fs.writeFile(fileName, buffer, function (err) {}) | |
| await nrc.run(`convert ${fileName} ${from}.png`) |
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Cambridge Silicon Radio\Harmony\Default] | |
| "OSD"=dword:00000000 |