Skip to content

Instantly share code, notes, and snippets.

View pH-7's full-sized avatar
:octocat:
💡Creative Engineer 🚀 Enjoying Learning New Exciting Things! 😋 =>My Way of Life 🏝

♚ PH⑦ de Soria™♛ pH-7

:octocat:
💡Creative Engineer 🚀 Enjoying Learning New Exciting Things! 😋 =>My Way of Life 🏝
View GitHub Profile
@AliMD
AliMD / gist:3344523
Created August 13, 2012 22:28
All github Emoji (Smiles)

All github Emoji (Smiles)

ali.md/emoji

:bowtie: | 😄 | 😆 | 😊 | 😃 | ☺️ | 😏 | 😍 | 😘 | :kissing_face: | 😳 | 😌 | 😆 | 😁 | 😉 | :wink2: | 👅 | 😒 | 😅 | 😓

😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | :neckbeard: | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷

😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨

@pH-7
pH-7 / .gitconfig
Last active October 26, 2022 00:13
My ~/.gitconfig
[user]
name = Pierre-Henry Soria
email = $EMAIL_ADDRESS
[init]
defaultBranch = main
[color]
diff = auto
status = auto
@andrewh
andrewh / qpasswd
Last active August 9, 2022 21:53
Password generator using a quantum random number generator
#!/usr/bin/env ruby
# qpasswd - password generator from quantum RNG
require 'open-uri'
rng = 'https://qrng.anu.edu.au/wp-content/plugins/colours-plugin/get_block_alpha.php'
ARGV.size < 1 ? pw_size = 16 : pw_size = ARGV[0].to_i
data = open(rng).read.strip.split('')
output = data.sample(pw_size)
Barriers to speed reading
--------------------------
Subvocalizing. Repeating what you read in your head (reading with your ears).
If you hear yourself reading, read faster.
Vocalizing. If your lips move as you read you are vocalizing your text. As long as you read vocalizing, you will only be able to read as fast as you can speak.
Let the texts pass into the mind directly from the eye, skipping the mouth and ear.
@pH-7
pH-7 / index.php
Last active July 15, 2020 22:23
Split Testing (marketing A/B testing) with Wordpress - Display a Random Page with Wordpress. Frensh Tutorial 👉 https://01script.com/page-aleatoire-wordpress-split-testing/
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
@JenniferMack
JenniferMack / md-toc.rb
Last active April 11, 2024 18:22
Create a table of contents for Ulysses markdown
#!/usr/bin/env ruby
toc = "# Table of Contents\n"
newmd = ""
ARGF.each_line do |line|
newmd << line
next if !line.start_with?("#")
heading = line.gsub("#", "").strip
@pH-7
pH-7 / udemy-full-discount.py
Last active December 6, 2022 12:51
Get all Udemy Courses with 100% off Coupons thanks to growthcoupon.com & Importer.io
##########
##
## Get all Udemy Courses with 100% off Coupons thanks to growthcoupon.com & Importer.io
##
##########
from json import loads
from bs4 import BeautifulSoup
import mechanize
@pH-7
pH-7 / mylocalserverip.sh
Last active May 21, 2023 03:17
Get my server local IP (saver time if you change very often your machine) - https://github.com/HiDeaUp/hideaup.github.io
ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
@parmentf
parmentf / GitCommitEmoji.md
Last active April 29, 2024 01:51
Git Commit message Emoji
@rvl
rvl / git-pushing-multiple.rst
Created February 9, 2016 11:41
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just