Skip to content

Instantly share code, notes, and snippets.

View ryank231231's full-sized avatar
😪
I may be slow to respond.

ryank231231 ryank231231

😪
I may be slow to respond.
View GitHub Profile
@nrk
nrk / command.txt
Created April 2, 2012 19:19
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"
@zythum
zythum / gist:2848881
Created June 1, 2012 04:50
google收录的敏感词
@ao-kenji
ao-kenji / cbus-on-luna88k.md
Last active July 18, 2021 14:20
How to use PC-98 extension bus (C-bus) on OMRON LUNA-88K / OMRON LUNA-88KのPC-98拡張バス(Cバス)についてのメモ

LUNA-88K2のPC-98拡張バス(Cバス)についてのメモ

-- How to use PC-98 extension bus (C-bus) on OMRON LUNA-88K2 --

0.概要

LUNA-88K2にはNEC PC-9801用の拡張ボードを装着することができるPC-98拡張バス(Cバス)が搭載されています。その(OSからの)使い方を説明します。

※重要※

@fffonion
fffonion / artemis.py
Last active August 1, 2022 06:03
artemis resource unpack
# coding:utf-8
import struct
import os
import os.path as opth
import sys
__version__ = 1.0
getPATH0 = lambda: sys.path[0].decode(sys.getfilesystemencoding())
# 命令行处理
@mbikovitsky
mbikovitsky / unistd.h
Created November 14, 2014 20:00
Windows unistd.h replacement
#ifndef _UNISTD_H
#define _UNISTD_H 1
/* This file intended to serve as a drop-in replacement for
* unistd.h on Windows.
* Please add functionality as neeeded.
* Original file from: http://stackoverflow.com/a/826027
*/
#include <stdlib.h>
@rr-
rr- / shiina-rio-unpack
Created October 27, 2015 21:07
Shiina Rio .exe decoder
#!/bin/python3
import struct
import argparse
# tested on:
# - Sorcery Jokers (works)
# - Tekoire Princess (needs manual tweaks to work)
# so it's only semi-automatic.
def read_u16(data, offset):
@evantoli
evantoli / GitConfigHttpProxy.md
Last active July 5, 2024 08:58
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@zhy0
zhy0 / ubuntu-cli-install-android-sdk.sh
Last active February 3, 2024 08:19
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
#!/bin/bash
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n
# Install Oracle JDK 8
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
apt-get install -y unzip make # NDK stuff
@sfan5
sfan5 / alpine-container.sh
Last active June 27, 2024 19:32
Create bootable systemd-nspawn containers with Alpine, Arch Linux or Ubuntu
#!/bin/bash -e
# Creates a systemd-nspawn container with Alpine
MIRROR=http://dl-cdn.alpinelinux.org/alpine
VERSION=${VERSION:-v3.19}
APKTOOLS_VERSION=2.14.4-r0
wget_or_curl () {
if command -v wget >/dev/null; then
:: Made by Hoang Hung
@echo off
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if "%errorlevel%" NEQ "0" (
echo: Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo: UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs" & exit
)
if exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs"