This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"locale":"uk","category_tree":[{"id":666793,"label":"Роботи","listing_shapes":[{"id":293219,"label":"Потреба"},{"id":293220,"label":"Моя допомога"}],"subcategories":[{"id":666805,"label":"IT / Розробка / Зв'язок","listing_shapes":[{"id":293219,"label":"Потреба"},{"id":293220,"label":"Моя допомога"}],"subcategories":[]},{"id":666812,"label":"Тексти / Переклади","listing_shapes":[{"id":293219,"label":"Потреба"},{"id":293220,"label":"Моя допомога"}],"subcategories":[]},{"id":667542,"label":"Прості онлайн роботи","listing_shapes":[{"id":293219,"label":"Потреба"},{"id":293220,"label":"Моя допомога"}],"subcategories":[]},{"id":666807,"label":"Дизайн / Графіка","listing_shapes":[{"id":293219,"label":"Потреба"},{"id":293220,"label":"Моя допомога"}],"subcategories":[]},{"id":666820,"label":"Перевезення / Логістика / Склад","listing_shapes":[{"id":293219,"label":"Потреба"},{"id":293220,"label":"Моя допомога"}],"subcategories":[]},{"id":666813,"label":"Проста фізична робота / Спеціальності","listing_shapes":[{"id":2932 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOR /L %%N IN () DO ( | |
timeout /t 60 | |
bping -d -f=alarm.wav 4.2.2.4 -t=10 -n=1 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
youtube-dl -o "%(playlist_index)s-%(title)s.%(ext)s" -f 22 "url_here" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::PostMessage(-1,0x0112,0xF170,2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import csv | |
LIST_NAME = "Backlog" | |
INPUT_FILE = "data.json" | |
OUTPUT_FILE = 'data.csv' | |
with open(INPUT_FILE) as jsonfile: | |
data = json.load(jsonfile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1='\[\033[01;37m\]\u@\h\[\033[01;32m\] \w $(__git_ps1 "\n[%s]") | |
\$\[\033[00m\] ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Searching --------------------------------------------------------------------- | |
Find all files that has full filename pattern "YYY" in this rdirectory, recursive: | |
find . -wholename "YYY" | |
Find all matches of regexp "XXX" in file YYY: | |
grep -n -E "XXX" YYY | |
Find all occurences of "XXX" in all files with name "YYY" in this directory, recursive: | |
find . -name "YYY" -print0 | xargs -0 grep -n -F "XXX" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.log4j.Logger | |
import org.apache.log4j.Level | |
Logger.getLogger("org").setLevel(Level.ERROR) | |
Logger.getLogger("akka").setLevel(Level.ERROR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
def axline(xdata, ydata, ax = plt.subplot(111), *args, **kwargs): | |
try: | |
x1 = xdata[0] | |
y1 = ydata[0] | |
except: | |
# assume first point coordinates given as numbers | |
x1 = float(xdata) |
NewerOlder