uname -r
dpkg --list | grep linux-image
$ openssl req -new -key example.com.key > example.com.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
a = 1 | |
b = nil | |
c = a and b #(c = a) and b | |
=> c = 1 | |
c = a && b # c = (a && b) | |
=> c = nil |
test_hash = { | |
a: 1, | |
b: 2, | |
c: { | |
d: 4, | |
e: 5, | |
a: 1 | |
} | |
} |
module A | |
def method_a | |
puts 'instance method A' | |
end | |
class_methods do | |
def method_a | |
puts 'class method A' | |
end | |
end |
If you have a react project that depends on a package and you need to update your package, keep reading! This article will not talk about example folder created with create-react-library.
We are building a simple React App that will have only one component that take a string as props and display the reversed string. Then adding a new Component that take a sentence and reverse the words inside the sentence.
Not very usefull but easy example to get started with dependencies.
# fetch data from master | |
git co master | |
git pull origin master | |
git co feature/branch | |
git rebase -i diverged_commit | |
# Keep only the first commit (the upper one, dont know why...) | |
git rebase master |
#!/bin/sh | |
ps -eo rss,pid,user,command | sort -rn | head -25 | awk '{ | |
hr[1024**2]="GB"; hr[1024]="MB"; | |
for (x=1024**3; x>=1024; x/=1024) { | |
if ($1>=x) { printf ("%-6.2f %s ", $1/x, hr[x]); break } | |
} } { printf ("%-6s %-10s ", $2, $3) } | |
{ for ( x=4 ; x<=NF ; x++ ) { printf ("%s ",$x) } print ("\n") } | |
' |
// Mostly Inspired by https://github.com/KilledByAPixel/1Keys | |
var octave = 1 | |
var key = 0 | |
var shape = 'sine' | |
var audioCtx = new AudioContext(); | |
var instruments = [ "1", "2", "4", "8" ] | |
var soundDuration = 250 | |
play = (i) => { |