Content :
- Beta version of iTerm2 has built-in support for system appearance and will change themes in sync with macOS;
- Setup dark-mode-notify to launch on start and call a custom shell script (eg: appearance-change.sh) when appearance changes;
- Update the script as required
NOTE:
- neovim v0.8.0+ can issue self referencing commands. For example, try putting this into your
init.luato prevent nested vim instances when using built-in terminal:vim.env.EDITOR = string.format('nvim --server %s --remote --', vim.api.nvim_get_vvar('servername'))
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
| /** | |
| * MySQL Multi-Line Insert | |
| * ======================= | |
| * See: https://gist.github.com/ProjectCleverWeb/d2362b082af1d7054ebfd464f202ec1b | |
| * | |
| * Notes: | |
| * - I used a output buffer variable since in most languages variables are | |
| * significantly faster than function calls and in this case the syntax for | |
| * using a variable was both shorter and easier to read. | |
| * - Table & column names are quoted to help improve compatibility, but in most |
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
| (async function generateReplies(document) { | |
| // https://conventionalcomments.org/#labels | |
| const LABEL = { | |
| praise: "praise", | |
| nitpick: "nitpick", | |
| suggestion: "suggestion", | |
| issue: "issue", | |
| todo: "todo", | |
| question: "question", | |
| thought: "thought", |
I this is part of the first node web scraper I created with axios and cheerio. I took out all of the logic, since I only wanted to showcase how a basic setup for a nodejs web scraper would look.
const cheerio = require('cheerio'),
axios = require('axios'),
url = `<url goes here>`;
Your school or company network may block the access to a few specific websites. To solve this problem, I'd highly recommend Shadowsocks, since it is the easiest proxy tool I've ever found, and it's FREE (of course iff you have your own server running).
First, ssh to your server, and make sure you have Python and pip installed. If you have Python but not pip, install it using the following command
$ sudo apt-get install python3-pip
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
| It is an simple implementation of simple client server chat system where once client are connected to server, | |
| then they can communicate with each other. | |
| The client first needs to connect with the server and can then issue two commands - | |
| 1. GET - This command fetches the list of client's that are currently connected to server. | |
| 2. SEND (client number) (message) - SEND followed by client number which can be be used to send the meassage | |
| to particular to that particular client number. | |
| (please issue the complete send command in one go). | |
| To run these program first run ChatServer.c and then run multiple instatnces of ChatServer.c . |
- Login to https://web.telegram.org
- Copy-paste contents of
telegram-scripts.jsinto JS console - Run
showContacts()to get the list of contacts with ids - Run
saveChat(userId)whereuserIdis the id from step 3
Process can take a while, check console for progress. Occasionall FLOOD_WAIT errors are expected. Once done, browser will download the JSON file.
NewerOlder