Skip to content

Instantly share code, notes, and snippets.

@casper392945
casper392945 / windows_activation.md
Created October 18, 2023 03:12
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

@casper392945
casper392945 / text-underline.html
Created October 24, 2020 11:17 — forked from artemsheludko/text-underline.html
Альтернатива text-decoration: underline
// HTML
<p class="pretty-text-underline">Pretty text underline without clipping descending letters.</p>
// CSS
.pretty-text-underline {
display: inline;
font-size: 1.25rem;
text-shadow: 1px 1px 0 #f5f6f9,
-1px 1px 0 #f5f6f9,
-1px -1px 0 #f5f6f9,
@casper392945
casper392945 / ABlob_AAD_Snapshot.json
Created October 30, 2019 09:01 — forked from satob/ABlob_AAD_Snapshot.json
Replace a value in a JSON file using Powershell
{
"name": "AzureBlobStore",
"properties": {
"type": "AzureStorage",
"activities": [
{
"type": "Copy",
"scheduler": {
"frequency": "Week",
"interval": 1
@casper392945
casper392945 / Get-WindowsVersion.ps1
Created August 20, 2019 02:48 — forked from SMSAgentSoftware/Get-WindowsVersion.ps1
Finds the Windows version including Edition, Version and OS Build numbers for local or remote computers
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$false,
ValueFromPipelineByPropertyName=$true,
ValueFromPipeline=$true
)]
[string[]]$ComputerName = $env:COMPUTERNAME
)
@casper392945
casper392945 / cisco-pwn.sh
Created August 15, 2019 05:58
Cisco router config stealer and merger via SNMP
#!/bin/bash
# rui@deniable.org
# http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15217-copy-configs-snmp.html
# http://tools.cisco.com/Support/SNMP/do/BrowseOID.do
# ftp://ftp.cisco.com/pub/mibs/oid/CISCO-CONFIG-COPY-MIB.oid
# hint: username <username> privilege 15 password 0 <password>
check_tools() {
SNMPSET=`which snmpset`
SNMPGET=`which snmpget`
@casper392945
casper392945 / index.html
Created August 7, 2019 09:36 — forked from gaearon/index.html
Add React in One Minute
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
#!/bin/bash
# Clone all github.com repositories for a specified user.
if [ $# -eq 0 ]
then
echo "Usage: $0 <user_name> "
exit;
fi
@casper392945
casper392945 / feeds.opml
Created June 18, 2019 04:48 — forked from webpro/feeds.opml
RSS Feeds (OPML)
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<title>My Feeds</title>
</head>
<body>
<outline text="24 ways" htmlUrl="http://24ways.org/" type="rss" xmlUrl="http://feeds.feedburner.com/24ways"/>
<outline text="2ality – JavaScript and more" htmlUrl="http://www.2ality.com/" type="rss" xmlUrl="http://feeds.feedburner.com/2ality"/>
<outline text="456 Berea Street" htmlUrl="http://www.456bereastreet.com/" type="rss" xmlUrl="http://feeds.feedburner.com/456bereastreet"/>
<outline text="@verekia's blog" htmlUrl="http://verekia.com" type="rss" xmlUrl="http://verekia.com/feed"/>
@casper392945
casper392945 / Get-LocalGroupMember.ps1
Created February 11, 2019 08:35 — forked from jdhitsolutions/Get-LocalGroupMember.ps1
A PowerShell function to list members of a local group such as Administrators.
#requires -version 4.0
Function Get-LocalGroupMember {
<#
.SYNOPSIS
Get local group membership using ADSI.
.DESCRIPTION
This command uses ADSI to connect to a server and enumerate the members of a local group. By default it will retrieve members of the local Administrators group.
@casper392945
casper392945 / fadein.html
Created August 6, 2018 08:42 — forked from jasonmelgoza/fadein.html
Images fade in onload
<!DOCTYPE HTML>
<html>
<head>
<title>FadingIN</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
window.onload = function() {$('.fade_img').hide().fadeIn(1000);};
});