This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !dpi should be 125.37, but thats just huge | |
| !the rest has been taken from the arch forum | |
| xft.dpi: 110 | |
| xft.antialias: true | |
| xft.rgba: rgb | |
| xft.hinting: true | |
| xft.hintstyle: hintslight | |
| !xterm settings, mostly taken from the arch wiki | |
| xterm*reverseVideo: on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs') | |
| const getContent = (command) => | |
| `Set oShell = CreateObject ("WScript.Shell") : oShell.run "cmd /c start ${command}", 0, False` | |
| const items = { | |
| 'PC Settings': 'ms-settings:', | |
| 'Closed captioning': 'ms-settings:easeofaccess-closedcaptioning', | |
| 'High contrast': 'ms-settings:easeofaccess-highcontrast', | |
| 'Keyboard': 'ms-settings:easeofaccess-keyboard', | |
| 'Magnifier': 'ms-settings:easeofaccess-magnifier', | |
| 'Mouse': 'ms-settings:easeofaccess-mouse', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as log from 'loglevel' | |
| // # create bem | |
| // | |
| // ``` | |
| // const bem = createBem('my-favorite-foods') | |
| // | |
| // bem.b() === 'my-favorite-foods' | |
| // bem.b('ordered') === 'my-favorite-foods--ordered' | |
| // bem.b(['ordered', 'waiting-for']) === 'my-favorite-foods--ordered my-favorite-foods--waiting-for' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs') | |
| const path = require('path') | |
| const shell = require('shelljs') | |
| const prettier = require('prettier') | |
| const args = process.argv | |
| const doGitAdd = args.includes('--git-add') || args.includes('-ga') | |
| const FILTER_PATTERN = /\.tsx?$/ | |
| shell.config.silent = true | |
| const changedFiles = shell.exec('git status --porcelain=v1 -z') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import store, { IState } from '../../actions' | |
| import { connect } from 'react-redux' | |
| const isFunc = (item) => typeof item === 'function' | |
| const isNotFunc = (item) => !isFunc(item) | |
| const filter = (obj, comp) => { | |
| return Object.keys(obj).reduce((acc, key) => { | |
| if (comp(obj[key])) { | |
| acc[key] = obj[key] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // save bandcamp album tracks to a pls playlist; | |
| // mp3 file urls are protected by a token, so these playlist | |
| // will "expire", but at least one can use a native player; | |
| // still, please do read http://bandcamp.com/help/audio_basics#steal | |
| // and http://bandcamp.com/terms_of_use | |
| // | |
| // ``` | |
| // mkdir bandcamp-pls && \ | |
| // cd bandcamp-pls && \ | |
| // npm init --yes && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # EDITORCONFIG | |
| # ============ | |
| echo "\ | |
| root = true | |
| [*] | |
| indent_style = space |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| NOCOLOR='\e[0m' | |
| RED='\e[0;31m' | |
| GREEN='\e[0;32m' | |
| YELLOW='\e[1;33m' | |
| CYAN='\e[0;36m' | |
| command -v ffmpeg >/dev/null 2>&1 || { echo >&2 "${RED}ffmpeg not installed!${NOCOLOR}"; exit 1; } | |
| echo -e "You can select a window for ${CYAN}fixed coordinates${NOCOLOR} in 3 seconds." | |
| sleep 3 | |
| echo "Select window!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const path = require('path'); | |
| const dir = path.join(__dirname, '/../locales'); | |
| fs.readdir(dir, (err, files) => { | |
| files.filter(fn => /\.json$/.test(fn)).forEach(fn => { | |
| fs.readFile(path.join(dir, fn), (err, s) => { | |
| s = s + ''; | |
| let lang = {}; | |
| try { | |
| lang = JSON.parse(s); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| read -p "This will RECURSIVELY process all music files and downgrade them; are you sure? " -n 1 -r | |
| echo | |
| if [[ ! $REPLY =~ ^[Yy]$ ]]; then | |
| [[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1 | |
| fi | |
| shopt -s nullglob | |
| # recursively find all music files and then convert them one by one to 128k mp3 | |
| find . -type f -iname "*.mp3" -o -iname "*.flac" -o -iname "*.mpc" -o -iname "*.ogg" | while read file; do | |
| cd "$(dirname "${file}")" |