Skip to content

Instantly share code, notes, and snippets.

@yelban
yelban / bitwarden_duplicate_cleaner.py
Created February 22, 2024 08:51 — forked from jwmcgettigan/bitwarden_duplicate_cleaner.py
Identifies and removes duplicate 'items' and 'folders' from your Bitwarden vault. 🎃
#!/usr/bin/env python3
# Copyright © 2023 Justin McGettigan
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the “Software”), to deal in the Software without
# restriction, including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
@yelban
yelban / gist:693be4fff2813cba997f8b0da5462464
Created February 7, 2023 01:58 — forked from JT5D/gist:a2fdfefa80124a06f5a9
Google translate language codes
Eg. URL translating en page to es
http://translate.google.com/translate?hl=en&sl=en&tl=es&u=http://about.com
Define the web interface language to be English by adding
hl=en to the end of the URL and after the change the URL will look
like this:
http://www.google.com/search?hl=en
When you use more than one setting code in the URL, you need to use
@yelban
yelban / For Mac 4.2.6 unlimited trial.md
Created December 8, 2022 01:58 — forked from rise-worlds/For Mac 4.2.6 unlimited 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+u BCompare : touch BCompare && chmod a+u 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 $@
@yelban
yelban / git_remote_set-url.md
Created November 11, 2022 13:21 — forked from fokayx/git_remote_set-url.md
Git switch remote URLs. Git 更換遠端伺服器倉庫網址

Git 更換遠端伺服器倉庫網址URL

1.確認目前Git遠端伺服器網址: git remote -v

git remote -v
origin  https://github.com/USERNAME/REPOSITORY.git (fetch)
origin  https://github.com/USERNAME/REPOSITORY.git (push)

2.更換Git遠端伺服器位網址,使用:git remote set-url

@yelban
yelban / instructions.txt
Created August 10, 2022 02:55 — forked from miguelmota/instructions.txt
Cloudflare DNS IPFS IPNS CNAME TXT record setup example
1. upload site to ipfs
2. update dns TXT record _dnslink.example.com to `"dnslink=/ipfs/QmZ4tDuvesekSs4qM5ZBKpXiZGun7S2CYtEZRB3DYXkjGx`(replace hash)
3. upadate dns CNAME record for `@` set to `cloudflare-ipfs.com`
4. set to always use https on cloudflare settings
5. visit https://ipfs.io/ipns/example.com to see if dnslink works
5. visit example.com and content should be served from cloudflare ipfs
@yelban
yelban / babel.config.js
Created December 2, 2021 03:28 — forked from bgrand-ch/babel.config.js
Svelte 3, Babel 7, Polyfill IE 11
// https://www.learningsomethingnew.com/how-to-make-your-svelte-3-cordova-app-work-on-old-phones-using-babel-7-and-rollup
// https://blog.az.sg/posts/svelte-and-ie11/
module.exports = function (api) {
api.cache(true);
const presets = [
[
'@babel/preset-env', {
useBuiltIns: 'usage',
corejs: 3,
@yelban
yelban / .stylelintrc.json
Created October 21, 2021 07:27 — forked from kematzy/.stylelintrc.json
Setting up VS Code with Jekyll, Tailwind CSS, PostCSS ('jekyll-postcss') and stylelint with SCSS-like syntax support
{
"extends": ["stylelint-config-recommended"],
"processors": ["stylelint-processor-ignore-front-matter"],
"rules": {
"at-rule-no-unknown": [true, {
"ignoreAtRules": ["tailwind", "apply", "variants", "responsive", "screen"]
} ],
"declaration-block-trailing-semicolon": "always",
"no-descending-specificity": [true, { "ignore": ["selectors-within-list"] } ],
"no-invalid-double-slash-comments": true
@yelban
yelban / notes.md
Created August 12, 2021 11:56 — forked from dreness/notes.md
Low Latency HLS test: how low can you go?
@yelban
yelban / Instructions.md
Created June 17, 2021 10:10 — forked from pgilad/Instructions.md
Generate SSL Certificate for use with Webpack Dev Server (OSX)

Generate private key

$ openssl genrsa -out private.key 4096

Generate a Certificate Signing Request

openssl req -new -sha256 \
@yelban
yelban / avd-hardware-profile-huawei-mate-20x.xml
Created December 30, 2020 14:08 — forked from mouselangelo/avd-hardware-profile-huawei-mate-20x.xml
Android: Basic AVD Hardware profile for the Huawei Mate 20 X phone
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<d:devices xmlns:d="http://schemas.android.com/sdk/devices/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<d:device>
<d:name>HUAWEI Mate 20 X</d:name>
<d:manufacturer>HUAWEI</d:manufacturer>
<d:meta/>
<d:hardware>
<d:screen>
<d:screen-size>large</d:screen-size>
<d:diagonal-length>7.20</d:diagonal-length>