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
@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 / 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 / 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";
version: '3'
services:
ide:
image: chinodesuuu/coder:latest
volumes:
- /home/coder/projects
ports:
- '9000:9000'
@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 / 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
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
{
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" },
}
@sr229
sr229 / hoe.sh
Last active July 15, 2018 05:50
#!/bin/sh
set -e
apt-get update && \
apt-get -y upgrade && \
apt-get -y install sudo && \
apt-get -y install \
python \
python3 \
python3-pip \
@sr229
sr229 / sayonika_api_model.json
Last active June 20, 2018 10:03
Sayonika Model API
{
"user": {
"profile": {
"name": "Sayonika Model User",
"id": "66646631-2341-4132-9200-1e51ed007366",
"bio": "Sed sed magna a felis tempus ultricies. Sed rhoncus mi in varius dignissim. Donec sodales justo nec dolor vehicula, sit amet venenatis ex rutrum. Suspendisse venenatis, augue id tincidunt pulvinar, urna mi iaculis magna, eget bibendum quam lectus vel ex.",
"donator": false,
"developer": false,
"moderator": false
},