Skip to content

Instantly share code, notes, and snippets.

View JimmyJames404's full-sized avatar
:shipit:
Doing tons of things

Jimmy James JimmyJames404

:shipit:
Doing tons of things
View GitHub Profile
<#
--------------------------------------
MR. UPDATER
--------------------------------------
1. Call to Check_OS
2. Sets variables for log file path & current timestamp.
3. Retrieves operating system version using `Get-CimInstance` cmdlet & stores in `$osVersion` variable.
4. Extracts numeric version from `$osVersion` variable & stores in `$osVersionNum`.
5. Script retrieves list of updates using `Get-WmiObject` cmdlet & assigns to `$updates` variable.
6. Checks if script is running with administrative privileges using ` [Secury.Principal. WindowsPrincipal] ` & `[Secury.Principal.WindowsIdenty]` classes.
@JimmyJames404
JimmyJames404 / information-security-privacy-policy.md
Created June 21, 2022 14:44
Information Security Privacy Policy

{{organization.name}} Information Security Policy

1.0 Purpose

The purpose of this policy is to direct the design, implementation and management of an effective Information Security Program, which ensures that {{organization.name}}’s information assets are appropriately identified, recorded, and afforded suitable protection at all times. This document sets forth certain principles regarding the responsible use of information by {{organization.name}} and outlines the roles and responsibilities of personnel to protect the confidentiality, integrity, and availability of {{organization.name}}’s resources and data.

2.0 Scope

This policy covers {{organization.name}}’s information and information systems, including information and information systems used, managed, or operated by a contractor or other vendors and applicable to all {{organization.name}} employees, contractors, and other users of {{organization.name}}’s information and information systems.

  from flashgeotext.geotext import GeoText

  geotext = GeoText()


  input_text = "Senior Enterprise Mobility Engineer New York, New York, United States San Francisco, California, United States"
  x=geotext.extract(input_text=input_text, span_info=True)
  x=str(x)
  Word_list = x.split("'")

Compiling Programs


Now, before we can execute the hello.c program, recall that we must compile it with a compiler, translating it from source code into machine code (i.e., zeroes and ones). Execute the command below to do just that:

make hello

And then execute this one again:

 ls

This time, you should see not only hello.c but hello listed as well? You’ve now translated the source code in hello.c into machine code in hello.

@JimmyJames404
JimmyJames404 / resources.md
Last active March 17, 2023 16:24
Links to remember

Cool Links 😎


Link Description
https://markdown-it.github.io/ Make fast and easier text for any type of languaje, readme.md will look better know!
https://streamyard.com/ StreamYard is a studio to broadcast live from your browser. Interview guests, promote brands on your broadcast, and much more. Stream directly to Facebook, YouTube, LinkedIn, and other platforms.
https://www.tinkercad.com/ Tinkercad is a free and easy-to-use web application that provides the new generation of designers and engineers with the basic skills for innovation: 3D design, electronics and coding.
https://jupyterbook.org/intro.html open source project for building beautiful, publication-quality books and documents from computational material.

Install library's

sudo apt install hddtemp lm-sensors

Detect sensors

sudo sensors-detect

Then this is the one line script, that you should execute as root: sudo -i

@JimmyJames404
JimmyJames404 / FirstDocker.md
Last active October 3, 2021 19:45
First time in Docker

build an image and run it as a container

##initialize with

git

##Clone the repository by running Git in a container

docker ep repo:/git/getting-started/ .
@JimmyJames404
JimmyJames404 / gist:a1e490d2506a111572e34e8cb0943adf
Last active August 30, 2021 02:31
WSL 2 intallation is incomplete
If in windows
run powershell as administrator
write this command:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
if you wish to only install WSL 1,
you can now restart your machine and go to line -----------------
else
To update to WSL 2,restart your machine
Check requirements for running WSL 2
Before installing WSL 2, you must enable the Virtual Machine Platform optional feature.