Skip to content

Instantly share code, notes, and snippets.

View lifeofcoding's full-sized avatar
💭
4RwPdnGala2QfMua

Jimmy Rousseau lifeofcoding

💭
4RwPdnGala2QfMua
View GitHub Profile
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2017 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
# All SpaceVim option below [option] section
[options]
const puppeteer = require('puppeteer-extra')
const request = require('request')
const cheerio = require('cheerio')
const GET_NICE_TEXT_JS = function() {
var s = window.getSelection()
s.removeAllRanges()
var r = document.createRange()
r.selectNode(document.body)
s.addRange(r)
const pool = require('./proxies.js')
const useProxy = require('puppeteer-page-proxy')
const fs = require('fs')
const sh = require('shelljs')
const regex = /.*@[a-z]*\.[a-z]{2,3}:\S*/gim
const Counts = require('./.count.json')
const argv = require('yargs')
.option('source', {
alias: 's',
describe: 'combo list file to check',
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:/snap/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/lifeofcoding/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@lifeofcoding
lifeofcoding / volumecmds.txt
Last active April 29, 2020 19:23
volume commands for custom shortcuts
pactl -- set-sink-volume @DEFAULT_SINK@ +10% # raise volume by each 10% (more than 100% possible, might distort the sound)
pactl -- set-sink-volume @DEFAULT_SINK@ -10% # reduce volume by each 10%
pactl -- set-sink-mute @DEFAULT_SINK@ toggle # mute/unmutes audio
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:/snap/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/root/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
apt install arc-theme adapta-gtk-theme papirus-icon-theme sugar-themes sugar-icon-theme xfwm4-theme-breeze zsh-theme-powerlevel9k screenfetch shiki-brave-theme s5 psi-plus-webkit node-xterm moka-icon-theme materia-gtk-theme libjs-xterm libjs-prettify gtk2-engines gtk2-engines-aurora gtk2-engines-cleanice gtk2-engines-murrine gtk2-engines-nodoka gtk2-engines-oxygen gtk2-engines-sugar gtk-theme-switch greybird-gtk-theme faba-icon-theme faenza-icon-theme elementary-xfce-icon-theme darkmint-gtk-theme darkcold-gtk-theme crystalcursors breeze-gtk-theme breeze-icon-theme blackbird-gtk-theme adapta-gtk-theme
@lifeofcoding
lifeofcoding / appetize.io.js
Created October 22, 2019 08:31
appetize.io
// use the 'request' module from npm
var request = require('request');
request.post({
url: 'https://APITOKEN@api.appetize.io/v1/apps',
json: {
url: 'FILE URL',
platform: 'ios'
}
}, function(err, response, body) {
if (err) {
@lifeofcoding
lifeofcoding / handler.js
Created September 4, 2019 11:28 — forked from jeffrafter/handler.js
Simple HTTP Server and Router in node.js
exports.createHandler = function (method) {
return new Handler(method);
}
Handler = function(method) {
this.process = function(req, res) {
params = null;
return method.apply(this, [req, res, params]);
}
}
const os = require('os');
const ifaces = os.networkInterfaces();
const localtunnel = require('localtunnel');
const argv = require('argv');
const args = argv.option({
name: 'domain',
short: 'd',
type: 'string',
description: 'Set subdomain of heroku app',