Skip to content

Instantly share code, notes, and snippets.

El Acheche ANIS elacheche

Block or report user

Report or block elacheche

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View thinkmorse.sh
#!/bin/bash
modprobe -r ec_sys
modprobe ec_sys write_support=1
on="\x8a"
off="\x0a"
led(){
echo -n -e $1 | dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null
@elacheche
elacheche / git-serve.md
Created Sep 11, 2017 — forked from datagrok/git-serve.md
How to easily launch a temporary one-off git server from any local repository, to enable a peer-to-peer git workflow.
View git-serve.md

Launch a one-off git server from any local repository.

I [tweeted this already][1] but I thought it could use some expansion:

Enable decentralized git workflow: git config alias.serve "daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/"

Say you use a git workflow that involves working with a core "official" repository that you pull and push your changes from and into. I'm sure many companies do this, as do many users of git hosting services like Github.

Say that server, or Github, goes down for a bit.

@elacheche
elacheche / README.md
Created Mar 27, 2017 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications
View README.md


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@elacheche
elacheche / pedantically_commented_playbook.yml
Created Jun 16, 2016 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@elacheche
elacheche / HUAWEI_E3531.sh
Last active Sep 1, 2019
Little script to enable HUAWEI E3531 on Ubuntu
View HUAWEI_E3531.sh
sudo apt-get update && sudo apt-get install usb-modeswitch && v=$(lsusb | grep "Huawei" | awk '{ print $6 }' | awk -F: '{ print $1 }'); p=$(lsusb | grep "Huawei" | awk '{ print $6 }' | awk -F: '{ print $2 }'); sudo usb_modeswitch -v $v -p $p -M '55534243123456780000000000000011062000000100000000000000000000'
View OpenCV_Install.sh
#!/bin/bash
######### README ########
# Script based on Geekette86 (http://about.me/geekette86 ) Work
# Ooriginal post ( http://on.fb.me/1vYeJ1a )
# TXT file link( http://bit.ly/1uXABTp )
# Script created and tested under Ubuntu 14.04
# Install dependencies
@elacheche
elacheche / check.py
Last active Aug 29, 2015 — forked from nealrs/check.py
Supply a text file contain a list of emails (adress per line) and this script will run through common email patterns to find valid email addresses.
View check.py
#!/usr/bin/env python
# encoding: utf-8
# install dependencies: sudo pip install validate_email pyDNS
# run it: python check.py file.csv
# python check py file.txt
# FYI, forwarding addresses (not catchalls) will report 'probably not valid'. that's all i've got right now.
You can’t perform that action at this time.