There's a new type of virus spreading right now at high speed through the Internet.
It's called WannaCry.
It render all your files inaccessible, so backup everything! You can catch it simply by being connected.
# Install essential stuff, vim and git | |
sudo pacman -S vim git --needed | |
# Get pacserve to speed up the rest of the downloads | |
mkdir -p ~/resources/aur | |
cd ~/resources/aur | |
git clone https://aur.archlinux.org/python3-threaded_servers.git | |
git clone https://aur.archlinux.org/pacserve.git | |
cd python3-threaded_servers |
# vi:syntax=sh | |
#!/usr/bin/env bash | |
# AUR updated | |
# Checks all directories for updates, then | |
# runs makepkg -si for each updated git repo | |
checkIfRepo(){ | |
stat "$1" > /dev/null || return 1; | |
cd $1; echo "Checking $1" | |
git status --porcelain >/dev/null && cd .. || return 1; # A fatal error if $PWD is not a git repos |
/** | |
* Example of web page scraping with related pages | |
* related pages are loaded sequentially, which is slow | |
* but does not tax the connection. | |
* this example requires a few modules, so do: | |
* npm install request cheerio bluebird | |
* then node cheerio.js to run | |
* scraped site will be saved to a file 'flat6labs.csv' | |
**/ | |
var request = require('request'); |
function getAnAnswerMaybeSomeDay(url,cb){ | |
var willWork = Math.random() > .1 | |
var waitFor = Math.random() * 500 | |
setTimeout(function(){ | |
if(willWork){ | |
cb(null,"réponse") | |
}else{ | |
cb(new Error("pas de reponse")) | |
} | |
},waitFor) |
const multiple = m => n => n % m === 0 | |
const getStringIfPredicate = (predicate,str) => n => predicate(n) ? str : '' | |
const fizz = getStringIfPredicate(multiple(3),'fizz') | |
const buzz = getStringIfPredicate(multiple(5),'buzz') | |
const fizzbuzz = n => | |
( n | |
? fizz(n)+buzz(n) || n+'' | |
: '0' | |
) |
// Type definitions for Charm v1.0.1 | |
// Project: https://github.com/substack/node-charm/ | |
// Definitions by: Jad Sarout <https://github.com/Xananax/> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
declare module Charm{ | |
type CharmColorName = 'red' | 'yellow' | 'green' | 'blue' | 'cyan' | 'magenta' | 'black' | 'white' | |
type CharmColorHex = number; | |
type CharmColor = CharmColorName | CharmColorHex; |
/************ | |
* UTILITIES * | |
************/ | |
function throwIfNotArray(arr){ | |
if(isArray(arr)){return true;} | |
throw new Error(`\`${arr}\` is not an array`); | |
} |
$ ./lucanor_safe.sh | |
Base directory : /home/xananax/.local/share/Steam/steamapps/common/The Count Lucanor | |
Path : /home/xananax/.local/share/Steam/steamapps/common/The Count Lucanor/jre/bin:/home/xananax/.local/share/Steam/steamapps/common/The Count Lucanor/lib:/home/xananax/.local/share/Steam/steamapps/common/The Count Lucanor:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/xananax/.bin:/home/xananax/.bin | |
Native path : /home/xananax/.local/share/Steam/steamapps/common/The Count Lucanor/lib | |
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel | |
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. | |
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. | |
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunnin |
"use strict"; | |
function isPlainObject(obj) { | |
return obj !== null && typeof obj === 'object' && Object.getPrototypeOf(obj) === Object.prototype; | |
} | |
exports.isPlainObject = isPlainObject; | |
function isFunction(obj) { | |
return obj && (typeof obj == 'function'); | |
} | |
exports.isFunction = isFunction; | |
var renderStyle = function (style) { |