Skip to content

Instantly share code, notes, and snippets.

View razonyang's full-sized avatar
🎯
Focusing

Razon Yang razonyang

🎯
Focusing
View GitHub Profile
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@razonyang
razonyang / commands.md
Created April 1, 2023 05:53
Open KDE applications lancher via Windows/Meta key
kwriteconfig5 \
  --file ~/.config/kwinrc \
  --group ModifierOnlyShortcuts \
  --key Meta "org.kde.plasmashell,/PlasmaShell,org.kde.PlasmaShell,activateLauncherMenu"

qdbus org.kde.KWin /KWin reconfigure
@razonyang
razonyang / clone-org-repos.md
Created April 1, 2023 05:21
Clone all GitHub repos at once.
curl "https://api.github.com/orgs/orgname/repos?page=1&per_page=100" |
  grep -e 'ssh_url*' |  
  cut -d \" -f 4 |
  xargs -L1 git clone
  1. Replace the orgname with the organization name.
  2. Replace ssh_url with clone_url to use HTTPS instead of SSH.
@razonyang
razonyang / install-hugo-theme-bootstrap-from-scratch.sh
Last active November 5, 2021 15:24
Hugo Theme Bootstrap Qucik Start
hugo new site myblog
cd myblog
git init
git submodule add https://github.com/razonyang/hugo-theme-bootstrap themes/hugo-theme-bootstrap
cp -a themes/hugo-theme-bootstrap/exampleSite/* .
hugo server
@razonyang
razonyang / gist:f6fdf8eee4959bbb7280740fdd10551d
Last active February 23, 2019 05:34
Remove old EFI entries from boot menu.
bcdedit.exe /enum firmware


固件启动管理器
---------------------
标识符                  {fwbootmgr}
displayorder            {ae2112ee-36a8-11e9-adf2-806e6f6e6963}
                        {bootmgr}
                        {b592ec8e-3612-11e9-ba28-806e6f6e6963}
@razonyang
razonyang / hello.txt
Last active March 29, 2023 01:57
hello
Hello world!