Skip to content

Instantly share code, notes, and snippets.

var CookieHandler = {
createCookie: function (name, value, days) {
console.log("create cookie: " + name + ", value: " + value);
var expires;
if (!days) {
days = 1000;
}
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
package org.whatever.request.delay;
import java.io.IOException;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.ServletException;

SELECT from WORLD

world(name, continent, area, population, gdp)

Easy questions

Show the name, continent and population of all countries.

  • SELECT name, continent, population FROM world

Show the name for the countries that have a population of at least 200 million. 200 million is 200000000, there are eight zeros.

  • SELECT name FROM world WHERE population >= 200000000

---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
k8s-addon: cluster-autoscaler.addons.k8s.io
app: cluster-autoscaler
name: cluster-autoscaler
namespace: kube-system
---
google-chrome --disable-infobars --verbose --no-proxy-server --use-fake-device-for-media-stream --auto-select-desktop-capture-source='Entire screen' --use-file-for-fake-video-capture=/tmp/testing_data/fakeAudioVideo/video/counting_1_15.y4m --use-file-for-fake-audio-capture=/tmp/testing_data/fakeAudioVideo/audio/counting_1_15.wav
The AWS Client VPN for Linux is only provided for Ubuntu as a .deb package. I need it for Fedora. This was tested on Fedora 33.
https://docs.aws.amazon.com/vpn/latest/clientvpn-user/client-vpn-connect-linux.html
Get the vpn client deb package.
```
curl https://d20adtppz83p9s.cloudfront.net/GTK/latest/awsvpnclient_amd64.deb -o awsvpnclient_amd64.deb
```
Install `alien` to convert the deb package to rpm.