Skip to content

Instantly share code, notes, and snippets.

View oamaok's full-sized avatar

Teemu Pääkkönen oamaok

View GitHub Profile
#!/bin/bash --
sudo add-apt-repository 'ppa:wine/wine-builds' -y
sudo apt-get update
sudo apt-get install winehq-staging winbind aria2 -y
aria2c 'https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks' -d ~ -o 'winetricks' --allow-overwrite=true
chmod +x ~/'winetricks'
mkdir -p ~/'.cache/winetricks/dotnet40'
aria2c 'https://gitlab.com/Espionage724/Linux/raw/master/Wine/Files/gacutil-net40.tar.bz2' 'https://github.com/Espionage724/Linux-Stuff/raw/master/Wine/Files/gacutil-net40.tar.bz2' -d ~/'.cache/winetricks/dotnet40' -o 'gacutil-net40.tar.bz2' --allow-overwrite=true
aria2c 'https://m1.ppy.sh/r/osu!install.exe' 'https://m2.ppy.sh/r/osu!install.exe' -d ~ -o 'osu!install.exe' --check-certificate=false --allow-overwrite=true
mkdir -p ~/'Wine Prefixes'
@oamaok
oamaok / a
Created August 11, 2016 15:40
https://gist.github.com/oamaok/76ed34e9dc59ce1f3f77a72b48b4d6c0
@oamaok
oamaok / i3config
Last active December 30, 2016 13:36
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
rofi.color-enabled: true
rofi.color-window: #393939, #393939, #268bd2
rofi.color-normal: #393939, #ffffff, #393939, #268bd2, #ffffff
rofi.color-active: #393939, #268bd2, #393939, #268bd2, #205171
rofi.color-urgent: #393939, #f3843d, #393939, #268bd2, #ffc39c
command=$SCRIPT_DIR/$BLOCK_NAME
separator_block_width=15
[mediaplayer]
color=#2288dd
label=♪
instance=spotify
interval=5
signal=10
{
"color_scheme": "Packages/User/SublimeLinter/itg.dark (SL).tmTheme",
"folder_exclude_patterns":
[
"node_modules",
".git"
],
"font_face": "Monaco",
"font_size": 9,
"ignored_packages":
@oamaok
oamaok / PS1
Created December 30, 2016 14:20
PS1='\[\e[1;32m\]\w \$ \[\e[0m\]'
class AsyncArray {
constructor(value) {
this.promise = Promise.resolve(value);
}
filter(fn) {
const promise = this.promise.then(value => Promise.all([
Promise.all(value.map(fn)),
value,
]))
@oamaok
oamaok / Form.jsx
Last active June 30, 2017 22:03
bindState
import React from 'react';
import { bindState, bindStateDeep } from './utils';
export default class Form extends React.Component {
constructor(props) {
super(props);
this.state = {
firstName: '',
lastName: '',
function Foo(value) {
this.value = value;
}
Foo.prototype.bar = function () {
function someCall() {
return this.value;
}
const anotherCall = () => {