// Hide keyboard middleware
const keyboardMiddleware = store => next => action => {
// If action is navigate screen
if(action.type == 'NAVIGATE_SCREEN'){
Keyboard.dismiss()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Specifically we are trying to do 2 things with the erlang `:ssh` module: | |
| # Make a connection (use :ssh.connect/4`) and pass in the ssh key from something other than a file on disk | |
| # And then with an open connection, bind the connection to a local port (i.e. setup a ssh tunnel) | |
| # use :ssh.tcpip_tunnel_to_server/5 or :ssh.tcpip_tunnel_to_server/6 | |
| # Example (working) code: | |
| defmodule SSHTunnel do | |
| @local_port 9999 | |
| @remote_port 1234 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const res = await fetch("https://dash.cloudflare.com/api/v4/zones/<your zone id>/dns_records?per_page=150", { | |
| "headers": { | |
| "x-atok": "<get from inspect network request>", | |
| "x-cross-site-security": "dash" | |
| }, | |
| "method": "GET", | |
| }); | |
| const data = await res.json() | |
| const records = data['result'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Verifying my Blockstack ID is secured with the address 1PSsDi2xZyryJy6Fa5aUAqLzYrXrMHpSuR https://explorer.blockstack.org/address/1PSsDi2xZyryJy6Fa5aUAqLzYrXrMHpSuR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| call plug#begin('~/.vim/plugged') | |
| " Theme VSCode Like | |
| Plug 'tomasiser/vim-code-dark' | |
| " Airline | |
| Plug 'vim-airline/vim-airline' | |
| " emmet-vim | |
| Plug 'mattn/emmet-vim' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ ~ gnome-session --session budgie-desktop --debug | |
| gnome-session-binary[10884]: DEBUG(+): Enabling debugging | |
| gnome-session-binary[10884]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login. | |
| gnome-session-binary[10884]: DEBUG(+): Using systemd for session tracking | |
| gnome-session-binary[10884]: DEBUG(+): GsmManager: setting client store 0x7f1ce0008110 | |
| gnome-session-binary[10884]: DEBUG(+): GsmXsmpServer: SESSION_MANAGER=local/x230:@/tmp/.ICE-unix/10884,unix/x230:/tmp/.ICE-unix/10884 | |
| gnome-session-binary[10884]: DEBUG(+): emitting SessionIsActive | |
| gnome-session-binary[10884]: DEBUG(+): fill: *** Getting session 'budgie-desktop' | |
| gnome-session-binary[10884]: DEBUG(+): fill: *** Looking if /home/sucipto/.config/gnome-session/sessions/budgie-desktop.session is a valid session file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/crypto/bcrypt" | |
| ) | |
| func main() { | |
| password := "MySecretPassowrd" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
| */ | |
| class VideoStream | |
| { | |
| private $path = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http; | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link https://gist.github.com/vluzrmos/d5682ad426525196d069 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: registry.gitlab.com/showcheap/android-ci:react-native | |
| before_script: | |
| - sdkmanager "platforms;android-23" | |
| - sdkmanager "build-tools;25.0.3" | |
| - export GRADLE_USER_HOME=`pwd`/.gradle | |
| - chmod +x ./android/gradlew | |
| - npm install | |
| cache: |
NewerOlder