Skip to content

Instantly share code, notes, and snippets.

View nikitasius's full-sized avatar
💭
🍆

Nikita S. nikitasius

💭
🍆
  • toxId: 4339E5C156D4858940E20F82BE6625BC69B4167EAE1E9924EF79AA474E2A454BE4323FE37C61
  • public static void main (String[] args){}
View GitHub Profile
@sihil
sihil / plambda.yaml
Created October 5, 2016 21:33
Snippet of some CloudFormation resources for Plambda
API:
Type: AWS::ApiGateway::RestApi
Properties:
Name:
Fn::Join:
- " "
- - Restorer Plambda
- Ref: Stage
Description: Experimental Restorer Play app in Lambda
@Hopfengetraenk
Hopfengetraenk / DeezerDownload.py
Created February 24, 2017 18:58
DeezerDownload
#!python2
#coding:latin
"""
Author: --<>
Purpose:
Download and decrypt songs from deezer.
The song is saved as a mp3.
No ID3 tags are added to the file.
The filename contains album, artist, song title.
@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active July 3, 2025 12:52
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

@Pelirrojo
Pelirrojo / apigateway-proxy-cloudformation-template.yaml
Created January 17, 2019 20:35
A Cloudformation Script to deploy an API Gateway Proxy
# LICENSE https://creativecommons.org/licenses/by-nc-sa/3.0/
# https://cjohansen.no/aws-apigw-proxy-cloudformation/
AWSTemplateFormatVersion: 2010-09-09
Description: An API that proxies requests to another HTTP endpoint
Resources:
Api:
Type: 'AWS::ApiGateway::RestApi'
Properties: