Skip to content

Instantly share code, notes, and snippets.

@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
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active April 28, 2024 17:41
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus

Mobile Safari's 100% Height Dilemma

Whether you're developing a web application with native-ish UI, or just a simple modal popup overlay that covers the viewport, when it comes to making things work on iDevices in Mobile Safari, you're in for a decent amount of pain and suffering. Making something "100% height" is not as easy as it seems.

This post is a collection of Mobile Safari's gotchas and quirks on that topic, some with solutions and fixes, some without, in good parts pulled from various sources across the internets, to have it all in one place. Things discussed here apply to iOS8, iOS9 and iOS10.

The Disappearing Browser Chrome

Screen real estate on smartphones is limited, so Mobile Safari collapses the browser chrome (address bar and optional tab bar at the top, and tool bar at the bottom) when the user scrolls down. When you want to make something span exactly the height of the viewport, or pin something to the bottom of the screen, this can get tricky because the viewport changes size (or

@ihommani
ihommani / how-to-gcloud.sh
Last active April 28, 2024 17:38
Gcloud how to
# Updapte components
gcloud components update
# Display local configuration folder
gcloud info --format='get(config.paths.global_config_dir)'
# display help
gcloud [command] -h
# Create a configuration (project + profile)
@redlotus
redlotus / docstrings.py
Created October 2, 2017 04:34
Google Style Python Docstrings
# -*- coding: utf-8 -*-
"""Example Google style docstrings.
This module demonstrates documentation as specified by the `Google Python
Style Guide`_. Docstrings may extend over multiple lines. Sections are created
with a section header and a colon followed by a block of indented text.
Example:
Examples can be given using either the ``Example`` or ``Examples``
sections. Sections support any reStructuredText formatting, including
@zero-is-one
zero-is-one / Chinese Learning Word Order
Last active April 28, 2024 17:35
I didn't like the word order that most Chinese learning courses use. This list is the most common used chinese words/phrases and orders them so that no word is shown before its components are shown. It also includes the php files that I used to help generate this list for my own reference.
是 | [shì] to be, 是不是? shìbushì? is (it) or is (it) not?; 是否 shìfǒu whether or not, is (it) or is (it) not?
不 | [bù] not [bú] (used before tone #4); 不是 bú shì isn't
了 | [le] <verb particle marking a new situation or a completed action>; 你来了! Nǐ láile! You have come!; 我累了! Wǒ lèile! I've gotten tired!; 那好了! Nà hǎole! That's OK (now)!; 我只请了一位客人. Wǒ zhǐ qǐngle yí wèi kèren. I invited only one guest. [liǎo] end, finish, settle, dispose of, know clearly, to be able, (=了解 liǎojiě) understand, comprehend; 了了 liǎoliaǒ clearly understand, settle (a debt/etc.), to be intelligent; 了了 liǎole to be over/ended/finnish/settled; 你卖不了! Nǐ mài bùliǎo! You will not be able to sell (it)! [liào] (=瞭 liaò) to survey/watch{Compare with 子 zǐ child}
人 | [rén] person; 人类 rénlèi humankind; 有人吗? yǒu rén ma? Is there anybody here?{Compare with 入 rù enter}
我 | [wǒ] I, me, my; 我们 wǒmen we, us{Compare with 找 zhǎo seek}
在 | [zài] at; 现在 xiànzài now; 存在 cúnzài exist
有 | [yǒu] have, there is; 没有 méiyǒu haven't, there isn't;
@lawrenceching
lawrenceching / install-frp-as-systemd-service.sh
Last active April 28, 2024 17:30
Install frp as systemd service
# Update on 2024/04/13
# 1. Improved OS compatibility: try wget and then curl for downloading files.
#
# Update on 2024/01/26
# 1. Thanks to GitHub user @aka-Ani, this script now will install latest version of frp:
# https://gist.github.com/lawrenceching/41244a182307940cc15b45e3c4997346?permalink_comment_id=4851742#gistcomment-4851742
# 2. Use .toml conf file as .ini became lagacy
#
# Update on 2023/06/19
# 1. frp no longer provide systemctl service file. This script creates frpc/fprs systemctl service file by itself
@Klerith
Klerith / flutter-instalaciones.md
Last active April 28, 2024 17:29
Instalaciones del curso de Flutter - Móvil de cero a experto
@platu
platu / ovs+vxlan+lxd-lab.md
Last active April 28, 2024 17:28
VXLAN lab based on OpenVSwitch and lxd containers

% VXLAN lab based on OpenVSwitch and LXD containers


Preamble

The very first idea when I started writing this lab was to illustrate the Virtual Extensible LAN (VXLAN) technology. Now that OpenVSwitch configuration is smoothely integrated in the Debian networking configuration files, this should have resulted in somewhat easy-to-read gist.

@AlexandraKapp
AlexandraKapp / osrm_docker_windows.md
Last active April 28, 2024 17:25
How to set up your own OSRM backend with Docker on Windows

How to set up your own OSRM backend with Docker on Windows

The OSRM docker quick start provides a great explanation on how to set up the container: https://hub.docker.com/r/osrm/osrm-backend/

Yet - for Docker on Windows minor changes were necessary for me (otherwise I'd get "File not found" or "Permission" errors).

This is how it worked for me:

1. Pull the image