Skip to content

Instantly share code, notes, and snippets.

@veeableful
veeableful / README.md
Last active March 8, 2021 17:09
Troubleshoot: Seafile Server
@veeableful
veeableful / Cargo.toml
Created May 31, 2019 05:52
Web server example
[package]
name = "web-server-example"
version = "0.1.0"
authors = ["Lilis Iskandar <lilis@veand.co>"]
edition = "2018"
[dependencies]
actix-web = "1.0.0-rc"
serde = "1"
serde_derive = "1"
@veeableful
veeableful / sample.rs
Last active May 27, 2019 14:38
actix-web multipart/form-data
fn item(mut payload: Multipart) -> HttpResponse {
loop {
match payload.poll() {
Ok(val) => {
match val {
Async::Ready(_) => {
},
Async::NotReady => {
// Stuck here!
},
@veeableful
veeableful / webpack.config.js
Created May 22, 2019 17:03
react app troubleshooting
var debug = process.envNODE_ENV !== "production";
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var WebpackUglifyJsPlugin = require('webpack-uglify-js-plugin');
//var HtmlWebpackPlugin = require('html-webpack-plugin');
var path = require('path');
//var srcPath = path.join(__dirname, 'src');
//var buildPath = path.join(__dirname, 'dist');
@veeableful
veeableful / application.ejs
Last active May 22, 2019 17:01
React app troubleshooting
<% include ../header %>
<link rel="stylesheet" href="/css/commons.css">
<link rel="stylesheet" href="/css/nav/nav-expanded.css">
<link rel="stylesheet" href="/css/applicationHome.css">
<div id="pageApplication"></div>
<script src="/js/bundle--vendor.js"></script>
@veeableful
veeableful / disable-macbook-power-on-chime.txt
Last active March 13, 2019 08:22
Disable MacBook power-on chime on Linux (thanks to cscs in Manjaro forum!)
# Run these commands manually!
sudo chattr -i /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
su -
printf "\x07\x00\x00\x00\x00" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
exit