Skip to content

Instantly share code, notes, and snippets.

View voratham's full-sized avatar
🤔
finding learning new thing ?

Voratham.Siri voratham

🤔
finding learning new thing ?
View GitHub Profile
@smijar
smijar / k3d-create-cluster-no-traefik.sh
Last active March 27, 2025 17:14
k3d create cluster without traefik and serverlb
# Possibly obsolete: k3d create --name testcls1 --workers 3
k3d create --name testcls1 --workers 3 --server-arg "--no-deploy=traefik" --server-arg "--no-deploy=servicelb"
# UPDATE: in newer versions onwards, this has evolved to (thanks to comments below):
k3d cluster create --k3s-arg "--no-deploy=traefik@server:*"
@kidchenko
kidchenko / config.yml
Last active September 4, 2019 02:10
Codesanook #06
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:8-browsers
#!/bin/bash
# Tested with elasticsearch version 6.1.3
# Delete the existed one
curl -XDELETE localhost:9200/test?pretty
# Put new mapping
curl -XPUT localhost:9200/test?pretty -H 'Content-Type: application/json' -d '{
"settings": {
import {
trim,
match,
replace,
split,
test,
toLower,
toString,
toUpper,
partial,
@AlexBrasileiro
AlexBrasileiro / index.js
Last active November 17, 2024 01:09
ShareYourFeedback
// inspiration: https://dribbble.com/shots/4370657-Share-Your-Feedback
import React, { Component, Fragment } from "react";
import { Animated, StyleSheet, Text, View, TouchableOpacity, Dimensions, Platform, Easing, TextInput, KeyboardAvoidingView, Image } from "react-native";
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
const { width: windowWidth } = Dimensions.get('window');
const Icon = (props) => <FontAwesome5 {...props} />
Go to https://www.jetbrains.com/pycharm/ and download your pycharm
Install pycharm
Go here for how to do your settings: pycharm odoo template coding https://www.youtube.com/watch?v=vytzDo33qdM https://github.com/mohamedmagdy/odoo-pycharm-templates
Download settings.jar https://github.com/mohamedmagdy/odoo-pycharm-templates
Open pycharm
File | Import Settings... > find the settings file > Ok
File | Invalidate Chaches / Restart... > Just Restart
@MaHu6
MaHu6 / privatekey_export_keystore.py
Created August 8, 2018 09:38
according privatekey export keystore
# pip3 install web3
from web3 import Web3
import json
# network = "https://ropsten.infura.io/your_key"
network = "http://127.0.0.1:8545"
web3 = Web3(Web3.HTTPProvider(network))
@gaearon
gaearon / index.html
Last active April 1, 2025 01:48
Add React in One Minute
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
Mining Rig:
============
https://github.com/rodneymo/rig-monitorv2
Mining Pool:
=============
Node.js Ethereum Mining Pool:
https://github.com/sammy007/open-ethereum-pool
Proxies:
const pick = (obj, arr) =>
arr.reduce((acc, curr) => (curr in obj && (acc[curr] = obj[curr]), acc), {});
// pick({ 'a': 1, 'b': '2', 'c': 3 }, ['a', 'c']) -> { 'a': 1, 'c': 3 }