Skip to content

Instantly share code, notes, and snippets.

View Husamui's full-sized avatar
🏗️
Building

Husam Alrubaye Husamui

🏗️
Building
View GitHub Profile
@Husamui
Husamui / Coverage Badges
Created April 11, 2024 18:21
Coverage Badges
Coverage Badges
{"version":1,"resource":"file:///Users/husamimac/Float/USER%20FLOW.dio","entries":[{"id":"GCL3.dio","source":"renamed.source","timestamp":1649465879570},{"id":"00YB.dio","source":"Workspace Edit","timestamp":1649476260937},{"id":"kASR.dio","source":"Workspace Edit","timestamp":1649566284570}]}
const signIn = async (username) => {
let currentPasswordIndex = 0;
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://www.reddit.com/login');
// Runs once for each username/password combo
const tryPassword = async () => {
@Husamui
Husamui / app.js
Created March 8, 2018 15:40
react apollo boost
import React from 'react';
import { AppLoading } from 'expo';
import { StyleSheet, Text, View } from 'react-native';
import ApolloClient from 'apollo-boost';
import { ApolloProvider } from 'react-apollo';
import { merge } from 'lodash'
import { userResolver } from './src/graphql/resolvers/userResolver'
@Husamui
Husamui / StringFormat.js
Last active September 26, 2017 18:00
Replace invalid characters with underscore
string.replace(/[^a-zA-Z0-9.-]/g, "_");
@Husamui
Husamui / git-tag-delete-local-and-remote.sh
Created December 5, 2016 17:45 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@Husamui
Husamui / NodeJS.sh
Created October 20, 2016 17:26
Installing tools from source code linux
#Download the source code
curl -O https://nodejs.org/dist/v4.2.4/node-v4.2.4.tar.gz
#unzip files
tar -xvf node-v4.2.4.tar.gz && rm node-v4.2.4.tar.gz
# cd it to main dircatory
cd node-v4.2.4/
#Run tool's configurion
@Husamui
Husamui / commands
Created October 19, 2016 17:02 — forked from Savjee/commands
Jenkins-install-commands
# Install JRE & JDK
sudo apt-get install openjdk-7-jre
sudo apt-get install openjdk-7-jdk
# Download the security key for the Jenkins repository
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
# Add the key to the trusted keys for apt-get
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
@Husamui
Husamui / Gulp Files Rename task.js
Last active November 29, 2015 17:37
Gulp Files Rename
var gulp = require('gulp'),
rename = require("gulp-rename");
gulp.task('default', ['rename']);
gulp.task('rename', function () {
return gulp.src('./icons_svg/*.svg')
.pipe(rename(function (path) {
var newName = path.basename.split("_");
path.basename = newName[1];
@Husamui
Husamui / Custom-select-menu.markdown
Created November 21, 2013 04:29
A Pen by Husam.