Skip to content

Instantly share code, notes, and snippets.

🐈
meow~

Luavis Luavis

🐈
meow~
Block or report user

Report or block Luavis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View GCBenchmark.java
package benchmark;
public class GCBenchmark {
private static class MemoryAllocator {
private int[] buffer;
private MemoryAllocator(int size) {
this.buffer = new int[size];
}
@Luavis
Luavis / install-arch.sh
Created May 2, 2019 — forked from akhenakh/install-arch.sh
Install Arch Linux on OSX with xhyve
View install-arch.sh
#!/bin/bash
#
# Usage
# install-arch.sh ./archlinux-2018.11.01-x86_64.iso
# first you neeed to patch xhyve with this
# index 61aeebb..39a9c4b 100644
# --- a/src/firmware/kexec.c
# +++ b/src/firmware/kexec.c
# @@ -185,6 +185,7 @@ kexec_load_ramdisk(char *path) {
View visitor
#!/usr/bin/env python
import os
import argparse
from multiprocessing import Queue, Process
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def worker(q):
options = Options()
View java_class_parser.py
import binascii
import struct
CONSTANT_UTF8 = 1
CONSTANT_INTEGER = 3
CONSTANT_FLOAT = 4
CONSTANT_LONG = 5
CONSTANT_CLASS = 7
CONSTANT_DOUBLE = 6
View sublime-settings.json
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/User/Material-Theme (Flake8Lint).tmTheme",
"default_line_ending": "unix",
"draw_minimap_border": true,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
@Luavis
Luavis / wav.py
Last active Aug 11, 2016
wav file play - pip install pyaudio
View wav.py
from struct import unpack
import pyaudio
AUDIO_PCM_FORMAT = 1
CHUNK = 4096
def _check_chunk(f):
chunck_id = f.read(4).decode('ascii')
if not chunck_id == 'RIFF':
View .macos
#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
View .mackup.cfg
# mackup cfg gile
[storage]
engine=icloud
[configuration_files]
.gitconfig_global
[applications_to_ignore]
nvim
View Brewfile
# tap brew
tap 'homebrew/bundle'
tap 'homebrew/core'
tap 'homebrew/versions'
tap 'homebrew/dupes'
tap 'homebrew/services'
tap 'caskroom/cask'
tap 'caskroom/fonts'
tap 'caskroom/versions'
View 2016 전자전시회 1학기말 회의.md

2016 전자전시회 1학기말 회의

  • 참가자: 유찬길, 전준형, 백경호, 명노훈, 강태욱, 문성수, 고석현, 권기훈, 박준형, 김혜리, 고소영, 김지우, 성영
  • 여름 MT: 7월 이후
    • 후보지
      • 대성리 MT촌
      • 가평
      • 서울 파티룸
    • 날짜
You can’t perform that action at this time.