Skip to content

Instantly share code, notes, and snippets.

@akihikodaki
akihikodaki / README.en.md
Last active June 13, 2024 11:44
Linux Desktop on Apple Silicon in Practice

Linux Desktop on Apple Silicon in Practice

I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.

Fortunately, Linux already works on Apple Silicon/M1. But how practical is it?

  • Two native ports exist.
@aferrero2707
aferrero2707 / Recipe.git
Last active January 3, 2019 03:34
AppImage recipe for building GIMP from git
#! /bin/bash
FULL_BUNDLING=0
UPDATE=1
REBUILD=1
PREFIX=/zzz
# Move blacklisted files to a special folder
move_blacklisted()
@Senorsen
Senorsen / flash-nexus.sh
Last active August 11, 2016 09:28
Flash Nexus Device (especially approriate for unlocked & rooted devices)
#!/bin/sh
# Author: Senorsen <senorsen.zhang@gmail.com>
# Prerequisites: adb, fastboot, unzip
# Flash Nexus Device (especially approriate for unlocked & rooted devices), which cannot be upgraded with OTA
# First download nexus factory image from:
# https://developers.google.com/android/nexus/images
set -e
FILE="$1"

The Vue Stack

Opinionated stack for building large-scale, production grade applications

Application

  • View layer: Vue.js
    • Intuitive, smooth learning curve
    • Performant reactive system that is optimized by default
  • Built-in animation/transition system
@heatxsink
heatxsink / glog-example.go
Last active March 25, 2023 06:02
An example of how to use golang/glog.
/*
glog-example
------------
background
---
You probably want to read the source code comments at the top of the glog.go file in
the golang/glog repository on github.com. Located here: https://github.com/golang/glog/blob/master/glog.go
setup
@bendrucker
bendrucker / karma.json
Created October 1, 2014 13:08
Karma config for test coverage with browserify
{
"frameworks": ["browserify", "mocha", "chai-sinon", "env"],
"files": [
"components/angular/angular.js",
"components/angular-mocks/angular-mocks.js",
"node_modules/angular-ui-router/release/angular-ui-router.js",
"./components/firebase/firebase.js",
"./components/angularfire/angularfire.js",
"test/unit/**/*.js"
],
@UniIsland
UniIsland / list-manually-installed-packages.sh
Created February 8, 2014 08:20
List all manually installed packages on a debian/ubuntu system
#!/bin/bash
## List all manually installed packages on a debian/ubuntu system
## manually installed means:
## 1. not pre-installed with the system
## 2. not marked auto-installed by apt (not dependencies of other
## packages)
## Note: pre-installed packages that got updated still needs to be
## filtered out.
@zenozeng
zenozeng / 评教.js
Last active January 1, 2016 17:39
自动评教脚本(部分)
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript= document.createElement("script");
oScript.type = "text/javascript";
oScript.src="https://code.jquery.com/jquery-2.1.4.min.js";
oScript.onload = function() {
jQuery('input[value="5"], input[value="优秀"]').each(function() {
console.log(jQuery(this));
jQuery(this).click();
});
$('#Button1').click();
@Hexcles
Hexcles / vpn-dorm.sh
Created September 14, 2013 15:15
ZJU Zijingang Campus dormitory VPN dial up script (xl2tpd + systemd, for Archlinux)
#!/bin/bash
PPP_TIMEOUT=30
L2TPD_TIMEOUT=5
L2TPD_CONTROL_FILE=/var/run/xl2tpd/l2tp-control
VPN_ACCOUNT=zjuvpn
function start_xl2tpd
{
systemctl start xl2tpd
@CodeMonkeyKevin
CodeMonkeyKevin / gist:6407086
Created September 1, 2013 20:26
GoLang UUID pkgs benchmark
// github.com/nu7hatch/gouuid
BenchmarkV4 1000000 1426 ns/op
BenchmarkV5 2000000 910 ns/op
// github.com/streadway/simpleuuid
BenchmarkV5 5000000 689 ns/op
// github.com/tux21b/gocql/tree/master/uuid
BenchmarkRandomUUID 1000000 1470 ns/op