Skip to content

Instantly share code, notes, and snippets.

View default-writer's full-sized avatar
🚩
creating an app

default-writer default-writer

🚩
creating an app
View GitHub Profile
@default-writer
default-writer / extensions
Last active December 8, 2023 10:21
Extensions Sync
{"Rounded_Corners@lennart-k":{"/org/gnome/shell/extensions/lennart-k/rounded_corners/":"[/]\ncorner-radius=12"},"[email protected]":{},"[email protected]":{"/org/gnome/shell/extensions/apps-menu/":""},"[email protected]":{"/org/gnome/shell/extensions/audio-selector/":""},"babar-lite@fthx":{},"babar@fthx":{"/org/gnome/shell/extensions/babar/":"[/]\nbottom-panel=false\ndesaturate-icons=false\ndisplay-activities=false\ndisplay-app-grid=true\ndisplay-app-menu=true\ndisplay-dash=true\ndisplay-favorites=false\ndisplay-tasks=true\ndisplay-workspaces=false\nrounded-workspaces-buttons=true"},"[email protected]":{"/org/gnome/shell/extensions/clipboard-indicator/":""},"dashbar@fthx":{},"dock-from-dash@fthx":{"/org/gnome/shell/extensions/dock-from-dash/":""},"[email protected]":{},"[email protected]":{"/org/gnome/shell/extensions/screenshot/":"[/]\nbackend='gnome-screenshot'\nclick-action='sh
@default-writer
default-writer / environment.ps1
Last active November 15, 2023 12:43
setup_environment_variables_for_build_tools
function Add-Path($Path) {
# Get the existing PATH and split it into an array
$existingPath = [Environment]::GetEnvironmentVariable("PATH", "Machine").Split([IO.Path]::PathSeparator)
# Check if the $Path is not in the existing PATH
if ($existingPath -notcontains $Path) {
# Add the $Path to the array
$existingPath += $Path
# Join the array into a string using the path separator
@default-writer
default-writer / update_rtc.sh
Last active October 9, 2023 08:06
UTC time to local time disable Ubuntu BISO setup UTC
#!/usr/bin/env bash
set -e
timedatectl set-local-rtc 1 --adjust-system-clock
hwclock --hctosys --localtime
@default-writer
default-writer / setup-cpu-frequency.ps1
Created August 17, 2023 06:51
CPU maximum frequency setup
$targetFrequency = 2266 # 2266 MHz in MHz
# Get the current power plan
$currentPlan = powercfg -getactivescheme
$guidPattern = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
$matches = $currentPlan | Select-String -Pattern $guidPattern -AllMatches
$guid = $matches.Matches[0].Value
# Set the maximum processor frequency
powercfg -setacvalueindex $guid 54533251-82be-4824-96c1-47b60b740d00 75b0ae3f-bce0-45a7-8c89-c9611c25e100 $targetFrequency
@default-writer
default-writer / list.c
Created January 18, 2023 19:56
List<T> C implementation
#include "playground/list/list.h"
#include "std/common.h"
#define MAX_MEMORY 0xffff // 64K bytes
/*private */
// global allocated memory
static void** ptr = 0;
@default-writer
default-writer / list.md
Last active February 5, 2024 14:22
Список необходимых книг для программиста по версии Диджитализируй

Список необходимых книг для программиста по версии Диджитализируй:

Общая литература

  • Чистый код. Роберт Мартин
  • Идеальный программист. Роберт Мартин
  • Чистая архитектура. Роберт Мартин
  • Идеальная работа. Роберт Мартин
  • Совершенный код. Стив Макконнелл
@default-writer
default-writer / kms
Last active August 11, 2022 04:28 — forked from vikassaini01/kms
KMS server Windows
cscript c:\Windows\System32\slmgr.vbs -skms kms.digiboy.ir
Generic Volume License Keys (GVLK)
In the tables that follow, you will find the GVLKs for each version and edition of Windows. LTSC is Long-Term Servicing Channel, while LTSB is Long-Term Servicing Branch.
Windows Server (LTSC versions)
Windows Server 2022
Operating system edition KMS Client Product Key
Windows Server 2022 Datacenter WX4NM-KYWYW-QJJR4-XV3QB-6VM33
Windows Server 2022 Standard VDYBN-27WPP-V4HQT-9VMD4-VMK7H
@default-writer
default-writer / check_file_versions.py
Created June 16, 2022 09:29
read/write Windows file attributes in build pipeline
import argparse
import os
import pandas as pd
import win32api
import json
import sys
from jsondiff import diff
#==============================================================================
def getFileProperties(fname):
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
How to define a variable.
Just stick a new node in a property group.
-->
<PropertyGroup>
<!-- This node in a property group will define a variable -->
<TestVariable>Test Variable Value</TestVariable>

激活Office2016

网上找来的,详情查看:

免KMS,命令行激活office

管理员身份运行cmd,依次输入下面命令

slmgr.vbs -upk
slmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX           #注意!!不同系统版本这里的激活码不一样,请往下翻寻找表格!
slmgr.vbs -skms kms.cangshui.net