Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Mouad Cherkaoui mouadcherkaoui

🎯
Focusing
View GitHub Profile
View chipsec-out.txt
################################################################
## ##
## CHIPSEC: Platform Hardware Security Assessment Framework ##
## ##
################################################################
[CHIPSEC] Version 1.5.8
[CHIPSEC] Arguments: 

****** Chipsec Linux Kernel module is licensed under GPL 2.0
[CHIPSEC] API mode: using CHIPSEC kernel module API
View opencore-2021-01-13-170307.txt
00:000 00:000 AAPL: #[EB|LOG:INIT] 2021-01-13T17:03:12
00:059 00:059 AAPL: #[EB|VERSION] <"boot.efi 495.40.10~62 (Official), built 2020-10-22T14:08:24-0700">
00:118 00:059 AAPL: #[EB|BUILD] <"BUILD-INFO[300]:{"DisplayName":"boot.efi","DisplayVersion":"495.40.10~62","RecordUuid":"556801AA-BF30-431E-9BC2-AF24D3AF99ED","BuildTime":"2020-10-22T14:08:24-0700","ProjectName":"efiboot","ProductName":"boot.efi","SourceVersion":"495.40.10","BuildVersion":"62","BuildConfiguration":"Release","BuildType":"Official"}">
00:186 00:067 AAPL: #[EB|CFG:DEV] r2 0x0 0x0
00:245 00:059 AAPL: #[EB|H:IS] 0
00:305 00:059 AAPL: #[EB|WL:MODE] 0
00:365 00:059 AAPL: #[EB|CFG:ARG] boot-save-log 0x0000000000000002 (0x0000000000000002 < 0xFFFFFFFFFFFFFFFF) default
00:433 00:068 AAPL: #[EB|CFG:ARG] wake-save-log 0x0000000000000002 (0x0000000000000002 < 0x0000000000000002) default
00:492 00:059 AAPL: #[EB|CFG:ARG] console 0x0000000000000001 (0x0000000000000001 < 0x0000000000000001) default
00:551 00:059 AAPL: #[EB|CFG:ARG] serial
View opencorelog-2020-12-11.log
00:000 00:000 OC: OpenCore DBG-065-2020-12-24 is loading in Optional mode (0/0)...
00:075 00:075 OC: Boot timestamp - 2020.12.24 20:37:59
00:159 00:083 OCCPU: MP services threads 8 (enabled 8) - Success
00:235 00:076 OCCPU: MP services Pkg 1 Cores 4 Threads 2 - Success
00:311 00:075 OCCPU: Found Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
00:387 00:075 OCCPU: Signature 706E5 Stepping 5 Model 7E Family 6 Type 0 ExtModel 7 ExtFamily 0 uCode A0
00:469 00:082 OCCPU: EIST CFG Lock 0
00:543 00:073 OCCPU: Ratio Min 4 Max 15 Current 35 Turbo 39 38 35 35
00:617 00:073 OCCPU: TSC Adjust 0
00:699 00:082 OCCPU: Queried Core Crystal Clock Frequency 38400000Hz
View AzureMgmtFluentNsgs.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Microsoft.Azure.Management.Fluent;
using Microsoft.Azure.Management.Network;
using Microsoft.Azure.Management.Network.Fluent;
namespace AzureManagmentExample
{
View powershell-script-webcam.ps1
Get-PnpDevice -FriendlyName *webcam*
Get-PnpDevice -FriendlyName *webcam* -Class Camera,image
Disable-PnpDevice -InstanceId (Get-PnpDevice -FriendlyName *webcam* -Class Image -Status OK).InstanceId
Disable-PnpDevice -InstanceId (Get-PnpDevice -FriendlyName *webcam* -Class Camera -Status OK).InstanceId
Enable-PnpDevice -InstanceId (Get-PnpDevice -FriendlyName *webcam* -Class Image -Status Error).InstanceId
Enable-PnpDevice -InstanceId (Get-PnpDevice -FriendlyName *webcam* -Class Camera -Status Error).InstanceId
View UpdateDrivers.ps1
#search and list all missing Drivers
$Session = New-Object -ComObject Microsoft.Update.Session
$Searcher = $Session.CreateUpdateSearcher()
$Searcher.ServiceID = '7971f918-a847-4430-9279-4a52d1efe18d'
$Searcher.SearchScope = 1 # MachineOnly
$Searcher.ServerSelection = 3 # Third Party
$Criteria = "IsInstalled=0 and Type='Driver' and ISHidden=0"
@mouadcherkaoui
mouadcherkaoui / Program.cs
Created Jul 13, 2020 — forked from miteshsureja/Program.cs
How to execute PowerShell script or cmdlets from C# code?
View Program.cs
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Management.Automation;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
View MainWindow.xaml
<Window x:Class="DataGridCheckBox.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DataGridCheckBox"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Window.DataContext>
<local:MainWindowViewModel></local:MainWindowViewModel>
@mouadcherkaoui
mouadcherkaoui / Sample.fsproj
Created Mar 27, 2020 — forked from awright18/Sample.fsproj
F# http reqeust with HttpClient
View Sample.fsproj
<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="rss.fs" />
@mouadcherkaoui
mouadcherkaoui / gh-pages.md
Created Mar 20, 2020 — forked from ramnathv/gh-pages.md
Creating a clean gh-pages branch
View gh-pages.md

Creating a clean gh-pages branch

This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]

cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html