Skip to content

Instantly share code, notes, and snippets.

@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active May 11, 2024 17:33 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@mokoshalb
mokoshalb / Office_kms
Created July 4, 2019 05:36 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
@mehmetsefabalik
mehmetsefabalik / nginx-https-local.md
Last active May 11, 2024 17:25
Enable https on your local environment with nginx

enable https on your local environment

install mkcert and create certificates

brew install mkcert
mkcert -install
@cloudwu
cloudwu / print_r.lua
Created May 11, 2024 11:17
A function in Lua similar to PHP's print_r
local function keys(o)
local len = #o
local skeys = {}
local ukeys = {}
local n = 1
for k,v in pairs(o) do
local nk = math.tointeger(k)
if nk == nil or nk <= 0 or nk > len then
local sk = tostring(k)
if type(k) == "string" then
@RhythmShahriar
RhythmShahriar / captcha.css
Last active May 11, 2024 17:22
Simple Captcha for bootstrap form
/**-------------------------------------------------
* Simple Captcha System
* @package Code Snippets
* @link http://rhythmshahriar.com/codes/
* @author Rhythm Shahriar <rhy@rhythmshahriar.com>
* @link http://rhythmshahriar.com
* @copyright Copyright © 2017, Rhythm Shahriar
---------------------------------------------------*/
body {
background-color: #2d2d2d;
@NickSeagull
NickSeagull / ubuntu-bloat-removal.sh
Last active May 11, 2024 17:20
Updated Jan 22nd, 2024 - Simple command to remove all "bloatware" from ubuntu
sudo apt-get remove \
aisleriot \
brltty \
duplicity \
empathy \
empathy-common \
example-content \
gnome-accessibility-themes \
gnome-contacts \
gnome-mahjongg \
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 11, 2024 17:19
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@haykkh
haykkh / fastapi-discord.py
Created June 24, 2020 10:09
How to run a discord.py bot with FastAPI
import asyncio
import discord
from fastapi import FastAPI
app = FastAPI()
client = discord.Client()
# where the magic happens
# register an asyncio.create_task(client.start()) on app's startup event
@heroheman
heroheman / ranger-cheatsheet.md
Last active May 11, 2024 17:18
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten