Skip to content

Instantly share code, notes, and snippets.

View nacm's full-sized avatar
🧪
Auto pilot

Ahmed Naseem nacm

🧪
Auto pilot
View GitHub Profile
@nacm
nacm / mac-vendor.txt
Created March 15, 2024 00:14 — forked from aallan/mac-vendor.txt
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
@nacm
nacm / brew-commands.txt
Created June 1, 2023 01:53
Useful homebrew command
#View packages in a tree view
brew deps --tree --installed
@nacm
nacm / PowerAutomate.js
Created February 3, 2023 03:26
Power Automate Expressions
#Extract lines from csv file using path
#Add below to compose action
#This will iterate through each line in csv file and also remove the extra line at the end
skip(split(base64ToString(body('Get_file_content')['$content']), decodeUriComponent('%0D%0A')), 1)
#Append to Array
@nacm
nacm / How-to-download-from-powerapps.js
Last active January 23, 2023 14:35
Prepare PowerApps Gallery Content for Download as csv file using Power Automate
//This is written for the blog post.
//Visit full post at: https://n-digits.com.au/blog/2023/01/23/solved-how-to-download-csv-from-power-apps-gallery/
ClearCollect(DownloadData, ForAll(Gallery8.AllItems,{
ID:ThisRecord.ID,
Column1:ThisRecord.Column1,
'Column 2':ThisRecord.Column2,
//Add As many columns here
}));
@nacm
nacm / wp-cli-commands.txt
Created April 21, 2018 04:32
wp cli scaffolding
# Generate a new plugin with unit tests
$ wp scaffold plugin n-digits
@nacm
nacm / _plugin.scss
Last active February 12, 2018 23:50
Gravity form boostrap 4. Updating credit card fields
/* stylelint-disable */
.gform_fields {
@extend .list-unstyled;
@extend .row;
input, select, textarea {
@extend .form-control;
}
textarea {
<?php
// filter the Gravity Forms button type
add_filter("gform_submit_button_1", "form_submit_button", 10, 2);
function form_submit_button($button, $form){
return "<button class='button' id='gform_submit_button_{$form["id"]}'><span><i class='fa fa-share fa-2x'></i> Send </span></button>";
}
//Change hook of gform_submit_button_X to the form that you are using
//Change <span><i class='fa fa-share fa-2x'></i> Send </span> to Font awesome and text of your choice
@nacm
nacm / gallery.js
Last active June 28, 2017 03:18
fixing multiple gallery issue with magnific-popup