Skip to content

Instantly share code, notes, and snippets.

View nyanshiba's full-sized avatar
🎃
in the kotatsu

nyanshiba

🎃
in the kotatsu
View GitHub Profile
@lifehome
lifehome / README.md
Last active February 25, 2024 06:34 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash

Cloudflare DDNS bash client with systemd

This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.

Look out!

A newer version is available!

This gist will no longer update, instead please go to https://github.com/lifehome/systemd-cfddns for more updated versions.

How to use?

  1. Put the cfupdater files to /usr/local/bin
  • If you are using IPv4 for A record, append -v4 to cfupdater in the following systemd service unit.
@bartleby
bartleby / iOS URL Schemes
Created August 22, 2018 17:48
iOS URL Schemes
URL Schemes
Apple
 
Apple Music     — music://geo.itunes.apple.com/us/albums/<albumID>
                – music://geo.itunes.apple.com/us/artists/<artistID>
 
Apple News      — applenews://
App Store       — itms-apps://itunes.apple.com/app/<appID>
Apple TV        — videos://
@voluntas
voluntas / webrtc_ advantage.rst
Last active October 16, 2020 02:24
WebRTC の優位性

WebRTC の優位性

更新:2018-09-21
作者:@voluntas
作者サイト:https://voluntas.github.io/
バージョン:18.9.3
セッション日時:2018-09-25 21:10-21:30
セッション場所:さくらインターネット 大阪本社
@vahan3x
vahan3x / Shaders.metal
Created October 1, 2018 17:41
Displaying image with normalized Display P3 colors. For use with Metal textures using bgra10_xr_srgb pixel format.
// Simple RGB to Linear RGB function respecting negative values
half channelToLinearChannel(half channel) {
if (fabs(channel) <= 0.04045) {
return channel / 12.92;
}
return sign(channel) * pow((fabs(channel) + 0.055) / 1.055, 2.4);
}
// Converting RGB to Linear RGB
@gmolveau
gmolveau / firefox_dark_background.md
Last active September 22, 2025 05:13
Firefox dark background / theme for new tab and loading screen

Firefox Dark Background

  • How to change the background on Firefox to a dark one on new tab / loading screen ?

Procedure

  • Type about:config in the URL bar
  • Search toolkit.legacyUserProfileCustomizations.stylesheets and double-click the field to set it to true
  • Type about:support in the URL bar
  • Look for Profile folder field and click on the open button next to it.
@eniehack
eniehack / user.js
Last active July 16, 2021 09:59
my Firefox's configration file.
//参考:https://onlinepckan.net/tool/ffuserconfigsecurity.html
// メモリキャッシュ容量。メモリどれだけ積んでいるかによって値は変わってくる。-1だと自動管理
user_pref("browser.cache.memory.capacity", -1);
//ディスクキャッシュ無効化
user_pref("browser.cache.memory.enable", true);
user_pref("browser.cache.disk.enable",false);
user_pref("browser.cache.disk_cache_ssl", false);
user_pref("browser.cache.check_doc_frequency", 0);
//タブの更新頻度の設定
@borisovonline
borisovonline / debian-personalvpn.md
Last active September 21, 2025 18:17
Create a personal VPN server based on Linux Debian and strongSwan

Tutorial: how to create a personal VPN server based on Linux Debian, strongSwan, certificates authentification and ready to use .mobileconfig profiles to use on iPhone, iPad and Mac

This is a part of a big article I posted on Medium. Here is only a tutorial.

We're going to create a personal VPN server, using the following technologies:

  • IKEv2 as a VPN protocol
  • Linux Debian as a server OS
  • strongSwan as a VPN server
  • Certificates as an authentication method

You can use this tutorial on any hosting you prefer.

@John-Paul-R
John-Paul-R / FabricModList.md
Last active October 15, 2025 12:28
A list of (almost all) mods for Fabric

Fabric Mod List

This page contains a list of the current Minecraft Fabric mods. (As of 2021-08-19 08:05:23 Timezone: UTC+0000 (GMT))

To search for mods by name, category, or download count, visit the website, fibermc.com!

Note: You can view a mod's source files by following the "Source" link on its CurseForge page, assuming that the mod's creator has made such files public.

There are currently 2954 mods in this list.

@levantAJ
levantAJ / extract-scheme-url.sh
Created August 7, 2019 03:20
Extract *.ipa file to looking for all scheme URLs
#!/bin/sh
RESET=`tput sgr0`
RED=`tput setaf 1`
GREEN=`tput setaf 2`
if [ "$1" ]; then
if ! [ -e "$1" ]
then
@hdais
hdais / dnsfragattack_authserver.md
Last active October 24, 2025 11:01
DNSフラグメント攻撃の権威サーバ側の対策について