Skip to content

Instantly share code, notes, and snippets.

View guiliredu's full-sized avatar
🚀
Working

Guilherme Dias Redü guiliredu

🚀
Working
View GitHub Profile
@biojazzard
biojazzard / facebook_page_latest_post_no_php_sdk.php
Created March 6, 2016 11:32
Get Latest Post From a Facebook Page without PHP SDK (Graph Version v2.5)
<?php
/*
1.- Create an App.
2.- Go to: https://developers.facebook.com/tools/explorer/
+ Select your new created app on the right top.
+ Select "Get App Token"
@gabonator
gabonator / camera.md
Created June 4, 2016 13:48
Cheap chinese IP camera with H264 encoding based on Hisilicon 8M (Hi3518E) chip

Cheap chinese IP camera with H264 encoding based on Hisilicon 8M (Hi3518E) chip

Video stream url for VLC/DVR:

  • rtsp://192.168.1.93:554/user=admin&password=&channel=&stream=.sdp?real_stream--rtp-caching=100

Telnet access

  • telnet 192.168.1.10 23
  • Localhost login: root
  • Password: xmhdipc
@otkrsk
otkrsk / multiple-ssh-authkeys.md
Last active May 28, 2025 13:43
Add multiple SSH keys to the authorized_keys file to enable SSH authentication when connecting to a server.

Step 1: Generate first ssh key Type the following command to generate your first public and private key on a local workstation. Next provide the required input or accept the defaults. Please do not change the filename and directory location.

workstation 1 $ ssh-keygen -t rsa

Finally, copy your public key to your remote server using scp

@taylorotwell
taylorotwell / weather.sh
Last active August 27, 2019 13:40
Weather CLI
alias weather='curl -s wttr.in | sed -n "1,7p"'
@tedw
tedw / ua-classes.js
Created March 2, 2017 19:02
Add user agent classes
// Add user agent classes
(function() {
var ua = navigator.userAgent,
d = document.documentElement,
classes = d.className;
// Replace 'no-js' class name with 'js'
classes = classes.replace('no-js','js');
// Detect iOS (needed to disable zoom on form elements)
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 19, 2025 02:37
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 17, 2025 06:10
set -e, -u, -o, -x pipefail explanation

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@torian257x
torian257x / multiple_mix.md
Created November 4, 2021 15:04
multiple webpack.mix.js

I have a similar setup, wherein I load different main entry files for the admin area and the main app. I use the following setup:

    //webpack.mix.js .
    
    if (process.env.section) {
        require(`${__dirname}/webpack.mix.${process.env.section}.js`);
      }