Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / Install.txt
Created Jul 19, 2019
imagemagick v6.9.10.54 - Failed - Package Tests Results
View Install.txt
2019-07-19 06:23:34,090 1908 [DEBUG] - XmlConfiguration is now operational
2019-07-19 06:23:34,325 1908 [INFO ] - ============================================================
2019-07-19 06:23:35,168 1908 [INFO ] - Chocolatey v0.10.15
2019-07-19 06:23:35,215 1908 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2019-07-19 06:23:35,215 1908 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2019-07-19 06:23:35,231 1908 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2019-07-19 06:23:35,262 1908 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install imagemagick --version 6.9.10.54 -fdvy --execution-timeout=2700 --allow-downgrade
2019-07-19 06:23:35,262 1908 [DEBUG] - Received arguments: install imagemagick --version 6.9.10.54 -fdvy --execution-timeout=2700 --allow-downgrade
2019-07-19 06:23:35,434 1908 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2019-07-19 06:23:35,450 1908 [DEBUG] - Sending messa
@vinovator
vinovator / pdfTextMiner.py
Last active Jul 19, 2019
A sample code which uses pdfminer module to extract text from pdf files
View pdfTextMiner.py
# pdfTextMiner.py
# Python 2.7.6
# For Python 3.x use pdfminer3k module
# This link has useful information on components of the program
# https://euske.github.io/pdfminer/programming.html
# http://denis.papathanasiou.org/posts/2010.08.04.post.html
''' Important classes to remember
PDFParser - fetches data from pdf file
View gist:719173a252b12d852fe4d48b06307457
<?php
public function update(array $meta, ContainerInterface $container)
{
/** @var Plugin $Plugin */
$code = 'PluginCode';
$Plugin = $container->get(PluginRepository::class)->findByCode($code);
$config = $container->get(PluginService::class)->readConfig($container->get(PluginService::class)->calcPluginDir($code));
$container->get(PluginService::class)->generateProxyAndUpdateSchema($Plugin, $config);
@unmortaldev
unmortaldev / Maths.java
Last active Jul 19, 2019
Colossus Java Maths Library For LWJGL
View Maths.java
package colossus.maths;
public final class Maths {
public static final float lerp(final float value, final float target, final float scalar) { return value + ((target - value) * scalar); }
public static final float moveTowards(float value, final float target, final float step) {
if (value == target) return value;
@choco-bot
choco-bot / FilesSnapshot.xml
Created Jul 19, 2019
ellp v86.20181230 - Passed - Package Tests Results
View FilesSnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\ellp\ellp.nupkg" checksum="36C791547885F8614798F31A136FC78C" />
<file path="C:\ProgramData\chocolatey\lib\ellp\ellp.nuspec" checksum="62F795BE3E58DD4B74667B251A91F684" />
<file path="C:\ProgramData\chocolatey\lib\ellp\tools\ChocolateyInstall.ps1" checksum="EA19855662D9C2F72D406770FE1A0340" />
</files>
</fileSnapshot>
View prompt.sh
#!/bin/bash
allowed_time=$(date -d '+10 hour' +%H:%M:%S)
testnwrap() {
./test.sh
tar -cfP results.tar /fs
cp results.tar /fs
cp results.log /fs
}
@rsmn
rsmn / multiple_ssh_setting.md
Last active Jul 19, 2019 — forked from jexchan/multiple_ssh_setting.md
How to add Multiple SSH keys to Gitlab and Add Sites from both account to Laravel Forge
View multiple_ssh_setting.md

Multiple SSH Keys settings for different gitlab account

Example Use Case:

  • Server: Digital Ocean
  • Server Name: serverone
  • First Gitlab Account Username: account1
  • Second Gitlab Account Username: account2

create different public key

@hermanbanken
hermanbanken / Dockerfile
Last active Jul 19, 2019
Compiling NGINX module as dynamic module for use in docker
View Dockerfile
FROM nginx:alpine AS builder
# nginx:alpine contains NGINX_VERSION environment variable, like so:
# ENV NGINX_VERSION 1.15.0
# Our NCHAN version
ENV NCHAN_VERSION 1.1.15
# Download sources
RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \
@prasannams-ibm
prasannams-ibm / PY0101EN-2-2-Lists.ipynb
Created Jul 19, 2019
Created on Cognitive Class Labs
View PY0101EN-2-2-Lists.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dwichan0905
dwichan0905 / SoundOutput.java
Created Jul 19, 2019
Class untuk mengeluakan suatu suara di Java
View SoundOutput.java
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import sun.audio.AudioPlayer;
import sun.audio.AudioStream;
You can’t perform that action at this time.