Skip to content

Instantly share code, notes, and snippets.

View lifeofcoding's full-sized avatar
💭
4RwPdnGala2QfMua

Jimmy Rousseau lifeofcoding

💭
4RwPdnGala2QfMua
View GitHub Profile
@lifeofcoding
lifeofcoding / create-react-app-on-heroku.sh
Created May 6, 2019 04:59 — forked from hackur/create-react-app-on-heroku.sh
Create a React app & deploy to Heroku
## Global install of the app generator
npm install -g create-react-app
## Setup the app (first-time only)
create-react-app my-app
cd my-app
git init
# Create the Heroku app; requires free account at https://www.heroku.com/
heroku create -b https://github.com/heroku/heroku-buildpack-static.git
const localtunnel = require('localtunnel')
const tunels = [{
subdomain: 'jewmachine',
local_host: '192.168.1.101',
port: 6080,
}]
const tlTunels = {}
# ##################################################################
# Script Name : vnc-startup.sh
# Description : Perform an automated install of X11Vnc
# Configure it to run at startup of the machine
# Date : Feb 2016
# Written by : Griffon
# Web Site :http://www.c-nergy.be - http://www.c-nergy.be/blog
# Version : 1.0
#
# Disclaimer : Script provided AS IS. Use it at your own risk....
@lifeofcoding
lifeofcoding / multithreading_proxy_scraper.py
Created July 24, 2019 16:26
multithreading proxy scraper
# -*- coding: utf-8 -*-
from multiprocessing import Pool
from multiprocessing.dummy import Pool as ThreadPool
import re, os
from urllib2 import urlopen
Path = os.path.dirname(os.path.realpath(__file__))
with open(Path+'\\url.txt', 'r') as file:
urls = file.readlines()
@lifeofcoding
lifeofcoding / data.py
Created July 24, 2019 16:46
Proxy scraper and multithreaded checker
import random
import datetime
user_agent_list = [
# Chrome
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36',
'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36',
'Mozilla/5.0 (Windows NT 5.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36',
'Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36',
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36',
qemu-img convert -O raw source.vhd output.raw
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',
@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]);
}
}
@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) {
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