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 / pk.txt
Created May 2, 2022 19:22 — forked from id4ehsan/pk.txt
Product keys
Product
GVLK
Office 2013 Professional Plus
YC7DK-G2NP3-2QQC3-J6H88-GVGXT
Office 2013 Standard
@default-writer
default-writer / show_illegal_ascii_characters.py
Last active April 19, 2022 19:22
Print error illegai ASII characters in files in recursively
import os
import json
import sys
error = False
def remove_bom(fname):
global error
try:
@default-writer
default-writer / git-clear-tags.sh
Last active April 10, 2022 14:27 — forked from okunishinishi/Remove all git tags
git-clear-tags.sh
#!/usr/bin/env bash
#Delete local tags.
git tag -d $(git tag -l)
#Fetch remote tags.
git fetch
#Delete remote tags.
git push origin --delete $(git tag -l) # Pushing once should be faster than multiple times
#Delete local tags.
git tag -d $(git tag -l)
@default-writer
default-writer / ps.ps1
Created March 18, 2022 13:43
PowerShell
function Connect-ToTaskScheduler($ComputerName,$Credential)
{
$scheduler = New-Object -ComObject Schedule.Service
if ($ComuterName) {
} else {
$ComuterName = [System.Net.Dns]::GetHostName()
}
if ($Credential) {
$NetworkCredential = $Credential.GetNetworkCredential()
$scheduler.Connect($ComputerName,
@default-writer
default-writer / readme.md
Created January 7, 2022 23:23
Gnome fix for login at High DPI displays
sudo nano /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml
<key name="scaling-factor" type="u">
<default>2</default>
@default-writer
default-writer / enable_f1_f19_apple_kbd.sh
Created January 7, 2022 11:40
Enables functional keys without Fn + Key for Apple Wired Keyboard on Ubuntu
#!/usr/bin/bash
set -e
# Enables functional keys without Fn + Key
# https://help.ubuntu.com/community/AppleKeyboard#Change_Function_Key_behavior
sudo sh -c "echo 2 > /sys/module/hid_apple/parameters/fnmode"
@default-writer
default-writer / vsc-extensions.txt
Created July 15, 2021 23:38
VScode extnsions list
antfu.icons-carbon
aslamanver.vsc-export
bierner.markdown-mermaid
bpruitt-goddard.mermaid-markdown-syntax-highlighting
christian-kohler.path-intellisense
codezombiech.gitignore
craigthomas.supersharp
Dart-Code.dart-code
Dart-Code.flutter
DavidAnson.vscode-markdownlint
@default-writer
default-writer / convert.ps1
Last active May 4, 2021 19:33
How to Convert VHD to VMDK with qemu-img on Windows
.\qemu-img convert -p '..\Windows Server 2008 Enterprise Edition x86\Virtual Hard Disks\Windows2008Fullx86Ent.vhd' -O vmdk '..\Windows2008Fullx86Ent.vmdk'
@default-writer
default-writer / lbForth.c
Created December 26, 2020 11:07 — forked from lbruder/lbForth.c
A minimal Forth compiler in ANSI C
/*******************************************************************************
*
* A minimal Forth compiler in C
* By Leif Bruder <leifbruder@gmail.com> http://defineanswer42.wordpress.com
* Release 2014-04-04
*
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial
*
* PUBLIC DOMAIN
*
@echo off
title Activate Windows 7 / 8 / 8.1 / 10 for FREE!&cls&echo =====================================&echo #Copyright: MSGuides.com&echo =====================================&echo.&echo #Supported products:&echo - Windows 7 Professional&echo - Windows 7 Professional N&echo - Windows 7 Professional E&echo - Windows 7 Enterprise&echo - Windows 7 Enterprise N&echo - Windows 7 Enterprise E&echo - Windows 8 Core&echo - Windows 8 Core Single Language&echo - Windows 8 Professional&echo - Windows 8 Professional N&echo - Windows 8 Professional WMC&echo - Windows 8 Enterprise&echo - Windows 8 Enterprise N&echo - Windows 8.1 Core&echo - Windows 8.1 Core N&echo - Windows 8.1 Core Single Language&echo - Windows 8.1 Professional&echo - Windows 8.1 Professional N&echo - Windows 8.1 Professional WMC&echo - Windows 8.1 Enterprise&echo - Windows 8.1 Enterprise N&echo - Windows 10 Home&echo - Windows 10 Home N&echo - Windows 10 Home Single Language&echo - Windows 10 Home Country Specific&echo - Windows 10 Professional&echo