Skip to content

Instantly share code, notes, and snippets.

View zhangxueyii's full-sized avatar

RichardZh zhangxueyii

  • Shanghai
View GitHub Profile
@oshliaer
oshliaer / discord_ubuntu_dependencies.md
Last active August 30, 2023 00:13
Discord Ubuntu dependencies
> sudo dpkg -i /tmp/discord-0.0.5.deb

Selecting previously unselected package discord.
(Reading database ... 161079 files and directories currently installed.)
Preparing to unpack /tmp/discord-0.0.5.deb ...
Unpacking discord (0.0.5) ...
dpkg: dependency problems prevent configuration of discord:
 discord depends on libappindicator1; however:
  Package libappindicator1 is not installed.
@mchlstckl
mchlstckl / Property.kt
Last active August 4, 2023 07:37
Example entity with composite key Spring Boot and Kotlin
// This will not serialize!
data class Muppet(val name: String)
// This will serialize!
data class Puppet(val name: String = "")
// Composite key class must implement Serializable
// and have defaults.
class PropertyId(
val uuid: UUID = UUID.randomUUID(),
@nadeemahmad
nadeemahmad / log-level.sh
Created January 6, 2016 22:51
Bash library for logging
##
# Log levels for bash scripts
# vim: set ft=sh :
##
# Date format for logging
declare -r DATE_FORMAT='+%Y-%m-%d:%H:%M:%S:%:z'
##
# These are the "methods" that your script will use to do the logging
@RobertAudi
RobertAudi / ideavimrc
Created July 28, 2014 08:46
System clipboard support in IdeaVim
nnoremap yy "+yy
vnoremap y "+y
nnoremap p "+p
vnoremap p "+p
nnoremap P "+P
vnoremap P "+P