Skip to content

Instantly share code, notes, and snippets.

View suciptoid's full-sized avatar
👋
Hello World

Sucipto suciptoid

👋
Hello World
View GitHub Profile
@suciptoid
suciptoid / delete-cloudflare.js
Created September 10, 2021 08:29
Bulk Delete Cloudflare domain Records
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']
Verifying my Blockstack ID is secured with the address 1PSsDi2xZyryJy6Fa5aUAqLzYrXrMHpSuR https://explorer.blockstack.org/address/1PSsDi2xZyryJy6Fa5aUAqLzYrXrMHpSuR
@suciptoid
suciptoid / .vimrc
Created April 3, 2019 13:07
Vimrc Coc
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'
➜ ~ 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
@suciptoid
suciptoid / bcrypt.go
Created April 28, 2018 12:37
bcrypt implementation sample in Go
package main
import (
"fmt"
"golang.org/x/crypto/bcrypt"
)
func main() {
password := "MySecretPassowrd"
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
@suciptoid
suciptoid / App_Http_VideoStream.php
Created January 19, 2018 09:21 — forked from vluzrmos/App_Http_VideoStream.php
Laravel VideoStream.
<?php
namespace App\Http;
/**
* Description of VideoStream
*
* @author Rana
* @link https://gist.github.com/vluzrmos/d5682ad426525196d069
*/
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:
@suciptoid
suciptoid / index.md
Created November 10, 2017 07:34
Hide keyboard middleware React Native Navigation + Redux

Create Redux middleware to hide keyboard (if open) when navigating screen

// Hide keyboard middleware
const keyboardMiddleware = store => next => action => {

    // If action is navigate screen
    if(action.type == 'NAVIGATE_SCREEN'){
 Keyboard.dismiss()
@suciptoid
suciptoid / postgreSQL-openSUSE-13.2
Created April 25, 2017 15:34 — forked from di3goleite/postgreSQL-openSUSE-13.2
PostgreSQL on openSUSE 13.2
# 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