Skip to content

Instantly share code, notes, and snippets.

Avatar
🐰

Raku raku-cat

🐰
View GitHub Profile
View gist:8601a61bdb10078ab2f79755fda62ba3
lsblk
====
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 260M 0 part /boot
├─sda2 8:2 0 2G 0 part
│ └─swap 254:1 0 2G 0 crypt [SWAP]
└─sda3 8:3 0 230.6G 0 part
└─system 254:0 0 230.6G 0 crypt /swap
View gist:22147fe791e882022e500de37c92a913
total used free shared buff/cache available
Mem: 15Gi 1.9Gi 11Gi 498Mi 2.2Gi 12Gi
Swap: 9.0Gi 0B 9.0Gi
View nvidia-control-panel.json
{
"version": "8.1.960.0",
"description": "NVidia Control Panel from the Micrososft Store",
"homepage": "https://www.microsoft.com/en-us/p/nvidia-control-panel/9nf8h0h7wmlt/",
"license": "Proprietary",
"url": "file:///c:/nvidia.appx#/NVIDIAControlPanel.7z",
"installer": {
"script": [
"reg.exe ADD \"HKCU\\SOFTWARE\\Classes\\Directory\\Background\\Shell\\Nvidia\\command\" /f /t REG_SZ /ve /d \"$dir\\nvcplui.exe\"",
"reg.exe ADD \"HKCU\\SOFTWARE\\Classes\\Directory\\Background\\Shell\\Nvidia\" /f /t REG_SZ /v \"MUIVerb\" /d \"Nvidia Control Panel\"",
View ruffle.js
(()=>{var e={918:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n.p+"3cd5f7d3975fd7cf00f7100c4528fd22.wasm"},240:(e,t,n)=>{"use strict";function r(e,t,n){t&&e.getChannelData(0).set(t),n&&e.getChannelData(1).set(n)}n.r(t),n.d(t,{AutoPlay:()=>te,FLASH7_AND_8_MIMETYPE:()=>se,FLASH_ACTIVEX_CLASSID:()=>le,FLASH_MIMETYPE:()=>ae,FLASH_MOVIE_MIMETYPE:()=>ue,FLASH_PLUGIN:()=>Y,FUTURESPLASH_MIMETYPE:()=>ce,Letterbox:()=>ne,LogLevel:()=>ie,PublicAPI:()=>Be,RuffleEmbed:()=>pe,RuffleObject:()=>ve,RufflePlayer:()=>ge,SourceAPI:()=>De,UnmuteOverlay:()=>re,Version:()=>Ne,VersionRange:()=>We,copyToAudioBuffer:()=>r,installPlugin:()=>X,isScriptAccessAllowed:()=>we,isSwfFilename:()=>he,loadRuffle:()=>H,lookupElement:()=>Z,pluginPolyfill:()=>Le,polyfill:()=>je,publicPath:()=>xe,registerElement:()=>ee,ruffleShadowTemplate:()=>K});const i="undefined"!=typeof AudioContext?AudioContext:webkitAudioContext;let o;const a=new Array(32).fill(void 0);function c(e){return a[e]}a.push(void 0,null,!0,!1);let s=a.length;function
View gist:e77bbd0bf1b12e6e2518199f70f46777
2019-11-18 17:49:49 - TShock: INFO: TShock was improperly shut down. Please use the exit command in the future to prevent this.
2019-11-18 17:49:49 - TextLog: INFO: TShock 4.3.26.0 (Mintaka) now running.
2019-11-18 17:49:49 - TShock: INFO: AutoSave Enabled
2019-11-18 17:49:49 - TShock: INFO: Backups Disabled
2019-11-18 17:49:49 - TShock: INFO: Welcome to TShock for Terraria. Initialization complete.
2019-11-18 17:57:56 - Utils: INFO: Broadcast: Saving world. Momentary lag might result from this.
2019-11-18 17:59:09 - LinuxTcpSocket: ERROR: System.IO.IOException: Unable to read data from the transport connection: Attempted to access a missing method.. ---> System.MissingMethodException: Attempted to access a missing method.
at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00017] in <6c7c03f48a9747c8a644da4f63a34480>:0
at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult asyncResult, System.Net.Sockets.SocketError& errorCode) [0x0003f] in <6c7c03f48a9747c8a644da4f63a34480>
View gist:f4d4a1fed36e111734182e5bb7e008f7
13227 openat(AT_FDCWD, "/opt/wine-staging/bin/../lib64/tls/x86_64/x86_64/libwine.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
13227 openat(AT_FDCWD, "/opt/wine-staging/bin/../lib64/tls/x86_64/libwine.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
13227 openat(AT_FDCWD, "/opt/wine-staging/bin/../lib64/tls/x86_64/libwine.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
13227 openat(AT_FDCWD, "/opt/wine-staging/bin/../lib64/tls/libwine.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
13227 openat(AT_FDCWD, "/opt/wine-staging/bin/../lib64/x86_64/x86_64/libwine.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
13227 openat(AT_FDCWD, "/opt/wine-staging/bin/../lib64/x86_64/libwine.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
13227 openat(AT_FDCWD, "/opt/wine-staging/bin/../lib64/x86_64/libwine.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
13227 openat(AT_FDCWD, "/opt/wine-staging/
View gist:683a0b4447f2cb5ff8224d32f732e2bd
location /abt/ {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:6969/;
proxy_set_header X-Forwarded-Host $server_name:$server_port;
proxy_hide_header Referer;
proxy_hide_header Origin;
proxy_set_header Referer '';
proxy_set_header Origin '';
add_header X-Frame-Options "SAMEORIGIN";
}
View PKGBUILD
# Contributor: judd <jvinet@zeroflux.org>
pkgname=alsa-lib
pkgver=1.1.7
pkgrel=2
pkgdesc="An alternative implementation of Linux sound support"
arch=('x86_64')
url="http://www.alsa-project.org"
depends=('glibc')
optdepends=('python2: for python smixer plugin')
View gist:7221ee2e1b2f035b94f477cb5e7d16b4
Python 3.6.6 (default, Jun 27 2018, 14:44:17)
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from cffi import FFI
>>> ffi = FFI()
>>> ffi.cdef("""
... char* crypt(const char*, const char*);
... """)
>>> C = ffi.dlopen(None)
>>> ffi.string(C.crypt("流れる".encode("sjis"), b"ab"))
View gist:de5b3e9d3bca5abccaf15ac131a808cd
Python 2.7
--------------
>> crypt.crypt(u"流れる".encode("sjis"), "ab")
'abPIB/We4mESk'
>>>
Python 3
--------------
>>> crypt.crypt("流れる".encode("sjis"), "ab")
Traceback (most recent call last):