Skip to content

Instantly share code, notes, and snippets.

View quanglam2807's full-sized avatar
🎯
Focusing

Quang Lam quanglam2807

🎯
Focusing
View GitHub Profile
@quanglam2807
quanglam2807 / main.js
Created November 17, 2021 16:09
(ipc/send) invalid destination port
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
const path = require('path')
// Hide Electron from UA to improve compatibility
// https://github.com/webcatalog/webcatalog-app/issues/182
app.userAgentFallback = app.userAgentFallback
// Fix WhatsApp requires Google Chrome 49+ bug
// App Name doesn't have white space in user agent. 'Google Chat' app > GoogleChat/8.1.1
.replace(` ${app.name.replace(/ /g, '')}/${app.getVersion()}`, '')
name: Cask
on:
push:
branches:
- master # trigger CI whenever a new commit is pushed to master branch
jobs:
publish:
runs-on: macos-latest # run CI with latest available macOS version
cask "webcatalog" do
version "24.0.0"
sha256 "7f32b6f07d05d3c9acb8c95162c4513acccc643f8f4ed7ffc7412190bf67d92d"
# github.com/quanglam2807/webcatalog/ was verified as official when first introduced to the cask
url "https://github.com/quanglam2807/webcatalog/releases/download/v#{version}/WebCatalog-#{version}-mac.zip"
appcast "https://github.com/quanglam2807/webcatalog/releases.atom"
name "WebCatalog"
homepage "https://getwebcatalog.com/"

Keybase proof

I hereby claim:

  • I am quanglam2807 on github.
  • I am quanglam2807 (https://keybase.io/quanglam2807) on keybase.
  • I have a public key ASC8tJw2ZBondkArt4TgNb85k0XxtxSCLnq0rw0tEDHFQgo

To claim this, I am signing this object:

@quanglam2807
quanglam2807 / hosts
Last active September 11, 2019 21:23
Hosts to block distracting websites
0.0.0.0 news.ycombinator.com
0.0.0.0 theverge.com
0.0.0.0 www.theverge.com
0.0.0.0 avgle.com
0.0.0.0 www.avgle.com
0.0.0.0 tinhte.vn
0.0.0.0 www.tinhte.vn
0.0.0.0 mspoweruser.com
0.0.0.0 www.mspoweruser.com
0.0.0.0 tinder.com
@quanglam2807
quanglam2807 / scripts.sh
Last active April 19, 2018 22:34
Script to download multiple youtube videos
#!/bin/bash
filename="$1"
while read -r line
do
words=($line)
url=${words[0]}
ep=${words[1]}
youtube-dl -o "${ep} - %(title)s.%(ext)s" $url --write-sub --no-overwrites
done < "$filename"
@quanglam2807
quanglam2807 / buy.pas
Last active December 16, 2016 00:57
"Cuộc chiến trên sa mạc" - Team CẦN THƠ - Source hoàn thiện
const fileinp = 'buy.inp';
fileout = 'buy.out';
maxtank = 15;
maxmoney = 100;
default_a = 10;
chicken:array[1..4] of integer = (0,1,1,20);
type tanktype = record
a,b,c,val,orgin:longint;
end;