I hereby claim:
- I am tejzpr on github.
- I am tejzpr (https://keybase.io/tejzpr) on keybase.
- I have a public key ASAyqS7BrrmWS1qGZCUd1x--BNCoMgP8QHORWMe0RH6sNwo
To claim this, I am signing this object:
sudo dd bs=4M if=~/Downloads/Fedora-KDE-Live-x86_64-28-1.1.iso of=/dev/sdb status=progress conv=fdatasync | |
#Get Usb drive name by issuing the following command | |
#fdisk -l | |
#http://www.webupd8.org/2014/04/prevent-your-laptop-from-overheating.html |
(function execute(inputs, outputs) { | |
var provider = new sn_cc.StandardCredentialsProvider(); | |
var credential = provider.getCredentialByID("credential_id"); | |
var user = credential.getAttribute("user_name"); | |
var pass = credential.getAttribute("password"); | |
var oAuthClient = new sn_auth.GlideOAuthClient(); | |
var params ={grant_type:"password", username:user, password:pass}; | |
var json = new global.JSON(); | |
var extraParams = json.encode(params); |
package main | |
import ( | |
"fmt" | |
"github.com/skratchdot/open-golang/open" | |
"net" | |
"net/http" | |
) | |
func main() { |
String.prototype.strstr = function(needle) { | |
const haystack = this; | |
if(!needle) return [0]; | |
if(!haystack || needle.length > haystack.length) return [-1]; | |
let i,j; | |
let positions = []; | |
for(i=0;i<haystack.length;i++) { | |
let index = i; | |
j=0; |
package main | |
import ( | |
"fmt" | |
"strings" | |
) | |
func main() { | |
fmt.Println(strstr("Hello how how are you", "How")) | |
} |
I hereby claim:
To claim this, I am signing this object:
Apache License | |
Version 2.0, January 2004 | |
http://www.apache.org/licenses/ | |
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
1. Definitions. | |
"License" shall mean the terms and conditions for use, reproduction, | |
and distribution as defined by Sections 1 through 9 of this document. |
package main | |
import "fmt" | |
func fnvHash32(key string) uint32 { | |
hash := uint32(2156825496) | |
const prime32 = uint32(16777619) | |
for i := 0; i < len(key); i++ { | |
hash *= prime32 | |
hash ^= uint32(key[i]) |
//Fastest way to copy a Collection in MongoDB | |
db.getCollection('OriginalCollection').aggregate([ { $out: "ClonedCollection" } ]); |
defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock