Skip to content

Instantly share code, notes, and snippets.

View ctrleffive's full-sized avatar
🎯
Focusing

Chandu J S ctrleffive

🎯
Focusing
View GitHub Profile

📜 Useful Commands

🍎 macOS & Linux Commands

  1. Find and move files to certain folder recursively.
find "FOLDER_PATH_TO_LOOK" -type f -name "*.EXT" -exec mv {} "FOLDER_PATH_TO_MOVE" \;

🚀 GitHub Actions Deployment

Static website deployment with GitHub Actions

1. Generate Keys

Excecute below command in your PC to get all keys.

ssh-keygen -t rsa -b 4096 -C "$(git config user.email)" -f gh-pages -N ""

🗒️ VSCode Linux Update

wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb ; sudo dpkg -i /tmp/code_latest_amd64.deb
@ctrleffive
ctrleffive / android.java
Last active April 21, 2023 03:19
Flutter platform channel sample code.
// ...
import io.flutter.app.FlutterActivity;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
import io.flutter.plugin.common.MethodChannel.Result;
// ...
public class MainActivity extends FlutterActivity {

💴 numToWords

Dart function for converting Indian currency from digits to words.

numToWords(amount, pai = false) {
  const real = amount.split('.')
  amount = real[0]
  let words = []
  words[0] = ''
  words[1] = 'One'