Skip to content

Instantly share code, notes, and snippets.

View Bit0r's full-sized avatar
๐ŸŽฏ
Focusing

Bit0r Bit0r

๐ŸŽฏ
Focusing
View GitHub Profile
$OutputEncoding = New-Object -typename System.Text.UTF8Encoding
[Console]::OutputEncoding = New-Object -typename System.Text.UTF8Encoding
@ccbikai
ccbikai / aria2.conf
Created July 19, 2013 07:22
aria2้…็ฝฎๆ–‡ไปถ
#ๅ…่ฎธrpc
enable-rpc=true
#ๅ…่ฎธๆ‰€ๆœ‰ๆฅๆบ, web็•Œ้ข่ทจๅŸŸๆƒ้™้œ€่ฆ
rpc-allow-origin-all=true
#ๅ…่ฎธ้žๅค–้ƒจ่ฎฟ้—ฎ
rpc-listen-all=true
#RPC็ซฏๅฃ, ไป…ๅฝ“้ป˜่ฎค็ซฏๅฃ่ขซๅ ็”จๆ—ถไฟฎๆ”น
rpc-listen-port=6800
# ไฟๅญ˜ๆ—ฅๅฟ—ๅˆฐๆ–‡ไปถ๏ผŒๆฒกๆœ‰่ฏฅๆ–‡ไปถ็”จ touch ๅ‘ฝไปคๆ–ฐๅปบ๏ผŒไธ็„ถไผšๆŠฅ้”™
log=/mnt/upan/aria2.log
@dashed
dashed / github-pandoc.css
Created September 26, 2013 13:42
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@famousgarkin
famousgarkin / powershell-proxy-set-clear.ps1
Last active July 24, 2024 17:04
PowerShell Set-Proxy, Clear-proxy
# NOTE: registry keys for IE 8, may vary for other versions
$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'
function Clear-Proxy
{
Set-ItemProperty -Path $regPath -Name ProxyEnable -Value 0
Set-ItemProperty -Path $regPath -Name ProxyServer -Value ''
Set-ItemProperty -Path $regPath -Name ProxyOverride -Value ''
[Environment]::SetEnvironmentVariable('http_proxy', $null, 'User')
Bookmarklet

Copy and paste this into a bookmark:

javascript:!function(d){d.head.appendChild(d.createElement("style")).innerText="html,img,video{-webkit-filter:invert(1)hue-rotate(180deg);filter:invert(1)hue-rotate(180deg)}body{background:#000}"}(document);
@evantoli
evantoli / GitConfigHttpProxy.md
Last active August 12, 2025 15:29
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@bobby1030
bobby1030 / telegramdesktop.desktop
Created August 20, 2017 08:28
Telegram Desktop Entry
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
TryExec=/opt/Telegram/Telegram
Exec=/opt/Telegram/Telegram -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
@aaronice
aaronice / smart-dark-mode.css
Created January 11, 2018 01:18
CSS for Custom Smart Dark Mode
/*
Parts of this code is inspired from the following:
[1] https://userstyles.org/styles/105000/smart-dark
*/
html {
background-color: #222 !important;
}
body {
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active August 31, 2025 02:30
ๅ›ฝๅ†…็š„ Docker Hub ้•œๅƒๅŠ ้€Ÿๅ™จ๏ผŒ็”ฑๅ›ฝๅ†…ๆ•™่‚ฒๆœบๆž„ไธŽๅ„ๅคงไบ‘ๆœๅŠกๅ•†ๆไพ›็š„้•œๅƒๅŠ ้€ŸๆœๅŠก | Dockerized ๅฎž่ทต https://github.com/y0ngb1n/dockerized

Docker Hub ้•œๅƒๅŠ ้€Ÿๅ™จ

ๅ›ฝๅ†…ไปŽ Docker Hub ๆ‹‰ๅ–้•œๅƒๆœ‰ๆ—ถไผš้‡ๅˆฐๅ›ฐ้šพ๏ผŒๆญคๆ—ถๅฏไปฅ้…็ฝฎ้•œๅƒๅŠ ้€Ÿๅ™จใ€‚

Dockerized ๅฎž่ทต https://github.com/y0ngb1n/dockerized

1๏ธโƒฃ Docker daemon ้…็ฝฎไปฃ็†๏ผˆๆŽจ่๏ผ‰

ๅ‚่€ƒ Docker daemon ้…็ฝฎไปฃ็†

@pcostarg
pcostarg / launch.json
Last active November 13, 2024 03:26
Vivaldi/Chrome/Edge - Remote debugging in VS Code with SPO/SPFx examples
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Chrome/Vivaldi",
"port": 9222,
"request": "attach",
"type": "chrome",
"url": "http://localhost:8080"
},