Skip to content

Instantly share code, notes, and snippets.

View minetaro12's full-sized avatar
😶‍🌫️

Oさん minetaro12

😶‍🌫️
View GitHub Profile
@sheepla
sheepla / LinuxユーザーのためのWindowsカスタマイズガイド.md
Last active May 10, 2024 13:25
LinuxユーザーのためのWindowsカスタマイズガイド

LinuxユーザーのためのWindowsのおすすめツール・アプリケーション+個人的なカスタマイズガイド

これはなに?

普段はLinux(Arch Linux + i3)を使っているsheeplaが、Windowsでいい感じの環境を作るためにもがいた記録です。 「キーボード操作ですべてを完結させたい」「お気に入りのフォント・キーバインドを設定して生活したい」といったこだわりを捨てられない人におすすめです。 逆に、「安定した環境を使いたい」「Windowsのデフォルトの設定を壊したくない」「細々としたカスタマイズに時間を掛けたくない」人や商用のリッチなソフトウェアを多用する人にはあまり役に立たないかもしれません。

ターミナル

@amishmm
amishmm / ArchOracleCloud.md
Last active April 24, 2024 11:00
Install Arch Linux on Oracle Cloud (Free Tier)

Requirement

  • Console / Cloud Shell access (via https://cloud.oracle.com)
  • Go to the instance page and under Resources -> Console connection -> Launch Cloud Shell connection

Steps

  1. In Ubuntu OR any other Free tier Linux OS
# Download Alpine Linux and install it on disk
cd /
wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86_64/alpine-virt-3.16.2-x86_64.iso
@sheepla
sheepla / ojosudo
Last active February 9, 2024 15:35
sudo but for お嬢様
#!/bin/sh
echo -e "貴方は領主様から通常の講習を受けたはずですわ。
これは通常、以下の3点に要約されますの:
#1) 市民の皆様のプライバシーを尊重すること。
#2) タイプする前に考えること。
#3) そしてノブレス・オブリージュを肝に銘じておくことですわ。
"
exec sudo "${@}"
@valorad
valorad / InstallingXRDP.md
Created June 5, 2022 13:18
Installing xrdp

Ubuntu:

sudo apt install xrdp 
sudo adduser xrdp ssl-cert 
sudo systemctl restart xrdp

Fedora:

@savegame
savegame / pulse_sreaming.md
Last active April 26, 2024 19:54
PulseAudio / PipeWire streaming audio from Client to remote PulseAudio / PipeWire Server

We have Server machine, this computer with Headphones, and we have Client computer, this is remote PC with music =) On Server we should first open port for listening connections from Client :

# on ubuntu 
sudo ufw allow from <Client_IP> to any port 4656 proto tcp
# on fedora ( with firewalld ) 
sudo firewall-ctl --add-port 4656/tcp

note: port 4656 just for sample. you can use any port you want
than on Server, from current user add listening for connections

@zengxinhui
zengxinhui / convert2arch_x64.sh
Last active May 13, 2024 08:18
Replace Oracle Cloud Linux with Arch Linux remotely
[09/23/2023]
Refs:
1. http://mirror.cs.pitt.edu/archlinux/iso/2023.09.01/archlinux-bootstrap-2023.09.01-x86_64.tar.gz
2. https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/x86_64/alpine-virt-3.18.0-x86_64.iso
3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely
4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system
See also:
1. Convert to Debian https://gist.github.com/zengxinhui/ee0ad6b7c7f99e2ead6cd0d2bd6641fd
@Erisa
Erisa / cfd-termux.sh
Last active May 13, 2024 06:24
Install the Cloudflare Daemon (cloudflared) in Termux
#!/bin/sh
echo 'NOTE: You can now install cloudflared directly from Termux repos.'
echo 'NOTE: To install it from source instead, open the script and comment out the next two lines.'
pkg install cloudflared
exit
# ^ comment out these lines to proceed with the script
echo "--upgrading packages"
yes "" | pkg update
@jnovack
jnovack / break.go
Last active April 4, 2024 15:06
Handle CTRL-C in Golang
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
"time"
)
@chrisdone
chrisdone / gist:02e165a0004be33734ac2334f215380e
Last active May 19, 2024 03:51
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel

@sutara79
sutara79 / my-noto-sans.css
Last active October 17, 2023 01:05
自分用の、"Noto Sans JP"のWebフォント利用のためのCSS。ローカルにフォントがあれば、Webフォントよりも優先して使用する。
/**
* Noto Sans CJK JP: https://www.google.com/get/noto/#sans-jpan
* Noto Sans JP: https://fonts.google.com/earlyaccess#Noto+Sans+JP
*/
@font-face {
font-family: 'Noto Sans JP';
font-style: normal;
font-weight: 100;
src: local("Noto Sans CJK JP"),
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Thin.woff2) format('woff2'),