Activate windows https://medium.com/wireless-bidet/how-to-activate-windows-10-using-command-prompt-9c5d248f3420
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExecutionPolicy RemoteSigned | |
choco install git -y | |
choco install postgresql | |
choco install nvm -y | |
choco install figma -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#My aliases | |
alias gs='git status -sb' | |
alias gaa='git add --all' | |
alias gc='git commit -m $2' | |
alias gp='git push' | |
alias gpo='git push origin' | |
alias gpl='git pull' | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias ls='ls -F --color=auto --show-control-chars' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Determine whether it is a light theme | |
/// </summary> | |
/// <returns></returns> | |
/// <exception cref="InvalidOperationException"></exception> | |
public static bool IsLightTheme() | |
{ | |
using (var personalizeKey = | |
Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize", | |
false)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class GraphicsExtension | |
{ | |
private static GraphicsPath GenerateRoundedRectangle( | |
this Graphics graphics, | |
RectangleF rectangle, | |
float radius) | |
{ | |
float diameter; | |
GraphicsPath path = new GraphicsPath(); | |
if (radius <= 0.0F) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://drive.google.com/drive/folders/1H_pSvuuaHlfHedAWQBz5ey1Pz92v5GGy?usp=sharing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
namespace SchemaSplitter | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function validateNumericBox(elm){ | |
$(elm).on('keyup', (e)=>{ | |
e.preventDefault() | |
let rate = $(elm).val() | |
if(!isNormalInteger(rate)){ | |
$(elm).val(0); | |
}else{ | |
$(elm).val(rate.replace(/^0+/, "")); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# █▄▄ █░█ █▀▄▀█ █▀█ ▄▄ █░█ █▀▀ █▀█ █▀ █ █▀█ █▄░█ | |
# █▄█ █▄█ █░▀░█ █▀▀ ░░ ▀▄▀ ██▄ █▀▄ ▄█ █ █▄█ █░▀█ | |
# | |
# Description: | |
# - This script automates bumping the git software project's version using automation. | |
# - It does several things that are typically required for releasing a Git repository, like git tagging, | |
# automatic updating of CHANGELOG.md, and incrementing the version number in various JSON files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Thanks goes to @pete-otaqui for the initial gist: | |
# https://gist.github.com/pete-otaqui/4188238 | |
# | |
# Original version modified by Marek Suscak | |
# | |
# works with a file called VERSION in the current directory, | |
# the contents of which should be a semantic version number | |
# such as "1.2.3" or even "1.2.3-beta+001.ab" |
NewerOlder