Skip to content

Instantly share code, notes, and snippets.

View sr229's full-sized avatar
:octocat:
GitHubは私の街です。 (๑・ω・๑)

Ayase Minori sr229

:octocat:
GitHubは私の街です。 (๑・ω・๑)
View GitHub Profile
{
version: 1,
machine: "pc",
memory_size: 256,
kernel: "https://bellard.org/jslinux/kernel-x86.bin",
cmdline: "loglevel=3 console=hvc0 root=root rootfstype=9p rootflags=trans=virtio ro TZ=${TZ}",
fs0: { file: "https://vm.maidcafe.me/images/linux3.iso" },
eth0: { driver: "user" },
}
install:
...
# now this is where it gets interesting
# we're copying over the template files into the renpy SDK
# and CD into the renpy
# Replace quickstart-oss with your GitHub repository name!
- bash ./quickstart-oss/travis/setup.sh
@sr229
sr229 / rpido
Created November 30, 2018 02:02
The rpido script by Peter Lorenzen. Original at : http://peter.lorenzen.us/linux/headless-raspberry-pi-configuration
#!/bin/bash
# This Script is Copyright (c) Peter Lorenzen
# You can find the original source at: http://peter.lorenzen.us/linux/headless-raspberry-pi-configuration
# Make sure you run this before executing the script:
#
# chmod -R 755 ./rpido
#
URL=$(curl -s https://downloads.raspberrypi.org/raspbian_lite_latest | awk -F\" '/http/ { print $2}')
LATEST=$(basename $URL .zip)
zipfile=DIST/$LATEST.zip
@sr229
sr229 / enter-chroot
Created December 3, 2018 17:26
Script to access a Specific Chroot in Android
#!/system/bin/sh
#
# This will attempt to mount /proc, /sys, and /dev.
#
# Make sure your directory has sufficient permissions.
set -o errexit -o nounset
if [ ! -d "$1" ] || [ ! -n "$1" ]; then
@sr229
sr229 / exec.sh
Created March 7, 2019 02:02
Entrypoint script
#!/bin/sh
# Special exec script to handle user cases that needs auth or
# stuff I can think of.
# check for $CODER_ENABLE_AUTH.
if [ -z "$CODER_ENABLE_AUTH" ]; then
if [ -z "$CODER_ENABLE_TLS" ]; then
exec "$(command -v code-server) --port=9000 --allow-http /home/coder/projects";
@sr229
sr229 / coder.service
Last active March 30, 2019 04:52
code-server systemd Unit
[Unit]
Description=VSCode in a browser
After=network.target
[Service]
Type=simple
@sr229
sr229 / Dockerfile
Last active May 3, 2019 16:15
ShellSample.ipynb
FROM jupyter/scipy-notebook:cf6258237ff9
ARG NB_USER=jovyan
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME /home/${NB_USER}
USER root
RUN apt update && apt-get -y install sudo net-tools
@sr229
sr229 / play_store_enable.sh
Created May 11, 2019 10:26
A script to enable Play Store support, based from Reddit
#!/bin/sh
sudo cp /etc/chrome_dev.conf /usr/local/
sudo mount --bind /usr/local/chrome_dev.conf /etc/chrome_dev.conf
sudo echo "--arc-availability=officially-supported " >> /etc/chrome_dev.conf
sudo restart ui
exit 0
@sr229
sr229 / filo-server.js
Created June 3, 2019 14:23
Skeleton implementation for Filo
/**
* Copyright 2019 (c) Kibo Hikari
* Licensed under MIT.
*
* Based on Google's Flywheel whitepaper
* If you want to read about it, see: https://ai.google/research/pubs/pub43447
*/
const http = require('http');
const httpsProxy = require('http-proxy');
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bot
spec:
selector:
matchLabels:
app: clara.discordapp
tier: frontend