Skip to content

Instantly share code, notes, and snippets.

View akky's full-sized avatar

Akky AKIMOTO akky

View GitHub Profile
@fike
fike / rancher_desktop_wsl.md
Created September 9, 2023 23:43
Issues to run Rancher Desktop on WSL2

Debian and derivates on WSL2 (Windows 11) can have issues running docker distributed by Rancher Desktop. If you have error messages like the below, install dependencies to fix that.

"docker-credential-secretservice: error while loading shared libraries: libsecret-1.so.0" or "error getting credentials - err: exit status 1, out: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files"

or that

"error getting credentials - err: exit status 1, out: `Failed to execute child process "dbus-launch"

@jfcherng
jfcherng / .env
Last active March 7, 2025 15:58
Symfony 5 maintenance mode
MAINTENANCE_MODE=0
@kenmori
kenmori / environmentvaluableandnpmscript.md
Last active March 13, 2024 05:27
環境変数とnpm scriptとかpackage.json周りの話

環境変数(UnixやNode)周りの話

https://kenjimorita.jp/wp-content/uploads/2018/08/8908D37B-2647-4249-B21E-A84887117D52.jpeg

index

  • nodeの環境変数
  • process.envとは、何か、なぜ、いつ、どのように、効果的に使うのか
  • ブラウザの中での環境変数の取り方
  • 環境変数の表示
@schickling
schickling / _README.md
Last active January 4, 2024 09:37
Script to import and export docker-machine configurations to sync between hosts/collaborators

docker-machine import/export

Script to import and export docker-machine configurations to sync between hosts/collaborators

Export (on host A)

$ docker-machine ls
NAME       ACTIVE   DRIVER         STATE     URL                            SWARM   DOCKER    ERRORS
dev        -        digitalocean   Running   tcp://example.com:2376                 v1.10.1
@aras-p
aras-p / preprocessor_fun.h
Last active April 7, 2025 13:38
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@shanselman
shanselman / gist:5422230
Last active April 10, 2025 15:49
Evil Blog Comment Spammer just exposed his template through some error and the whole thing showed up in my comments.
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|
@markoa
markoa / wordpressxml2jekyll.rb
Created January 4, 2010 09:48
Script to export posts from a Wordpress XML file to Jekyll (Textile) files. Collects comments in a YAML file too.
#!/usr/bin/env ruby
# Input: WordPress XML export file.
# Outputs: a series of Textile files ready to be included in a Jekyll site,
# and comments.yml which contains all approved comments with metadata which
# can be used for a Disqus import.
require 'rubygems'
require 'hpricot'
require 'clothred'