ip add
vi /etc/network/interfaces
auto ens18
iface ens18 inet static
address 128.204.192.xxx
| { pkgs, ... }: { | |
| config.services = { | |
| mongodb = { | |
| service = { | |
| image = "mongo:latest"; | |
| container_name = "pgil-mongodb"; | |
| ports = [ "27030:27017" ]; | |
| volumes = [ "${toString ./.}/tmp/mongodb-data:/data/db" ]; | |
| stop_signal = "SIGINT"; | |
| }; |
| function timeoutPromise(prom, time) { | |
| let timer; | |
| return Promise.race([ | |
| prom, | |
| new Promise( | |
| (_r, rej) => | |
| (timer = setTimeout(rej, time, new Error("Promise timed out"))) | |
| ), | |
| ]).finally(() => clearTimeout(timer)); |
| The front says: | |
| <Story Title> | |
| As an X | |
| I want Y | |
| So that Z | |
| The back is split in two columns, labelled: |
| const Benchmark = require('benchmark'); | |
| const suite = new Benchmark.Suite(); | |
| const APPOINTMENT_WAITING_LIST_TABLE = 'appointment_waiting_list'; | |
| const INTERCEPTION_LIST_TABLE = 'interception_list'; | |
| async function seed_data() { | |
| await knex.raw(` | |
| INSERT INTO test.appointment_waiting_list (account_id,status,registered_at,rejection_reason,appointment_id,created_at,updated_at) VALUES |
| SELECT con.* | |
| FROM pg_catalog.pg_constraint con | |
| INNER JOIN pg_catalog.pg_class rel | |
| ON rel.oid = con.conrelid | |
| INNER JOIN pg_catalog.pg_namespace nsp | |
| ON nsp.oid = connamespace | |
| WHERE rel.relname = 'table_name'; |
| import contextlib | |
| import logging | |
| import dependency_injector.containers as containers | |
| import dependency_injector.providers as providers | |
| import sqlalchemy | |
| from sqlalchemy import orm, MetaData, Column, Integer, String, Table | |
| logger = logging.getLogger(__name__) |
| lspci -nnk | grep -i -EA3 "3d|display|vga" | |
| ls -l /etc/X11 | |
| mkdir ~/xorg-backup | |
| sudo mv -v /etc/X11/xorg.conf ~/xorg-backup/ | |
| sudo mv -v /etc/X11/xorg.conf.d ~/xorg-backup/ | |
| sudo vim /etc/X11/xorg.conf |
Currently there's no UI to check for all invitations to collaborate in projects, but Github API has an endpoint for that.
You need a personal access token with repo:invite rights in order to view the list of your invitations.
curl -H "Authorization: token YOUR_PERSONAL_ACCESS_TOKEN" \
https://api.github.com/user/repository_invitations
| # Requirements | |
| # debian/ubuntu | |
| apt-get -y update && apt-get -y upgrade | |
| apt-get -y install strongswan xl2tpd libstrongswan-standard-plugins libstrongswan-extra-plugins | |
| VPN_SERVER_IP='' | |
| VPN_IPSEC_PSK='y' | |
| VPN_USER='' | |
| VPN_PASSWORD='' |