// Hide keyboard middleware
const keyboardMiddleware = store => next => action => {
// If action is navigate screen
if(action.type == 'NAVIGATE_SCREEN'){
Keyboard.dismiss()
This file contains 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 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 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 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 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 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 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 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: |
This file contains 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
# install latest postgresql | |
sudo yum install postgresql-server postgresql-contrib | |
# start postgresql | |
sudo systemctl start postgresql | |
# change postgres user password | |
sudo passwd postgres | |
# create a database and create a new user |
NewerOlder