Skip to content

Instantly share code, notes, and snippets.

View kalloc's full-sized avatar
🌋

kalloc kalloc

🌋
View GitHub Profile
import java.io.*;
import java.lang.ProcessBuilder;
import java.util.concurrent.TimeUnit;
public class Main {
public static void main(String[] args) {
// create a new list of arguments for our process
String[] list = {"bash", "-c", "yes Syntax Warning: Length in linearization table is invalid | head -n 10000 >&2"};
@kalloc
kalloc / clock.html
Last active November 25, 2020 20:28 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@kalloc
kalloc / .tmux.conf
Last active February 16, 2020 16:52
centos-mouse-guide.md
set mouse=n
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
if [[ "${TMUX}" != "" ]]; then
WINDOW=$(tmux display-message -p '#W')
FILE=$HOME/.bash_sessions/$(tmux display-message -p '#S')
if [[ ${WINDOW} != 'vim' ]];then
WINDOW='local'
fi
export HISTFILE=${FILE}-${WINDOW}
fi

SQL

  • Чем SQL отличается от NoSQL
  • Что такое транзакции?
  • Что такое CAP теорема?
  • Что такое ACID?

Python

  • Что такое GIL? Его особенности работы (конкурентность vs параллелизм)
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-whitelist=
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="refresh" content="10;URL=/ciez2a">
</head>
<body>
<script type="text/javascript">
function md5cycle(e,t){var i=e[0],a=e[1],r=e[2],n=e[3];a=ii(a=ii(a=ii(a=ii(a=hh(a=hh(a=hh(a=hh(a=gg(a=gg(a=gg(a=gg(a=ff(a=ff(a=ff(a=ff(a,r=ff(r,n=ff(n,i=ff(i,a,r,n,t[0],7,-680876936),a,r,t[1],12,-389564586),i,a,t[2],17,606105819),n,i,t[3],22,-1044525330),r=ff(r,n=ff(n,i=ff(i,a,r,n,t[4],7,-176418897),a,r,t[5],12,1200080426),i,a,t[6],17,-1473231341),n,i,t[7],22,-45705983),r=ff(r,n=ff(n,i=ff(i,a,r,n,t[8],7,1770035416),a,r,t[9],12,-1958414417),i,a,t[10],17,-42063),n,i,t[11],22,-1990404162),r=ff(r,n=ff(n,i=ff(i,a,r,n,t[12],7,1804603682),a,r,t[13],12,-40341101),i,a,t[14],17,-1502002290),n,i,t[15],22,1236535329),r=gg(r,n=gg(n,i=gg(i,a,r,n,t[1],5,-165796510),a,r,t[6],9,-1069501632),i,a,t[11],14,643717713),n,i,t[0],20,-373897302),r=gg(r,n=gg(n,i=gg(i,a,r,n,t[5],5,-701558691),a,r,t[10],9,38016083),i,a,t[15],14,-6604783
#!/bin/bash
# clean up
rm -rf /tmp/report
(mkdir /tmp/report || (echo "unable to create report dir";exit)) && cd /tmp/report
# system
free -m > free.log
cat /proc/cpuinfo > proc_cpuinfo.log
lspci > lspci.log
# os
mount > mount.log
@kalloc
kalloc / .eslintrc
Last active December 19, 2018 19:39
VSCode JS Linting
{
"parser": "babel-eslint",
"extends": [
"google",
"airbnb",
"plugin:flowtype/recommended",
"eslint:recommended"
],
"rules": {
"no-console": "off",
image: docker:dind
stages:
- build
build:
stage: build
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- apk add git go