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
sudo lsof -iTCP -sTCP:LISTEN -n -P |
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
/************************* | |
* Local service binding * | |
*************************/ | |
private final IBinder binder = new WorkerServiceBinder(); | |
/** | |
* Returns an instance of this service so binding components can directly call public methods of this service. | |
*/ | |
public class WorkerServiceBinder extends Binder { |
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
# encrypt | |
openssl enc -in test.txt -aes-256-cbc -pass pass:mypass -out test.txt.enc | |
# decrypt | |
openssl enc -in test.txt.enc -d -aes-256-cbc -pass pass:mypass -out test.txt | |
# valid password sources (as of OpenSSL 1.1.1, see 'man openssl' for more recent info): | |
# -pass pass:mypass | |
# -pass env:somevar | |
# -pass file:somepathname |
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
// YouTube API video uploader using JavaScript/Node.js | |
// You can find the full visual guide at: https://www.youtube.com/watch?v=gncPwSEzq1s | |
// You can find the brief written guide at: https://quanticdev.com/articles/automating-my-youtube-uploads-using-nodejs | |
// | |
// Upload code is adapted from: https://developers.google.com/youtube/v3/quickstart/nodejs | |
const fs = require('fs'); | |
const readline = require('readline'); | |
const assert = require('assert') | |
const {google} = require('googleapis'); |