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
export TERM="xterm-256color" # This sets up colors properly | |
# workaround as per https://superuser.com/questions/1222867/zsh-completion-functions-broken | |
FPATH=$HOME/.oh-my-zsh/plugins/git:$HOME/.oh-my-zsh/functions:$HOME/.oh-my-zsh/completions:/usr/share/zsh/site-functions:/usr/share/zsh/$ZSH_VERSION/functions | |
export FPATH | |
# set shell | |
export SHELL=/usr/bin/zsh |
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
// This function takes ownership of the passed value | |
fn take_ownership(value: Box<i32>) { | |
println!("Destroying box that contains {}", value); // value is destroyed here, and memory gets freed | |
} | |
// This function borrows the value by reference | |
fn borrow(reference: &i32) { | |
println!("This is: {}", reference); | |
} |
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
code --install-extension QassimFarid.ejs-language-support | |
code --install-extension SirTori.indenticator | |
code --install-extension TimonVS.ReactSnippetsStandard | |
code --install-extension TwentyChung.jsx | |
code --install-extension abusaidm.html-snippets | |
code --install-extension asvetliakov.move-imports | |
code --install-extension aws-scripting-guy.cform | |
code --install-extension bierner.markdown-preview-github-styles | |
code --install-extension ccitiriga.TSMethodCreator | |
code --install-extension christian-kohler.npm-intellisense |
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
# If you come from bash you might have to change your $PATH. | |
export SHELL=/usr/bin/zsh | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/deepu/.oh-my-zsh" | |
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.zsh_history | |
HISTSIZE=5000 | |
SAVEHIST=5000 | |
setopt autocd |
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
application { | |
config { | |
baseName store | |
applicationType gateway | |
packageName com.okta.developer.store | |
serviceDiscoveryType no | |
authenticationType jwt | |
prodDatabaseType postgresql | |
cacheProvider hazelcast | |
buildTool gradle |
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
/* Store gateway application */ | |
application { | |
config { | |
baseName store | |
applicationType gateway | |
packageName com.mycompany.store | |
serviceDiscoveryType eureka | |
authenticationType jwt | |
prodDatabaseType mysql |
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
{ | |
"applications": [ | |
{ | |
"config": { | |
"baseName": "store", | |
"applicationType": "gateway", | |
"packageName": "com.jhipster.demo.store", | |
"packageFolder": "com/jhipster/demo/store", | |
"serviceDiscoveryType": "no", | |
"authenticationType": "jwt", |
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
application { | |
config { | |
baseName store | |
applicationType gateway | |
packageName com.jhipster.demo.store | |
serviceDiscoveryType no | |
authenticationType jwt | |
prodDatabaseType postgresql | |
cacheProvider hazelcast | |
buildTool gradle |
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
application { | |
config { | |
baseName store | |
applicationType gateway | |
packageName com.jhipster.demo.store | |
serviceDiscoveryType no | |
authenticationType jwt | |
prodDatabaseType mysql | |
cacheProvider hazelcast | |
buildTool gradle |
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
use std::fs::File; | |
use std::io::prelude::*; | |
use std::usize; | |
fn lookup_ptr(addr: usize) -> std::io::Result<Option<String>> { | |
let mut contents = String::new(); | |
File::open("/proc/self/maps")?.read_to_string(&mut contents)?; | |
Ok(contents | |
.split("\n") | |
// Uncomment this if you are only interested in stack and heap |
NewerOlder