Skip to content

Instantly share code, notes, and snippets.

@appkr
appkr / erd.md
Last active May 7, 2024 03:34
ERD in plantuml

entity entity
1 -
0 or 1 -o|
one and only 1 -||
many -{
0 or many -o{
1 or many -|{
@devomman
devomman / office-activation.md
Created May 30, 2023 11:01
Office Activation Command by Omman

Office 2021

Method 1: Using my command line

Step 1.1: Open cmd program with administrator rights.

  • First, you need to open cmd in the admin mode, then run all commands below one by one.

Step 1.2: Get into the Office directory in cmd.

  • For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16

Arlecchino

  • Q 118 Frames
  • E 37 Frames
  • Assuming both parts of E apply pyro and don't share ICD
  • NAs Hitmarks (without hitlag): 10, 13, 16, 23/34, 13, 39
  • NA to next NA frames: 23, 20, 32, 47, 24, 79
  • CA Hitmark 34 Frames
  • CA 59 Frames
  • Bond of Life consumption is 0.925 * Current Bond of Life
  • Burst absorbs directives, deals damage, then heals
@zhiyue
zhiyue / v2ex_sign.py
Created August 11, 2016 16:56 — forked from za2016/v2ex_sign.py
v2ex自动签到小脚本
#-*- coding=utf-8 -*-
import requests
import re
import sys
reload(sys)
sys.setdefaultencoding('utf8')
signin='http://v2ex.com/signin'
home='http://v2ex.com'
@msrose
msrose / combining-git-repositories.md
Last active May 7, 2024 03:22
How to combine two git repositories.

Combining two git repositories

Use case: You have repository A with remote location rA, and repository B (which may or may not have remote location rB). You want to do one of two things:

  • preserve all commits of both repositories, but replace everything from A with the contents of B, and use rA as your remote location
  • actually combine the two repositories, as if they are two branches that you want to merge, using rA as the remote location

NB: Check out git subtree/git submodule and this Stack Overflow question before going through the steps below. This gist is just a record of how I solved this problem on my own one day.

Before starting, make sure your local and remote repositories are up-to-date with all changes you need. The following steps use the general idea of changing the remote origin and renaming the local master branch of one of the repos in order to combine the two master branches.

@ianfun
ianfun / rename.c
Created July 11, 2022 14:06
Rename File on Disk using SetFileInformationByHandle | Win32 API
#define _UNICODE
#define UNICODE
#include <windows.h>
#ifdef __cplusplus
#include <cstdio>
#else
#include <stdio.h>
#endif
@macshome
macshome / EnvironmentVariables.swift
Created May 2, 2024 12:48
A playground to see different ways to get environment variables in Swift
import Foundation
// A playground to see different ways to get environment variables in Swift
// Foundation is the easiest way using the awesome ProcessInfo class.
// Get all of the environment variables for your running process in a Dictionary.
let foundationEnv = ProcessInfo().environment
print("********** ProcessInfo Environment **********")
@IngSystemCix
IngSystemCix / instalaciones-necesarias-para-curso-de-PHP.md
Created May 7, 2024 03:10
Instalaciones necesarias para curso de PHP
@byinarie
byinarie / RemComObf.sh
Created July 19, 2023 15:05 — forked from snovvcrash/RemComObf.sh
A simple RemComSvc obfuscation PoC (https://github.com/kavika13/RemCom)
#!/usr/bin/env bash
SEARCH="RemCom"
REPLACE=`cat /dev/urandom | tr -dc '[:alpha:]' | fold -w 8 | head -n 1`
git clone -q https://github.com/kavika13/RemCom RemComObf
find RemComObf -type f -exec sed -i -e "s/${SEARCH}/${REPLACE}/g" {} \;
sed -i "s/A service Cannot be started directly./Nothing's here.../g" RemComObf/RemComSvc/Service.cpp